Tracking billboard automatic distance of focus

 

Hello. I have a setup with a tracked billboard. However, when the talent moves backwards, Aximmetry blurs him due to distance of focus. How can I set some kind of automatic focus that will always keep the billboard in focus once he will be moving on the entire set?


Thank you.

   Saulo Soares

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

You can set r.Translucency.AutoBeforeDOF to 1 in Unreal to keep the billboard always in focus. You can use the Execute Console Command node in the level blueprint of Unreal to automatically set r.Translucency.AutoBeforeDOF 1 in your project.
You can open the level blueprint like this: https://aximmetry.com/learn/virtual-production-workflow/preparation-of-the-production-environment-phase-i/obtaining-graphics-and-virtual-assets/creating-content/creating-content-for-aximmetry-de/ue5-how-to-install-and-work-with-the-unreal-engine-based-de-edition/#passing-data-from-aximmetry-to-unreal And connect the Execute Console Command node to the Event Beginplay node.

Warmest regards,

 
Profile Image
Saulo Soares
  -  

Hi,

Is there any other way to do this? I have translucent materials in my Unreal map and if I run this command, the billboard will always render behind the translucent object, and never in front of it.

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

Didn't you set the billboard to be before DOF like we discussed here before: https://my.aximmetry.com/post/3274-tracked-camera-billboard-not-rendering-b
You have a problem here in the opposite way. So you should keep the billboard after the DOF and the other translucent materials before the DOF.

Warmest regards,

 
Profile Image
Saulo Soares
  -  

Hi, 

No. As I said on the last comment, I used both materials (billboard and translucent) to before DOF, while also using r.Translucency.AutoBeforeDOF 0. Like you said at the end of your comment.

 
Profile Image
Eifert@Aximmetry
  -  

Hi,

I thought it was a different project.
So if you want the billboard to be affected by a material's refraction by rendering before DOF, then I guess you will really need to set up an automatic focus distance system. You can do the following to calculate the camera billboard distance and overwrite the focus with its value:


Note, that Unreal doesn't really have an exact distance for DOF (focus).

Warmest regards,

 
Profile Image
Saulo Soares
  -  

That worked out! Thank you!