Results 1 to 3 of 3

Thread: Perspective problem

  1. #1
    Guest

    Perspective problem

    Another beginner question here
    I have a problem with the near clipping. I suspect that this problem has a correpond with perspective calculation. I usually calculate the perspective viewing on a resize function like this:
    gluPerspective( 45.0, width/height, 1.0, 1000.0);
    The problem is that the near clipping plane seems to be in front of the viewer, so, I can't get the objects a closer look, like i can get in the games.
    Sorry if you confused with my English.
    Thanks! (^_^)

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

    Re: Perspective problem

    If the near clip plane is too far away, why don't you move it closer?

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: Perspective problem

    Originally posted by anezch_x:
    The problem is that the near clipping plane seems to be in front of the viewer, so, I can't get the objects a closer look, like i can get in the games.
    IMO your near plane distance is fine. Pulling it in will eventually create nasty z buffering problems.

    If you want a genuine 'zoom' function like in Quake 3 (just one game ... ), that's done by narrowing the fov. Ie, instead of 45 degrees, you go down to 12.5 degrees. For a smooth transition this must be animated, of course.

Similar Threads

  1. Perspective problem
    By swethasharma in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-02-2012, 08:40 PM
  2. Perspective problem
    By darkrappey in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-23-2006, 01:06 AM
  3. Problem in the perspective projection
    By infinitecmdz in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-10-2005, 03:44 PM
  4. Problem with perspective
    By in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 07-01-2004, 12:31 AM
  5. Problem with Perspective
    By Steve_7 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-22-2001, 01:22 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