myk45

02-26-2013, 10:20 PM

Hello All,

i have what might be a trivial question. But, i would like to know if my approach is correct. So, here is the

Question:

I have a 3D model(arbitrary) and i need to fit it appropriately in the viewport.

My approach:

I calculate the bounding box of the model, fit it into some place within the view frustum such that it would be visible. But calculation of this would be slightly heavy. Is this the right way or is there a better way to achieve the same?

Thanks!

i have what might be a trivial question. But, i would like to know if my approach is correct. So, here is the

Question:

I have a 3D model(arbitrary) and i need to fit it appropriately in the viewport.

My approach:

I calculate the bounding box of the model, fit it into some place within the view frustum such that it would be visible. But calculation of this would be slightly heavy. Is this the right way or is there a better way to achieve the same?

Thanks!