AR Tracked Camera & Depth Of Field

 

Hi Aximmetry Team,

I'm experimenting with an UE Tracked Cam Augmented Reality setup. I got two questions:

1) DOF is not working. I tried a manual setup and the glassmark encorders. The values for "Cam Focus" are going into the "Control Data"-node, but there is no visible focus shift. Does the AR setup not support DOF?

2) In my scenario I'm using a lens distortion JSON file and  fixed focallenght. But I want control my focus via the glassmark encoder. But when I activate "Manuel Lens" to access the JSON file, the zoom AND the focus data get excluded. See below my idea to make it work. Is there a better way? 

   gaffer-tape

 
Profile Image
Zoltan@Aximmetry
  -  

Hi,

1) I'm sorry, DOF is not supported in AR at the moment. We might add it in the future.

2) Yes, Manual Lens takes over everything, which makes sense from a certain point of view. But I think your solution is perfect for this scenario (except that it won't work for AR...).

 
Profile Image
achim.immermann
  -  

Any news on this topic? Is there any workaround in Unreal to enable DOF in AR Mode?

 
Profile Image
Eifert@Aximmetry
  -  

Hi Achim,

There is no DOF in AR yet.
A simple workaround is that you just blur the whole rendered image in Aximmetry. This can work if your AR object's geometry are at the same distance from the camera:

Note reflections and shadows are not blurred in the above screenshot, you might also want to blur those if you use them. And you might even want to use different radius blur on them.

Also, there are more complex blur effects that come in the compound form at [Common]:Compounds\Effects\

Warmest regards,

 
Profile Image
Eric Soulard
  -  

Hi,

Is there still no depth of field under AR mode with 2023 1.0 (Unreal usage)?

Best

 
Profile Image
Eifert@Aximmetry
  -  

Hi Eric,

There is still no depth of field in Unreal AR.

Can you describe a bit of your use case? That can help to make this more of a priority and help in implementation.
Note, usually people have AR elements that have very little depth in the picture so the depth of field would apply to all AR elements with the same amount. In those cases, the Blurrer module can produce a similar result as a complex depth of field system.

Warmest regards,