Hi!

I have a customized mesh and each time I need to set a texture on it I
do the following:

- Take the UV map (since each texture/bitmap has diferente coordinate
map).
- mesh.material = bitmap.
- Remove all faces created previously (with "removeFace" method).
- Set faces again with the new UV map by using the "addFace" method:
  mesh.addFace( new Face( vertices[0], vertices[1], vertices[2],
material, m_aUVMapTexture[0], m_aUVMapTexture[1],
m_aUVMapTexture[2]));

Hence, I remove my geometry and build a new one every time I need to
set a new texture.
Is there some way (method, class, property, etc) to change a texture
on runtime without removing the geometry again and again?


Regards.


Reply via email to