Mantra VR Camera DOF

   1521   2   1
User Avatar
Member
36 posts
Joined: July 2013
Offline
Hi,
I am trying to render DOF for a Latlong VR Render.
Technically or VR theoretically it does not make so much sense to render with DOF as the Viewer should be able to decide in what Depth to look.

But due to some VR phenomena this isn't fully possible anyways, and in some situations it still might be a desried artistic choice to use DOF.
I then noticed that DOF does not work with the Houdini VR camera.
Also Redshift and Arnold do not support it.
Is this technically impossible? I wouldn't know why, as it also outputs a correct Z-Depth AOV etc. and DOF should still behave just like in perspective Rendering.

Post DOF is not an option in this case as its a scene with lots of thin Hair / Transparency etc.

Would be great to know why it isn't working.
Thanks!
User Avatar
Staff
428 posts
Joined: Sept. 2016
Offline
Our VR lens shader completely ignores DOF. But, if you're comfortable with VEX scripting, it's very doable. You can take our VR lens shader script (vrlens.vfl) and make a new VR lens shader based on it by modifying it slightly. You may also need to add a couple extra parameters that are relevant to DOF (focus distance, aperture, etc).
User Avatar
Member
36 posts
Joined: July 2013
Offline
Hi,
alright thanks!
Good to know. Going to try that.
  • Quick Links