I have several quads for which I want to change their textures' u/v coordinates periodically. What is the proper way to do this in jPCT-AE?
Currently, I am calling build( false ) on the Object3D, then to change the u/v coordinates:
tex1 = new TextureInfo(
TextureManager.getInstance().getTextureID( "Front" ),
quadUVs.u1, quadUVs.v1, quadUVs.u2, quadUVs.v2,
quadUVs.u3, quadUVs.v3 );
tex2 = new TextureInfo(
TextureManager.getInstance().getTextureID( "Front" ),
quadUVs.u3, quadUVs.v3, quadUVs.u4, quadUVs.v4,
quadUVs.u1, quadUVs.v1 );
gifBox.getPolygonManager().setPolygonTexture( polyIdOffset,
tex1 );
gifBox.getPolygonManager().setPolygonTexture( polyIdOffset + 1,
tex2 );
quadUVs is just a simple class that holds 8 floats to represent the u/v coordinates of the four corners of a rectangle. These values are changed periodically. I pulled the code out of a previous normal jPCT project, so I'm pretty sure I'm using the correct u/v values. However, if there is nothing obvious you can think of that I need to do to make u/v changes work, I'll try and create a simpler test-case to look at.