Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: A "Non Plain" backgraound

  1. #1

    A "Non Plain" backgraound

    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 ..

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: A "Non Plain" backgraound

    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

  3. #3

    Re: A "Non Plain" backgraound

    YES .. YES .. YES ..

    I draw a wonderful quad in my background ..

    Thank you very much mikael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •