Log in or register to post comments

Problem with OpenGL colors

December 20, 2010 - 11:15pm #1

Hi,

I'm facing this problem. It occurs pretty randomly and I'm not sure for what reason. I observe sometimes that the entire screen (the entire environment) is flooded with the last color i use to render an object. The marker detection and rendering is perfectly fine, but the color just floods the screen.
Any idea as to why this occurs?

Thanks,
Manoj

Re: Problem with OpenGL colors

December 21, 2010 - 6:17am #2

If you are binding a color with glColor, you might need to set it back to white at the end of your rendering. If instead you are using glEnableClientState to activate a color array, be sure to follow it with a glDisableClientState at the end of your rendering.

If neither of these are the source of the problem, could you possible zip up your project and send it to

? That would be the easiest way to help debug this.

- Kim

Log in or register to post comments