On this page

Previous Lights

Overview

Karma supports all of the features provided by the camera primitive in USD. The schema provides most basic features, and Karma-specific additions expand available functionality where needed. There are a few quirks about cameras that can be helpful to know:

  • Resolution is not defined on the camera, but rather the render settings

  • USD cameras don’t have an actual aspect ratio property; Solaris provides one, to simplify authoring the aperture properties of the camera

  • Karma Render Settings can read the camera aperture, to streamline setting resolutions

For more details about the USD cameras in general, see the Camera LOP and schema documentation.

Lens materials and shaders

USD cameras don’t have the ability to describe sophisticated physical camera effects entirely on their own. For this we rely on Karma’s support for Lens Materials. These are an improvment on the Lens Shader VOPs of the past, as they are more efficient and can be animated. The legacy Lens Shader VOP still exists for backward compatability, but lens materials will be the focus moving forward.

Tip

The Lens Material property on the Camera LOP has a shortcut to quickly setup the Karma Lens Material.

Karma’s Lens Material is a USD material for controling the lens. It has the same features as Karma Physical Lens VOP node, along with some improvements:

Bokeh

Circular bokeh, with rotation and anisotropy
Polygon bokeh with 5 sides
Butterfly texture map bokeh

Lens Distortion

Curvature

Cubic curvature of -0.2
Quadratic curvature of -0.625
Quadratic curvature of 0.8

Chromatic Aberration

Amount of Aberration: 0.05
Amount of Aberration: 0.15
Amount of Aberration: 0.3

Tint and Exposure

Tint color: 1,0,0.5
Tint Texture Map
Exposure: 1, Vignetting: 5

Custom Lens Shaders

Karma CPU supports a wider array of lens shaders, as well as custom lens shaders. Karma XPU does not currently support custom lens shaders.

Karma User Guide

Appendices