Page 1 of 1

Changing Texture colours

Posted: Sun Jul 10, 2005 2:28 pm
by DaMathew
Hi!

Is there a possibility to change the colours of a texture while the device is running? i tried it with the diffusecolor of the SMaterial structure but this only works when there is a light somewhere and looks quite ugly...

Thank you :-)
Greets
Mathew

Posted: Wed Jul 13, 2005 7:16 am
by niko
Two possibilities:
1) Modify your mesh during runtime and change the diffuse color of the Vertices. (S3DVertex::Color)
2) Lock your texture and change the pixels/texels. (ITexture::lock())
Don't know what is better for your needs. :)