Using two trackers to get focus data?

 

is there any way for the background (my unreal aximmetry environment) to blur based on the tracker that represents the talent's location?


trying to get some type of dynamic focus without using a lens encoder

I'm using a tracked camera


in the picture i am holding a tracker and that is also positioning the billboard but it would be really cool to have the background blur as the first tracker (the camera) goes close to the second tracker (the one I'm holding)



   N0rth3rnL1ght

 
Profile Image
Laumyam
  -  

We actually did this with our team. Are you using SE or DE version of Aximmetry ?

In our case, we used the DE version and did the logic on UE with blueprints.

In case you're using the DE version, here's how we proceeded : 

- Send to UE your tracked camera position and whatever you're tracking with the other tracker (in our case we sent the tracked billboard position)
- Retrieve these datas using Aximmetry built-in methods (example : Get Aximmetry Vector) in the tracked camera blueprint you added using Unreal Engine Aximmetry camera , name them properly to identify the nodes when you'll plug the pins in Axy
- Use "Distance (Vector)" method to output a float value of the distance of the two tracked elements
- Apply the result to "Tick" method in the "Focus distance in Meters" pin like so : 

Experiment with some additionnal logic, like putting a default value when the requierements are not met, adding more control values to adjust by hand in Aximmetry the focus value, lots of cool stuff can be done and we got some pretty intresting results.

Wishing you good luck ! 

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

Ahh Laumyam, I was just about to answer this post. You don't actually need any blueprints in Unreal to do what you said. You can do all of it in Aximmetry:
You can calculate the distance between the two tracked objects (Camera and Talent) like this:

You can then use a Set Collection Scalar module to overwrite the Focus Distance that is being sent to Unreal.
Set the Set Collection Scalar's key pin to Cam Focus:

This will overwrite the data going into the Focus distance in Meters, to which Laumyam was referring.
You can see here the same
Cam Focus name, that we overwrote above.



Laumyam I am curious how you managed to use this in action. As this won't actually translate into real-world exact distances. This Focus Distance in Meter's actual distance depends on other variables too. Some of which you can overwrite with a PostProcessVolume.

Warmest regards,