MultiTexture Tutorial Problems

I have been testing this tutorial, and i got this error on runtime:


java.lang.ArrayIndexOutOfBoundsException: 1
        at com.xith3d.scenegraph.GeometryArray.getTexCoordData(GeometryArray.java:107)
        at com.xith3d.render.jogl.ShapeAtomPeer.setupTextureCoords(ShapeAtomPeer.java:114)
        at com.xith3d.render.jogl.ShapeAtomPeer.setupTextureUnit(ShapeAtomPeer.java:592)
        at com.xith3d.render.jogl.ShapeAtomPeer.renderAtom(ShapeAtomPeer.java:698 )      
  at com.xith3d.render.CanvasPeerBase.render(CanvasPeerBase.java:102)
        at com.xith3d.render.jogl.CanvasPeerImpl.drawBin(CanvasPeerImpl.java:760)
        at com.xith3d.render.jogl.CanvasPeerImpl.display(CanvasPeerImpl.java:999)
        at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)
        at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:198 )      
  at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:239)
        at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:186)
        at net.java.games.jogl.GLCanvas.display(GLCanvas.java:74)
        at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1100)
        at com.xith3d.scenegraph.View.renderOnce(View.java:755)
        at com.xith3d.scenegraph.View.renderOnce(View.java:688 )
        at org.xith3d.gsg.MultiTextureXith3D.<init>(MultiTextureXith3D.java:139)

        at org.xith3d.gsg.MultiTextureXith3D.main(MultiTextureXith3D.java:53)

I have been working from start with the HelloXith3D file, so it uses the

Geometry g = Cube.createCubeViaTriangles(0, 0, 0, 1, true);

method to create the cube.I have tested the code file of the tutorial and it uses a local method to create the cube, and with that method i dont get that error at runtime and the example works fine.

I want to know why using different geometry builders the texture loading works or fails.Any clue?
Thanks in advance :slight_smile: