Changing Texture colours

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
DaMathew
Posts: 9
Joined: Sun Jul 10, 2005 2:25 pm

Changing Texture colours

Post 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
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post 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. :)
Post Reply