Divooka Reference

Splat Camera

17 nodes

On this page 17

Fitted Into

Function

The same view shown whole inside a picture of another shape: scaled until it touches two opposite edges and centred, as a film frame is shown on a screen it does not match. Every ray keeps its direction, so a point this camera put at pixel p lands at frame.Left + p · frame.Width / Width, and the picture beyond the original frame is what the lens would have seen had the sensor been larger. It is how a viewport of any shape looks through a photograph's camera with the photograph laid exactly over it.

Signature
FittedInto -> (result: Splat Camera, frame: (Number, Number, Number, Number))
    Splat Camera: Splat Camera
    width: Integer
    height: Integer
SplatCamera FittedInto(
    SplatCamera Splat Camera,
    int width,
    int height,
    out (double, double, double, double) frame)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—
widthInteger—
heightInteger—

Returns

resultSplat Camera
frame(Number, Number, Number, Number)
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Center

Function

The camera centre in world space: -Rotationᵀ · Translation.

Signature
Center(Splat Camera: Splat Camera) -> (Number, Number, Number)
(double, double, double) Center(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

result(Number, Number, Number)
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Cx

Function

This node carries no documentation.

Signature
Cx(Splat Camera: Splat Camera) -> Number
double Cx(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Cy

Function

This node carries no documentation.

Signature
Cy(Splat Camera: Splat Camera) -> Number
double Cy(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Field Of View X

Function

Horizontal field of view in radians.

Signature
FieldOfViewX(Splat Camera: Splat Camera) -> Number
double FieldOfViewX(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Field Of View Y

Function

Vertical field of view in radians.

Signature
FieldOfViewY(Splat Camera: Splat Camera) -> Number
double FieldOfViewY(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Forward

Function

The direction the camera looks along, in world space.

Signature
Forward(Splat Camera: Splat Camera) -> Vector3
Vector3 Forward(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultVector3
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Fx

Function

This node carries no documentation.

Signature
Fx(Splat Camera: Splat Camera) -> Number
double Fx(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Fy

Function

This node carries no documentation.

Signature
Fy(Splat Camera: Splat Camera) -> Number
double Fy(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Height

Function

This node carries no documentation.

Signature
Height(Splat Camera: Splat Camera) -> Integer
int Height(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Position

Function

This node carries no documentation.

Signature
Position(Splat Camera: Splat Camera) -> Vector3
Vector3 Position(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultVector3
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Rotation

Function

World-to-camera rotation, nine values row by row.

Signature
Rotation(Splat Camera: Splat Camera) -> Number Array
double[] Rotation(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Translation

Function

World-to-camera translation.

Signature
Translation(Splat Camera: Splat Camera) -> Number Array
double[] Translation(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultNumber Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Get Width

Function

This node carries no documentation.

Signature
Width(Splat Camera: Splat Camera) -> Integer
int Width(SplatCamera Splat Camera)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Project

Function

Where a point in the world lands in this camera's picture, in pixels, and how far in front of the camera it is; false when it is behind the camera or nearer than Near, where it has no place in the picture.

Signature
Project -> (result: Truth, pixel: Vector2, depth: Low Accuracy Number)
    Splat Camera: Splat Camera
    point: Vector3
    near: Low Accuracy Number
bool Project(
    SplatCamera Splat Camera,
    Vector3 point,
    out Vector2 pixel,
    out float depth,
    float near = 0.001f)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—
pointVector3—
nearLow Accuracy Number0.001

Returns

resultTruth
pixelVector2
depthLow Accuracy Number
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Resized

Function

The same view at another resolution, with the intrinsics scaled to match.

Signature
Resized -> Splat Camera
    Splat Camera: Splat Camera
    width: Integer
    height: Integer
SplatCamera Resized(
    SplatCamera Splat Camera,
    int width,
    int height)

Parameters

nametypedefaultdescription
Splat CameraSplat Camera—
widthInteger—
heightInteger—

Returns

resultSplat Camera
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics

Look At

Function

A camera at Eye looking at Target, with the given vertical field of view in radians and the principal point at the image centre.

Signature
LookAt -> Splat Camera
    eye: Vector3
    target: Vector3
    up: Vector3
    verticalFieldOfView: Number
    width: Integer
    height: Integer
SplatCamera LookAt(
    Vector3 eye,
    Vector3 target,
    Vector3 up,
    double verticalFieldOfView,
    int width,
    int height)

Parameters

nametypedefaultdescription
eyeVector3—
targetVector3—
upVector3—The world direction that should appear upward in the picture.
verticalFieldOfViewNumber—
widthInteger—
heightInteger—

Returns

resultSplat Camera
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Splat Camera
Package
Computer Graphics