I'm trying to render out a 360 camera with depth of field using Karma.
I'm using the Karma Physical Lens shader [www.sidefx.com], which gives me the 360 panorama projection I'm looking for. However, depth of field doesn't seem to work as expected on this shader when using this projection mode.
What are some workflows for getting depth of field on a 360 (polar projection) camera in Karma?
Thanks!
DOF using Karma Physical Lens with Polar Projection
1234 8 0-
- davidbk
- Member
- 30 posts
- Joined: Nov. 2018
- Offline
-
- PHENOMDESIGN
- Member
- 172 posts
- Joined: May 2021
- Offline
SensorDeform Example [www.sidefx.com]. You could use the Sensor VOPS or Sensor Input VEX functions:
Sensor Panorama Depth VOP node [www.sidefx.com]
sensor_panorama_getdepth VEX function
SENSOR INPUT
sensor_panorama_create
sensor_panorama_getcolor
sensor_panorama_getcone
sensor_panorama_getdepth
sensor_save
Sensor Panorama Depth VOP node [www.sidefx.com]
sensor_panorama_getdepth VEX function
SENSOR INPUT
sensor_panorama_create
sensor_panorama_getcolor
sensor_panorama_getcone
sensor_panorama_getdepth
sensor_save
PHENOM(enological) DESIGN;
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
-
- davidbk
- Member
- 30 posts
- Joined: Nov. 2018
- Offline
Thanks @PHENOMDESIGN. Are these nodes meant to be used in conjunction with the Karma Physical Lens? Or are they to be used in a new custom CVEX lens shader?
Looking again at the Karma Physical Lens, for any of the polar projection modes, depth of field is rendering but the focus distance seems to fixed at infinity, ie. everything in the foreground is blurry.
None of the settings to control focus distance, either on the camera or shader node, seem to have any effect.
Looking again at the Karma Physical Lens, for any of the polar projection modes, depth of field is rendering but the focus distance seems to fixed at infinity, ie. everything in the foreground is blurry.
None of the settings to control focus distance, either on the camera or shader node, seem to have any effect.
Edited by davidbk - July 14, 2024 23:36:04
-
- jsmack
- Member
- 8110 posts
- Joined: Sept. 2011
- Online
PHENOMDESIGN
SensorDeform Example [www.sidefx.com]. You could use the Sensor VOPS or Sensor Input VEX functions:
Sensor Panorama Depth VOP node [www.sidefx.com]
sensor_panorama_getdepth VEX function
SENSOR INPUT
sensor_panorama_create
sensor_panorama_getcolor
sensor_panorama_getcone
sensor_panorama_getdepth
sensor_save
those nodes are for computer vision for driving crowds and stuff. Nothing to do with rendering
-
- jsmack
- Member
- 8110 posts
- Joined: Sept. 2011
- Online
-
- davidbk
- Member
- 30 posts
- Joined: Nov. 2018
- Offline
-
- PHENOMDESIGN
- Member
- 172 posts
- Joined: May 2021
- Offline
jsmack
those nodes are for computer vision for driving crowds and stuff. Nothing to do with rendering
It was my assumption that you could use the sensors for render probes for cached irradiance etc. Is that not true?
Sensor Panorama Save VOP node
Saves the rendered panorama to a specified output file
Given a panorama handle and a color and/or depth filename, the render will be saved out to these files.
PARAMETERS
Handle
The panorama that will be saved out.
Color Filename
The name of the file that the color panorama will be saved to.
Depth Filename
The name of the file that the depth panorama will be saved to.
PHENOM(enological) DESIGN;
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
-
- PHENOMDESIGN
- Member
- 172 posts
- Joined: May 2021
- Offline
You can try adding a pRef AOV to the render settings like on Andreas Kjær-Jensen's great site here:
Live Position Reference (pRef) in Solaris [www.andreaskj.com]
Using the Python script he wrote a Position Reference pass on the fly directly in LOPs.
Live Position Reference (pRef) in Solaris [www.andreaskj.com]
Using the Python script he wrote a Position Reference pass on the fly directly in LOPs.
PHENOM(enological) DESIGN;
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
Experimental phenomenology (study of experience) is a category of philosophy evidencing intentional variations of subjective human experiencing where both the independent and dependent variable are phenomenological. Lundh 2020
-
- davidbk
- Member
- 30 posts
- Joined: Nov. 2018
- Offline
Thanks @PHENOMDESIGN for that link from Andreas Kjær-Jensen. I didn't know his site, so thanks for that. Making custom AOV's in Karma was something I was wondering about. Now I have my answer.
A workflow for DOF with Polar Projection is becoming clear... I could render the shot with the polar projection distortion but with DOF disabled, and then do the DOF blurring in post by outputting a separate AOV, a "distance from camera" pass, which would drive the DOF blur.
A workflow for DOF with Polar Projection is becoming clear... I could render the shot with the polar projection distortion but with DOF disabled, and then do the DOF blurring in post by outputting a separate AOV, a "distance from camera" pass, which would drive the DOF blur.
-
- Quick Links