Divooka Reference

Splat Editing

8 nodes

On this page 8

Crop

Function

Keeps the splats whose centres are inside an axis-aligned box, or with Keep Inside false, the ones outside it.

Signature
Crop -> Splat Cloud
    cloud: Splat Cloud
    min: Vector3
    max: Vector3
    keepInside: Truth
SplatCloud Crop(
    SplatCloud cloud,
    Vector3 min,
    Vector3 max,
    bool keepInside = true)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
minVector3—
maxVector3—
keepInsideTruthTrue

Returns

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

Crop Sphere

Function

Keeps the splats whose centres are within a distance of a point.

Signature
CropSphere -> Splat Cloud
    cloud: Splat Cloud
    center: Vector3
    radius: Low Accuracy Number
    keepInside: Truth
SplatCloud CropSphere(
    SplatCloud cloud,
    Vector3 center,
    float radius,
    bool keepInside = true)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
centerVector3—
radiusLow Accuracy Number—
keepInsideTruthTrue

Returns

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

Decimate

Function

Keeps the Count splats that contribute most, judged by opacity times the area of the splat's two larger axes.

Signature
Decimate(cloud: Splat Cloud, count: Integer) -> Splat Cloud
SplatCloud Decimate(SplatCloud cloud, int count)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
countInteger—

Returns

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

Estimate Up

Function

A guess at which way is up in a cloud that came with no cameras: the direction the central mass of splats is thinnest along, which for a scene standing on ground, a floor or a table is the ground's normal. The sign cannot be told from the splats, so the one nearer Prefer is returned; trained splats are usually in COLMAP's convention, where up is near -Y.

Signature
EstimateUp(cloud: Splat Cloud, prefer: Vector3) -> Vector3
Vector3 EstimateUp(SplatCloud cloud, Vector3 prefer)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
preferVector3—

Returns

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

Get Focus

Function

The centre and radius of a sphere holding the given share of the splats nearest the median centre: a robust idea of where the subject is, which a few distant splats do not move.

Signature
GetFocus -> (Vector3, Low Accuracy Number)
    cloud: Splat Cloud
    share: Low Accuracy Number
(Vector3, float) GetFocus(SplatCloud cloud, float share = 0.9f)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
shareLow Accuracy Number0.9

Returns

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

Get Subject

Function

A guess at where the subject of a cloud is, for one that came with no cameras: the focus of its smallest third of splats. A trainer spends small splats where the photographs had detail and were near, and large ones on sky, sea and distance, so the small ones gather on what was photographed; the median of every splat, which SplatEditing.GetFocus gives, sits in the background of any scene that has one.

Signature
GetSubject(cloud: Splat Cloud) -> (Vector3, Low Accuracy Number)
(Vector3, float) GetSubject(SplatCloud cloud)

Parameters

nametypedefaultdescription
cloudSplat Cloud—

Returns

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

Prune

Function

Removes splats too faint to matter and splats too large to be surface: the haze and the floaters a trained cloud is left with.

Signature
Prune -> Splat Cloud
    cloud: Splat Cloud
    minOpacity: Low Accuracy Number
    maxScale: Low Accuracy Number
SplatCloud Prune(
    SplatCloud cloud,
    float minOpacity = 0.02f,
    float maxScale = 0f)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
minOpacityLow Accuracy Number0.02Splats less opaque than this are removed.
maxScaleLow Accuracy Number0Splats whose largest axis exceeds this are removed; 0 keeps every size.

Returns

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

Transform

Function

Moves a cloud by a rotation, a uniform scale and a translation, applied in that order. Positions, orientations and sizes follow, and so do the spherical-harmonic coefficients, since a colour that depends on the direction it is seen from has to turn with the splat.

Signature
Transform -> Splat Cloud
    cloud: Splat Cloud
    rotation: Quaternion
    scale: Low Accuracy Number
    translation: Vector3
SplatCloud Transform(
    SplatCloud cloud,
    Quaternion rotation,
    float scale,
    Vector3 translation)

Parameters

nametypedefaultdescription
cloudSplat Cloud—
rotationQuaternion—The rotation, as a unit quaternion.
scaleLow Accuracy Number—A uniform scale; a splat cannot be scaled unevenly and stay a splat with the same axes.
translationVector3—

Returns

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