PDA

View Full Version : cannot show the true color



jyoung77
05-13-2003, 10:52 AM
Hi,

I am writing code supporting a 3rd party program. My 3D objects perfectly show the colors I specify, until when a 3rd party square is enabled. The square is translucent and has two colors on its two sides. At this moment my objects can only show the color the square is showing. If the square is disabled, then my 3D objects are back to normal. My objects are the last rendered ones. Do you have any idea? Please help. Thansk.

Tony

Adrian67
05-14-2003, 12:41 AM
Is the extra object changing the current colour (or material) between the places where you change it and where you draw your objects?

You could try saving state (with pushAttrib) before showing the extra object, and popAttrib it back afterwards.