hi!
i actually try to transform a texture when an object have a special status. In this case, a frozen card. So i have a normal texture for each cards and a icy texture of the same size
using the same uv mapping format. My objects have their own UV Mapping (Using 3ds), in fact all cards use the same cloned object.
So i want to blend both textures
here the code i use
TextureInfo ti = new TextureInfo( TextureManager.getInstance().getTextureID("card" + Integer.toString( CardId+1 )) );
ti.add(TextureManager.getInstance().getTextureID("frozencard"), TextureInfo.MODE_BLEND );
game.card[CardId].setTexture(ti);
If i use only one texture. It work fine. I can see the card texture or the frozencard texture. when i try to blend both im getting this error on the setTexture line:
01-20 20:26:20.187: I/jPCT-AE(26561): java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
01-20 20:26:20.187: I/jPCT-AE(26561): at com.threed.jpct.Object3D.setTexture(Object3D.java:3411)
01-20 20:26:20.187: I/jPCT-AE(26561): at com.nmare.puzzker.anims.Freeze.FreezeCard(Freeze.java:37)
ti.MAX_PHYSICAL_TEXTURE_STAGES give me 4.
Im out of idea. Whats wrong?
Thx for the help