opengl depth problem

This is a discussion on opengl depth problem within the C++ Programming forums, part of the General Programming Boards category; I've been writing a Newton's Cradle in opengl using codeblocks but no matter what glDepthFunc I use I can't get ...

  1. #1
    Registered User
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    21

    opengl depth problem

    I've been writing a Newton's Cradle in opengl using codeblocks but no matter what glDepthFunc I use I can't get a depth greater than 1 gl unit. Is this a codeblocks defect or do I need to link any lib files?

  2. #2
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    Last edited by Lesshardtofind; 12-11-2012 at 11:17 AM.

  3. #3
    Registered User
    Join Date
    Jan 2011
    Location
    Slovakia
    Posts
    21
    I have the subroutine which is identical to all the examples I looked at researching the problem but no matter were I place the call from either changing the field of view parameter doesn't change the screen view or I get such a close view I can't see anything without setting the fov to a really tiny value

    Even using the basic spinning triangle double sized cuts the depth to between 1 and -1

  4. #4
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    I can keep posting links based on random "hunches" I get, but without seeing the code its going to be like I am trying to shoot a freethrow with my eyes closed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 32 bit color depth bitmap problem with XP
    By kalabala in forum C++ Programming
    Replies: 0
    Last Post: 12-22-2008, 05:56 AM
  2. OpenGL: Depth Testing, Matrixes, ect.?
    By Zeusbwr in forum Game Programming
    Replies: 8
    Last Post: 12-08-2004, 08:37 AM
  3. OpenGL Depth Problems
    By drdroid in forum Game Programming
    Replies: 9
    Last Post: 06-20-2003, 09:23 AM
  4. C++ in Depth or Java In Depth... ?
    By jawwadalam in forum C++ Programming
    Replies: 8
    Last Post: 10-07-2002, 08:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21