I remember a demo while back that had a Mario model and texture bitmap
paint area that let you draw on the texture and thus mario. Is that
the kind of thing you want? I can't seem to find it though.

On Mar 27, 11:55 pm, manel <[email protected]> wrote:
> 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