Changing the textures colortone while rendering.

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
POi

Changing the textures colortone while rendering.

Post by POi »

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
PadrinatoR
Posts: 50
Joined: Tue Mar 09, 2004 9:53 pm
Location: Spain

Post by PadrinatoR »

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);
There are only 10 types of people: those who understand binary and those who don't

--------------------------------------------

Image
POi

Post by POi »

Thanx!

Ambient didn't work .. but diffuse color (with lightning turned on) worked.
Post Reply