PXC Documentation

PXC Home

Camera

pre 1.18

Create camera that crop image to fix dimension with control of position



Node Data

ComposeArray

Display name

Camera

Internal name

Node_Camera

Inheritances

node
node_processor
node_camera

Inputs

node_camera

area

Focus Area

float

Zoom

bool

Depth Of Field

float

Focal Distance

float

Defocus

float

Focal Range

Dynamic Inputs

surface

Element {_S}

enum

Positioning {_S}

vec2

Position {_S}

enum

Oversample {_S}

vec2

Parallax {_S}

float

Depth {_S}

Outputs

node_camera

surface

Surface Out

Camera node used to capture parts of the scene. You can think of it as a 2D camera with fix dimension looking around your image.

Camera node also allows for parallax and Depth of Field effect.



Camera Properties


The Focus Area is an array data controlling the camera size and position.

The Zoom property allows you to scale the image.


Parallax


Camera node allows for parallax effect by layering multiple surfaces at different depth.

The extra surface can be added to the Element {_S} properties. When the new element is added, you can change the position setting in the Parallax {_S} property. The X and Y value indicate the parallax direction, and the Z value use to control the speed in which the surface will be moved with the camera.



Note that the speed of parallax is depends on both XY and Z axis. If both X and Y are set to 0, then there will be no parallax effect.



Depth of Field


Camera node can simulate basic Depth of Field effect using the Z value of the object as a distance from camera



The Focal Distance control where the sharpest depth will be, the Focal Range control the range where the object stays sharp and Defocus control how much blur will applies to object further away.