Distance between Cam lens and object?

Started by archonforest, January 20, 2015, 09:13:30 AM

Previous topic - Next topic

archonforest

Possible to measure the distance between the lens and the object somehow? I am struggling again to figure out the focus distance. Even If I turn on the Dof preview it goes bananas sometimes. Like whatever number I set the preview stays on the same place? Like 1 m or 500m and the focus line(coloring) not moving.
Best would be to have an option where I can say "show distance between camera and this object".
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

Dune

If you hover above the scene (object and camera) in the preview you can use the measure tool for just that.

choronr

Great idea, never have thought of that. This would apply for the 'Distance shader' as well?

archonforest

Quote from: Dune on January 20, 2015, 11:08:26 AM
If you hover above the scene (object and camera) in the preview you can use the measure tool for just that.
Thx. I tried this idea before and the I got some raw data that was somewhat useful but it was pretty raw.
Nevertheless sometimes when u really zoomed in onto something it would be good to have some proper measure tool that can give the exact measure...
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

Upon Infinity

#4
View Menu => 3D Preview location and then roll over your object.  Best method.

Edit:  Oh you mean exact to within the object itself.  It may not be possible.

archonforest

Quote from: Upon Infinity on January 20, 2015, 02:11:28 PM
View Menu => 3D Preview location and then roll over your object.  Best method.

Edit:  Oh you mean exact to within the object itself.  It may not be possible.
Yeah could be a right click menu...like distant between..and u choose either 2 object or the cam or an object...etc
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

j meyer

Distance between camera and object-what,surface,pivot point or what?
It's not that easy most likely.Let's say you have a helicopter,how would you
make TG know which point of the object is your point of interest?
Even harder than an autofocus feature on a real camera I'd say.
But of course I may be wrong.

archonforest

Quote from: j meyer on January 21, 2015, 12:06:06 PM
Distance between camera and object-what,surface,pivot point or what?
It's not that easy most likely.Let's say you have a helicopter,how would you
make TG know which point of the object is your point of interest?
Even harder than an autofocus feature on a real camera I'd say.
But of course I may be wrong.

I could use the middle of the object for sure as that is at least a precise distant. Like I want to focus on a rock for example. If I know that the middle of the rock is 1m from the lens then I am almost done. Only little adjustment would be needed.
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

j meyer

You can read out the coordinates for the pivot point of the object and you
have the camera coordinates where is the problem then?

archonforest

Quote from: j meyer on January 21, 2015, 01:09:12 PM
You can read out the coordinates for the pivot point of the object and you
have the camera coordinates where is the problem then?
Sounds like a great idea! Testing it now...
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

archonforest

So I did what u said and nothing...again and nothing...

...then I realized that I forgot to turn the Dof on under the render tab... :D :D :D :D :D

So it works man! Thx a bunch.
Dell T5500 with Dual Hexa Xeon CPU 3Ghz, 32Gb ram, GTX 1080
Amiga 1200 8Mb ram, 8Gb ssd

bobbystahr

Quote from: archonforest on January 21, 2015, 01:59:53 PM
So I did what u said and nothing...again and nothing...

...then I realized that I forgot to turn the Dof on under the render tab... :D :D :D :D :D

So it works man! Thx a bunch.

LOL...that's happened to me, well a variation anyway...
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist