PDA

View Full Version : Drawing the view frustum



Aeluned
02-25-2005, 01:41 PM
I'd like to draw the view frustum (as when the modelview matrix is the identity), like they do in most papers when explaining frustums - using lines.

In other words, if i zoom out on the scene or rotate the entire scene, the view frustum 'cuboid' should rotate and zoom as well.

How would I go about this?

Thanks.

MMMovania
02-26-2005, 12:58 AM
Originally posted by Aeluned:
I'd like to draw the view frustum (as when the modelview matrix is the identity), like they do in most papers when explaining frustums - using lines.

In other words, if i zoom out on the scene or rotate the entire scene, the view frustum 'cuboid' should rotate and zoom as well.

How would I go about this?
Hello there
i saw something similar to this in one of nate robins tutorials have a look at it at http://www.xmission.com/~nate/tutors.html hope it will solve your problem.
Thanks

Aeluned
02-28-2005, 06:01 AM
Thanks, I'll take a looksy.