Good day to all.
I have a system where meshes get recycled by simply changing their vertex coordinates and textures.
When the object is removed I call textureState.clearTextures();
When the object is added I call textureState.setTexture(Texture); several times with different textures and indices, up to four times with up to four different indices.
The addition happens in the same way when a new trimesh is created and when its recycled.
I am however experiencing new trimeshes showing up properly, and recycled ones showing up with their previous textures…
Can somebody comment on this? Am I forgetting something important?
Don
HOLY CRAP THAT WAS FAST!
Thank you, let me try
I forgot this also a few times.
I think in jME3 this will be fixed with a hasChanged-Flag.