Hia again...
I'm having trouble getting my 3d model transparent but that is probably same bug spoken of before (in bugs forum). Anyway thats not my actaual question... i'm wondering how to edit a texture during rendering .. i know i can .lock() and get a pointer to the actual pixels but what do i do then..?
What i want to do is to change the HUE of the texture ... for instance i want to turn the texture from the original colors to more red, blue, yellow and so on during a timeperiod (fade).
What shood i look at och how could this be done ?
Thanx in advance
/POi
Changing the textures colortone while rendering.
-
- Posts: 50
- Joined: Tue Mar 09, 2004 9:53 pm
- Location: Spain
I change the ambient color of the material:
pSceneNode->getMaterial(index).AmbientColor.setRed(iRed);
pSceneNode->getMaterial(index).AmbientColor.setGreen(iGreen);
pSceneNode->getMaterial(index).AmbientColor.setBlue(iBlue);
pSceneNode->getMaterial(index).AmbientColor.setRed(iRed);
pSceneNode->getMaterial(index).AmbientColor.setGreen(iGreen);
pSceneNode->getMaterial(index).AmbientColor.setBlue(iBlue);
There are only 10 types of people: those who understand binary and those who don't
--------------------------------------------
--------------------------------------------