Jump to content

  • Log In with Google      Sign In   
  • Create Account

OpenGL perspective question


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 JeroMiya   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 August 2001 - 12:10 PM

I''ve got a question about perspective in OpenGL. I have a scene where there''s an object close to the viewer that (s)he can move around the screen on the xy plane and then press fire to make it move along the z axis towards a target farther away on the z axis. The problem is, no matter where the user moves the object on the screen, it ends up going to a small space in the middle of the screen. How can I widen this perspective a little so that things don''t go towards the horizen as fast?

Sponsor:

#2 Mort   Members   -  Reputation: 146

Like
Likes
Like

Posted 28 August 2001 - 11:59 PM

To select the perspective ratio you select the projection matrix and call gluPerspective(angle, ratio, ZNear, ZFar). Change the angle parameter to change the perspective ratio (The ratio parameter changes ratio between X and Y).

#3 linus78   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 August 2001 - 10:15 PM

The parameters Znear and Zfar is that the "Z field" which will be drawn on the screen?

#4 Qoy   Members   -  Reputation: 127

Like
Likes
Like

Posted 30 August 2001 - 08:04 PM

The Znear and Zfar params are the z coordinates of the near and far clipping planes, respectively. Anything in front of the near or behind the far will not be rendered.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS