Hi everyone,
first let me congratulate you for the amazing work done on xith3d, it is very impressive.
I am trying to load an official Quake 3 BSP map (q3dm13.bsp). i first used the 0.9.6 beta 1 build available on the website ; it worked fine except for the TGA textures which Java tried to load as WBMP file :
java.lang.IllegalArgumentException: Empty region!
at javax.imageio.ImageReader.computeRegions(Unknown Source)
at com.sun.imageio.plugins.wbmp.WBMPImageReader.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at javax.imageio.ImageIO.read(Unknown Source)
at org.xith3d.loaders.texture.TextureLoader.loadFromStream(TextureLoader.java:411)
at org.xith3d.loaders.texture.TextureLoader.loadFromStream(TextureLoader.java:562)
at org.xith3d.loaders.texture.TextureLoader.getTexture(TextureLoader.java:682)
at org.xith3d.loaders.texture.TextureLoader.getTexture(TextureLoader.java:805)
at org.xith3d.loaders.models.impl.bsp.BSPConverter.convertTextures(BSPConverter.java:401)
at org.xith3d.loaders.models.impl.bsp.BSPConverter.convert(BSPConverter.java:490)
at org.xith3d.loaders.models.impl.bsp.BSPLoader.loadScene(BSPLoader.java:169)
at org.xith3d.loaders.models.impl.bsp.BSPLoader.loadScene(BSPLoader.java:205)
at auberge_emu.a.a(Unknown Source)
at auberge_emu.a.<init>(Unknown Source)
at auberge_emu.MainApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
You can see the applet showing this exception in the console for each TGA texture here (JPG textures are loading ok) :
http://agrv.free.fr/auberge_emu_xithSo I fetched the latest svn, adapted my code to the new InputSystem and tried it again. This time, the map will not display, instead I get an "/ by zero" exception :
java.lang.ArithmeticException: / by zero
at org.xith3d.loaders.models.util.conversion.XithGeometryFactory.setTexCoord(XithGeometryFactory.java:144)
at org.jagatoo.loaders.models.bsp.BSPVersionDataLoader46.convertFaceToSurfacePatch(BSPVersionDataLoader46.java:161)
at org.jagatoo.loaders.models.bsp.BSPVersionDataLoader46.convertFacesToGeometries(BSPVersionDataLoader46.java:222)
at org.jagatoo.loaders.models.bsp.BSPPrototypeLoader.load(BSPPrototypeLoader.java:1173)
at org.jagatoo.loaders.models.bsp.BSPPrototypeLoader.load(BSPPrototypeLoader.java:1190)
at org.xith3d.loaders.models.impl.bsp.BSPLoader.loadScene(BSPLoader.java:214)
at org.xith3d.loaders.models.impl.bsp.BSPLoader.loadScene(BSPLoader.java:248)
at auberge_emu.a.a(Unknown Source)
at auberge_emu.a.<init>(Unknown Source)
at auberge_emu.MainApplet.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
You can see the applet with this version here (exception showing in the console) :
http://agrv.free.fr/auberge_emu_xithsvnCould you please help me on this matter ?