PDA

View Full Version : A "Non Plain" backgraound



glcrazy
12-14-2003, 10:27 AM
Hello,,

I wonder how I can change the plain color of my background to non-plain one Is it by a special function call ? ..
Or using an image instead of color ..

Where I can read/find a simple documentaions/tutorials showing this idea ?

.. Thanks in advance for any help ..

mikael_aronsson
12-14-2003, 12:16 PM
Hi !

It's very easy, put a quad in the background, same size as the viewport and do what ever you want with it, color it or put a texture on it. (the faq on this website has information on how to map the window device coordinates to viewport coordinates using orthographic projection).

Just put it far away or disable depth buffer updates when you render it so that it doesn't effect your depth test when you render the rest.

Mikael

glcrazy
12-16-2003, 12:35 AM
YES .. YES .. YES .. http://www.opengl.org/discussion_boards/ubb/smile.gif

I draw a wonderful quad in my background ..

Thank you very much mikael