Results 1 to 3 of 3

Thread: question about position of objects

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Hong Kong
    Posts
    6

    question about position of objects

    I am creating several cubes which is right next to each other using GL_QUAD, i.e. a side of the cube would share the same location in the 3d world. My code has problem determining which cube is in front of which in the case where 2 cubes have sides that share the same position in the 3d world. Is there a way that I could tell openGL which cube is in front of which??
    Any help would be appreciated.

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Hong Kong
    Posts
    6

    Re: question about position of objects


  3. #3
    Junior Member Newbie
    Join Date
    Feb 2004
    Location
    Hong Kong
    Posts
    6

    Re: question about position of objects

    I was setting the zNear too close to zero.

Similar Threads

  1. Replies: 14
    Last Post: 06-30-2015, 03:40 AM
  2. Question about position and orientation
    By PaulR in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-19-2011, 12:47 PM
  3. Viewport position and scaling affects objects?
    By RedTulips in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-15-2009, 06:28 PM
  4. Draw objects at the same position
    By ame_nguyenanhtai in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 05-14-2008, 02:33 AM
  5. simple mouse position question
    By aetebari in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-08-2002, 06:31 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