TextTextureAtlas throws an Exception

Hi,



TestTextureAtlas in current SDK NighlyBuild throws an exception:



[java]

Schwerwiegend: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.IndexOutOfBoundsException: 45720

at java.nio.DirectFloatBufferU.put(DirectFloatBufferU.java:286)

at jme3tools.optimize.GeometryBatchFactory.doTransformTangents(GeometryBatchFactory.java:80)

at jme3tools.optimize.GeometryBatchFactory.mergeGeometries(GeometryBatchFactory.java:214)

at jme3tools.optimize.TextureAtlas.makeAtlasBatch(TextureAtlas.java:495)

at jme3test.tools.TestTextureAtlas.simpleInitApp(TestTextureAtlas.java:72)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:220)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

at java.lang.Thread.run(Thread.java:722)

[/java]



It is because of the Tree.mesh, it seems that there are invalid tangents or something.

If you comment out

[java]

scene.attachChild(obj5);

[/java]



It works.



Regards.

1 Like

Thanks, fixed in SVN

Wow youre fast, thanks :slight_smile: