Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

PrmanCameraSettings needs an initial upstream camera upstream in order or /root in the locationPath to populate the camera parameters.

...

This node is used to set camera options and parameters like depth of field controls, shutter timing, render clipping planes, and specifying a projection type.

Image Removed

Built-in Camera Projections

other projection parameters.  PrmanCameraSettings can be assigned per camera or to /root.

The locationPath should be either /root or a camera location.  If you wish to apply the same settings to multiple cameras, you can add all the camera paths to the CEL parameter.

If camera settings are set at /root, they will be inherited by the cameras in the scene - projection parameters as well as prmanCameraStatements.  These attributes can be overridden locally per camera.

Image Added

Projection Plugins

All of RenderMan's projection plugins are available in the prmanProjectionShader drop down menu of PrmanCameraSettings.  If you RenderMan comes with some built-in camera projections: perspective, orthographic, sphere, cylinder, and torus.  Additionally, you can create custom projection plugins using C++.  Both types of projections are available in RenderMan for Katana.

Built-in camera projection plugins are available in the camera settings node itself.

, these will also show up in the drop down menu as long as they have Args files and are accessible via the RMAN_RIXPLUGINPATH environment variable.

If the prmanProjectionShader parameter is left empty, RfK will use the projection specified via the geometry.projection attribute on

 

...

either in the CameraCreate node or Alembic_In camera.

Custom Projection Plugins

Custom Projection plugins, such as PxrCamera, are created with a Material or PrmanShadingNode Alternatively, projection plugins can be created with as a material and assigned to /root with or a camera location with a MaterialAssign node.

Image Added

Field of View (FOV)

In RenderMan, the FOV is set as a part of the projection plugin.  Since Katana supplies the field of view on camera as the geometry.fov attribute rather than material, we have two ways to set FOV.  By default, RfK will use the FOV from the camera's geometry.fov attribute, pushing this value onto the projection plugin's material attribute.  If you wish to set the FOV with the material attribute, you can set the IntAttribute, prmanCameraStatements.useGeometryFov, to 1.  This is available in PrmanCameraSettings as "Use Camera FOV".

FOV Motion Blur

FOV motion blur is only supported with the PxrCamera projection shader.  The fov and fovEnd parameters set the value of the fov at the beginning and end of the shutter.  

If you are using the camera's goemetry.fov attribute to specify the fov, you can enable motion blur by setting the IntAttribute, prmanCameraStatements.fovMotionBlur, to 1.  This is available in PrmanCameraSettings as "FOV Motion Blur".  RfK will set the projection plugin's fov parameter to the value at the first time sample of geometry.fov and set the projection's fovEnd parameter to the value at the last time sample of geometry.fov.  If you don't set up a projection shader but enable FOV Motion Blur, RfK will automatically set the projection to PxrCamera.  Just like projection modifiers, only one custom projection plugin can be used at a time in conjunction with a default projection.Image Removed