PDA

View Full Version : How to scale the viewport to see more?



Qiaowen
04-12-2012, 07:00 AM
Hi.
I can use the glutDisplayFunc() to rotate the stuffs I draw. But this doesn't work when I want to scale the viewport to see more stuffs. Do I need to use glScale() to scale the stuffs or change the fovy of the gluPerspective()?
Thanks.

BionicBytes
04-12-2012, 11:18 AM
What do you mean see more stuffs?
Can't you just draw more?

Qiaowen
04-12-2012, 11:27 PM
Hi,
I can draw more, but I just can't see them. At the present, I just can't understand well what the Viewport is. So, I want to the form to display everything I drawed.

V-man
04-13-2012, 02:28 AM
He probably is getting clipped by the near and far plane. If you are using a perspective frustum, then set znear to 0.1 and zfar to 2000.

If you are in ortho projection, then I guess -1000 and 1000.