Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Ivan_j_147

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    6,616

    Re: Background image behind 3D scene

    Ops, it was my fault! :)
    I forgot to insert the reset of model view matrix when I draw the 2D image.
    Now it's working! Thank you thank you thank you!! ;)
    Here's the complete code, if somebody need...
  2. Replies
    4
    Views
    6,616

    Re: Background image behind 3D scene

    Thanks for your reply.
    I changed in this way:
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    glMatrixMode(GL_PROJECTION );
    glLoadIdentity();
    glOrtho(0,1,0,1,-1,1);...
  3. Replies
    4
    Views
    6,616

    Background image behind 3D scene

    Hi all!!
    I'm trying to create a simple 3D game, and I want to put behind my scene a fixed background image.
    I read that I need to draw a textured quad in glOrtho for the background, and to draw my...
Results 1 to 3 of 3