Results 1 to 7 of 7

Thread: Screeen Depth

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Screeen Depth

    hello guys!

    im working on a zaxis scrolling game...
    and i think my zaxis is too short... i mean.. i only can see the objects when they are "very close" like a 200 points...

    like:
    object z coordinate = -200
    camera z coordinate = 0
    what i have to do to increase the depth of my fov...

    follows the screenshot:



    by the way, the big quad (with texture) is too much bigger in -z axis...


    thank you!



    [This message has been edited by Gelero (edited 08-24-2001).]

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Re: Screeen Depth

    UP!

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Screeen Depth

    Push the far clipping plane further away.

    [This message has been edited by Bob (edited 08-25-2001).]

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Re: Screeen Depth

    Originally posted by Bob:
    Push the far clipping plane further away.

    [This message has been edited by Bob (edited 08-25-2001).]
    and how can i do that???

  5. #5
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Re: Screeen Depth

    help help help !!!!

  6. #6
    Senior Member Regular Contributor
    Join Date
    Jun 2000
    Location
    Brazil
    Posts
    102

    Re: Screeen Depth

    sample code please!!!

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Screeen Depth

    Somewhere in your code you have likely used either gluPerspective or glFrustum, the last term of either of those is zFar. Raise that value. You may also need to raise zNear, the value just before zFar in those functions, since it is the ratio of those two values that determines how the z buffer values are apportioned.

Similar Threads

  1. Convert GL_UNSIGNED_INT_24_8 packed depth stencil to float depth
    By RealtimeSlave in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-05-2017, 07:37 AM
  2. Linear interpolation of depth value between front and back face depth values
    By RealtimeSlave in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-16-2016, 05:39 AM
  3. Does Depth Buffer Allow Writing Into When Disabling Depth Test
    By wilburn in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 12-23-2006, 01:23 AM
  4. glDrawPixels / writing depth values with depth function GL_LESS
    By flo in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 03-26-2003, 02:49 AM
  5. why depth buffer save to image file can not display depth information
    By victorswan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-27-2001, 09:19 PM

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