View Full Version : perspective projection

06-14-2001, 03:32 PM
I have a vertex data of a model and I want to display the data in the window as a fit view. Can I make it more generalized for displaying any data sets. Let us take the follwing parameters:
1. center of the model.
2. the radius of the model

How do I call glFrustum in this case if the view position is default 0,0,0 and looking into the negative z axis.

If somebody has some routines to get that, I will be very glad to hear that.
Please help,

06-16-2001, 08:38 AM
It would be better to move the model than to change the perspective.