Thread: opengl depth problem

  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
    428
    Last edited by Lesshardtofind; 12-11-2012 at 12:17 PM.
    Virtual reality hello world http://www.rodneybrothers.com/vr/vrh...rld/index.html in html and javascript.
    Viewable with dodocase, google cardboard, OR, and other compatible VR gear.

  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
    428
    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.
    Virtual reality hello world http://www.rodneybrothers.com/vr/vrh...rld/index.html in html and javascript.
    Viewable with dodocase, google cardboard, OR, and other compatible VR gear.

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, 06:56 AM
  2. OpenGL: Depth Testing, Matrixes, ect.?
    By Zeusbwr in forum Game Programming
    Replies: 8
    Last Post: 12-08-2004, 09: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