Splat Editing
8 nodes
On this page 8
Crop
FunctionKeeps the splats whose centres are inside an axis-aligned box, or with Keep Inside false, the ones outside it.
Crop -> Splat Cloud
cloud: Splat Cloud
min: Vector3
max: Vector3
keepInside: TruthSplatCloud Crop(
SplatCloud cloud,
Vector3 min,
Vector3 max,
bool keepInside = true)Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| min | Vector3 | — | |
| max | Vector3 | — | |
| keepInside | Truth | True |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics
Crop Sphere
FunctionKeeps the splats whose centres are within a distance of a point.
CropSphere -> Splat Cloud
cloud: Splat Cloud
center: Vector3
radius: Low Accuracy Number
keepInside: TruthSplatCloud CropSphere(
SplatCloud cloud,
Vector3 center,
float radius,
bool keepInside = true)Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| center | Vector3 | — | |
| radius | Low Accuracy Number | — | |
| keepInside | Truth | True |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics
Decimate
FunctionKeeps the Count splats that contribute most, judged by opacity times the area of the splat's two larger axes.
Decimate(cloud: Splat Cloud, count: Integer) -> Splat Cloud
SplatCloud Decimate(SplatCloud cloud, int count)
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| count | Integer | — |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics
Estimate Up
FunctionA 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.
EstimateUp(cloud: Splat Cloud, prefer: Vector3) -> Vector3
Vector3 EstimateUp(SplatCloud cloud, Vector3 prefer)
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| prefer | Vector3 | — |
Returns
| result | Vector3 |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics
Get Focus
FunctionThe 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.
GetFocus -> (Vector3, Low Accuracy Number)
cloud: Splat Cloud
share: Low Accuracy Number(Vector3, float) GetFocus(SplatCloud cloud, float share = 0.9f)
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| share | Low Accuracy Number | 0.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
FunctionA 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.
GetSubject(cloud: Splat Cloud) -> (Vector3, Low Accuracy Number)
(Vector3, float) GetSubject(SplatCloud cloud)
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat 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
FunctionRemoves splats too faint to matter and splats too large to be surface: the haze and the floaters a trained cloud is left with.
Prune -> Splat Cloud
cloud: Splat Cloud
minOpacity: Low Accuracy Number
maxScale: Low Accuracy NumberSplatCloud Prune(
SplatCloud cloud,
float minOpacity = 0.02f,
float maxScale = 0f)Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| minOpacity | Low Accuracy Number | 0.02 | Splats less opaque than this are removed. |
| maxScale | Low Accuracy Number | 0 | Splats whose largest axis exceeds this are removed; 0 keeps every size. |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics
Transform
FunctionMoves 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.
Transform -> Splat Cloud
cloud: Splat Cloud
rotation: Quaternion
scale: Low Accuracy Number
translation: Vector3SplatCloud Transform(
SplatCloud cloud,
Quaternion rotation,
float scale,
Vector3 translation)Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| rotation | Quaternion | — | The rotation, as a unit quaternion. |
| scale | Low Accuracy Number | — | A uniform scale; a splat cannot be scaled unevenly and stay a splat with the same axes. |
| translation | Vector3 | — |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat Editing
- Package
- Computer Graphics