Results 1 to 5 of 5

Thread: Depth increasing

  1. #1
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Depth increasing

    I made a 3dimensional world through which i can walk, but the player can only see a specific distance anything after this is not drawn. How can i increase the depth.
    I want to be able to see objects even if they are really far away and small.
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  2. #2
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: Depth increasing

    i found the problem thanks anyway.
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  3. #3
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: Depth increasing

    Hi Starnut

    I am having the same prob it seems that i can only see 100 units into the scene anything further than that slowly gets eaten into a black void

    if u have found the soloution can u share the knoledge.

    I am using win32 not glut.

    Thanks

    Zee
    Later

    Zee

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Dec 2007
    Posts
    1,077

    Re: Depth increasing

    When you set up the prohection with glOrtho or gluPerspective, you can set up the near and far clipping plane. You should, however, keep the near plane as far away as possible and the far plane as near as possible to avoid a great zbuffer precision loss.

  5. #5
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: Depth increasing

    if u have found the soloution can u share the knoledge.
    Yes i just changed the gluPerspective code.

    from gluPerspective(60, (GLfloat)w / (GLfloat)h, 1, 30);

    to gluPerspective(60, (GLfloat)w / (GLfloat)h, 1, 100);
    -http://starnut.9ug.com
    Programming in Directx and Opengl

Similar Threads

  1. Increasing MIPMAP colour depth
    By Ross Oliver in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-20-2010, 04:31 AM
  2. Increasing viewing depth
    By camoguard in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-02-2006, 05:06 AM
  3. increasing performance
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-21-2003, 07:22 AM
  4. Performance increasing
    By yaro_dup1 in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 07-16-2003, 01:54 PM
  5. Increasing attenuation
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-01-2003, 11:09 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