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?
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?
Did u set your perspective view?
http://www.opengl.org/sdk/docs/man2/...erspective.xml
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.
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
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.