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?
$\begingroup$
$\endgroup$
2
-
$\begingroup$ blender.stackexchange.com/questions/95989/… $\endgroup$– Duarte Farrajota Ramos ♦Commented Aug 18, 2021 at 11:53
-
$\begingroup$ As linked to prior question, it finds the 2D bounding box relative to camera of object of interest blender.stackexchange.com/questions/214572/… and shifts the camera to center object, scale instead. $\endgroup$– batFINGERCommented Aug 18, 2021 at 12:26
Add a comment
|