PDA

View Full Version : Missing color ......



tranckhanh
07-08-2001, 05:25 PM
Hi all,
First, I draw some object, text, with shading .. It works well,.
But in the next call of the function RenderScene (main drawing), it cause my object painted with an unexpected color
and lose 3D effect.(the first call is good).

I don't know what to do.
Please help me.
Thanks in advance.

Bob
07-09-2001, 07:00 AM
First you draw your scene, which is OK. Then you draw your text, probably changing the projection matrix and the current color, which ends up OK. When drawing the scene the second time, you probably haven't restored the state changes from the text drawing function, which will mess up the scene.

Make sure every state change is restored before leaving the text drawing function, aswell as any other function changing states.