HTC Vive tracker for Focus

 

Hi! I'm trying to add a second Vive Tracker to my camera to track focus like on this video

https://youtu.be/CtS2EWWGfG4

How can I do that? I'm using the TrackedCam_Unreal_Prev_3-Cam_3-Billboard node

Thanks in advance

   recmode

 
Profile Image
recmode
  -  

So I've been able to move the focus point using this nodes, but now I need a way to map the different rotation angles to a focus distance. 

https://youtu.be/Uh2jMaRPbGA?t=1255

I've been following this tutorial which explains how to do it in Unreal but I can't find a way to map the rotation range of the vive tracker from 0 to 360 degrees or creating a map like he does on minute 20:55 to map the different focus values. Please help me!

Thanks in advance


 
Profile Image
Eifert@Aximmetry
  -  

Hi,

Very nicely done!

We have a Curve module, very similar to the curve editor in that video. In Aximmetry's curve editor, you can add new keys by pressing down ALT and left mouse clicking. Curve Editor works similarly to the Sequence Editor. The Sequence Editor is detailed here: https://aximmetry.com/learn/tutorials/for-content-creators/getting-started-03-animation/

You can also do focus calibration with our basic calibrator, explained here: https://aximmetry.com/learn/tutorials/for-studio-operators/basic-lens-calibration-without-lens-distortion/#focus-encoder However, you likely don't want to do focus calibration within another program than the Composer as you won't be able to use your flow graph there. And it wouldn't be easy to apply that calibration to your flow logic. So you mostly like better off sticking to the Curve module.

Also, you don't need to edit the Tracked Camera for overriding the focus. As the focus is not used by tracked camera compound.

You can do it like this, by connecting to the Control Data's focus value:
In this case, you will need 2 camera tracking modules.

Warmest regards,

 
Profile Image
recmode
  -  

Update*

I managed to make the system work by adding a curve node and mapping the angles to the focus value on the lens.

The curve takes the input as if it was a time parameter but you can simply write the angle of the tracker and Aximmetry will convert it to time. Once done you can set the focus value at each point, mapping the angles to the real lens' focus distance and the system will work as you turn the tracker.

Aditionally you can add a smooth node (see the second image) in case you're experiencing jittering on the vive tracker (it happened to me). This will smooth out the jittering keeping your focus nice and consistent.

Hope this might help the community



;