PDA

View Full Version : Position camera to view an entire 3d object



barce
09-06-2001, 04:09 PM
I wan to fit a 3d arbitrary model (loaded from file) into screen. That is, i want to translate the camera position until the model can be viewed in its full extension.
I suppose that the translation factor can be extracted from frustum dimensions and model dimensions, but i'm not good at mathematics and i need it "for yesterday", you understand...:-)

barce
09-06-2001, 05:11 PM
Incredibily, I resolved it by myself.
Thanks anyway :-)

Fastian
09-07-2001, 12:33 AM
Care to help others on how you did it???