[Request] Distance from camera to object.
-
I thought either Jim Foltz or TIG had done something along these lines?
-
That would be cool -- I'll keep looking.
Best,
Jason. -
I checked TIG's plugins and I don't see anything there -- I'll checks Jim's in a bit.
Best,
Jason. -
Nope, I don't see anything By Jim either... I think I must have stumbled upon a true request.
Best,
Jason. -
This is not difficult to calculate as long as you know the angle of view, and its corresponding dimension of the object. Problem is knowing the dimension of the object you wish to measure the distance to.
-
Perhaps the height and width of the object can be approximated by its nominal bounding box, then along with the fov, the distance to that object calculated. Problem with this is if the bonding box is at a angle to the camera. Maybe someone can come up with a more workable method.
-
Thanks for the response -- Alternately some sort of near and far plane preview mode where the planes are adjustable would work if that was easier than trying to do it the other way... I'm all about making it as easy as possible
Best,
Jason. -
Cool, Thank-you Didier
Best,
Jason. -
Hi,
This is a (very) rough rework of Thomthom's view direction.
It display the camera position (in.), the target location (in.) and the distance between the two, via a raycast.
Targeted object is temporarily selected.
Hope this is useful,Drop it in the Plugins folder, usage: View menu > Camera->Oject Distance
-
Hey I didn't see you edit this to include the plugin -- very cool! Thank-you
Best,
Jason.
Advertisement