View Full Version : camera options + ortho/prespective
02-15-2009, 11:44 AM
i have 3 questions
how to zoom in and out using a keyboard input in a 3d shape,
and how to toggle between wireframe & solid with a keyboard input too,
and toggle between prespective & ortho
if anyone got samples plz post
02-15-2009, 02:13 PM
02-15-2009, 04:18 PM
i am modeling and short on time and trying to add the keyboard inputs while modeling
02-15-2009, 05:35 PM
The key input is dependens from your framework you can have to catch a windows message or your framework call a callback at the key pressure. We can't help you if you don't tell us your framework.. and by the way it's totally openGL unrelated. :P
To zoom in and out you can change the FOV of your projection matrix or move the camera.
To switch between wireframe and solid check the glPolygonMode functions.
To toggle between perspective and ortho... change the projection matrix. :-\
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.