Drawing the view frustum

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.

Originally posted by Aeluned:
[b]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?
[/b]
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

Thanks, I’ll take a looksy.