Results 1 to 2 of 2

Thread: What's in front is shown behind!

  1. #1
    Member Newbie
    Join Date
    Oct 2003
    Posts
    35

    What's in front is shown behind!

    When I try to put water (just a large blue quad right now) into my 3D terrain (before I've drawn the land), the entire quad shows up behind the land, even the parts that are in front. The opposite of this happens when I draw it after the land.

    How do I fix this?
    -Andrew
    DirectX: A giant pile of undocumented CRAP

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    380

    Re: What's in front is shown behind!

    glEnable(GL_DEPTH_TEST);

Similar Threads

  1. why the model is shown incomplete?
    By RockyCai in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-22-2015, 09:39 PM
  2. Replies: 5
    Last Post: 05-27-2015, 03:28 AM
  3. Cubemap texture not shown
    By jiaoyang_28 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-02-2012, 03:17 PM
  4. Nothing shown in VC++ 6.0, but is in Cygwin
    By Beluvius in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-21-2004, 11:28 PM
  5. what is faster? fill front and back or only front
    By Jan in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 02-21-2002, 06:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean