OrthographicCamera


Attribute Reference

Depth of Field attributes

bokeh

Bool
default: False

Enable Bokeh. Requires DOF to be enabled.

bokeh_angle

Float
default: 0.0

Angle of iris rotation

bokeh_image

String
default:

Path to image file to be used for the iris

bokeh_sides

Int
default: 0

Number of sides of the iris. Specifying less than 3 sides will default to a disk.

bokeh_weight_location

Float
default: 0.0

Distance from the origin of Bokeh shape

bokeh_weight_strength

Float
default: 0.0

Controls the strength of weights as samples approach the weight location

dof

Bool
default: False

Whether to enable depth of field

dof_aperture

Float
default: 8.0

Depth of field focus distance

dof_focus_distance

Float
default: 0.0

No documentation available

Frustum attributes

far

Float
default: 10000.0

Far clipping plane

film_width_aperture

Float
default: 24.0

Scale the aperture of the camera (i.e., the orthographic frustum) by this value.

horizontal_film_offset

Float
default: 0.0

Horizontal offset of the orthographic frustum.

near

Float
default: 1.0

Near clipping plane

pixel_aspect_ratio

Float
default: 1.0

ratio of pixel size y / x

vertical_film_offset

Float
default: 0.0

Vertical offset of the orthographic frustum.

Medium attributes

medium_geometry

SceneObject
default: None

The geometry the camera is 'inside' to which you'd like the medium_material applied. (The use case for this is typically partially-submerged cameras)

medium_material

SceneObject
default: None

The material the camera is 'inside'. If no medium_geometry is specified, ALL rays will have this initial index of refraction applied.

Motion Blur attributes

mb_shutter_bias

Float
default: 0.0

Biases the motion blur samples toward one end of the shutter interval.

mb_shutter_close

Float
default: 0.25

Frame at which the shutter closes, i.e., the end of the motion blur interval.

mb_shutter_open

Float
default: -0.25

Frame at which the shutter opens, i.e., the beginning of the motion blur interval.

Render Masks attributes

pixel_sample_map

String
default:

Map indicating the number of pixel samples that should be used per pixel (in uniform sampling mode). This is a multiplier on the global pixel sample count specified in SceneVariables. If the provided map has incompatible dimensions, it will be resized.

General attributes

node_xform

Mat4d blurrable
default: [ [ 1, 0, 0, 0 ], [ 0, 1, 0, 0 ], [ 0, 0, 1, 0 ], [ 0, 0, 0, 1 ] ]

The 4x4 matrix describing the transformation from local space to world space.


Examples

OrthographicCamera("main_camera") {
    ["node xform"] = translate(0, 0, 10),
    ["film width aperture"] = 2,
    ["near"] = 4,
    ["far"] = 10000,
    ["mb shutter open"] = -0.25,
    ["mb shutter close"] = 0.25,
    ["dof"] = true,
    ["dof aperture"] = 0.8,
    ["dof focus distance"] = 10,
}