0
$\begingroup$

My task is to detect how better a 3d model fits the camera view. The model is always located at he center, while the camera can be placed anywhere. The model should not be outside the view of camera. For that, I plan to create a Bounding Box across the model, and then shoot rays from Camera's 4 corner points. Wherever the rays collide with the Box, I will note the coordinates and thus, deduce the scaling factor by which the model needs to be scaled down. I am successful in creating a Bounding Box. Can someone tell me how to shoot rays and find coordinates?

$\endgroup$
2

0

You must log in to answer this question.

Browse other questions tagged .