Splat File
6 nodes
On this page 6
Describe
FunctionOverload 1 of 2
Describe(path: Text) -> Splat File Description
SplatFileDescription Describe(string path)
Reports a file's format, splat count, spherical-harmonic degree and bounds without building the cloud. PLY and .splat are scanned for their bounds a block at a time; compressed PLY, glTF and SOG state theirs up front; SPZ decompresses its positions only.
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Splat File Description |
Overload 2 of 2
Describe(stream: Stream) -> Splat File Description
SplatFileDescription Describe(Stream stream)
Reports a stream's format, splat count, spherical-harmonic degree and bounds without building the cloud.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — |
Returns
| result | Splat File Description |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics
Detect Format
FunctionThe format of a file by its content: the PLY, glTF, gzip, NGSP or zip signature, or JSON that is a glTF or a SOG meta.json. A .splat has no signature and is recognised by its extension.
DetectFormat(path: Text) -> Splat Format
SplatFormat DetectFormat(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Splat Format |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics
Get Format Axes
FunctionThe axis convention a format stores its splats in: right-up-back for SPZ, left-up-front for glTF, and SplatAxes.Unspecified for PLY, compressed PLY, .splat and SOG, which hold whatever the trainer produced.
GetFormatAxes(format: Splat Format) -> Splat Axes
SplatAxes GetFormatAxes(SplatFormat format)
Parameters
| name | type | default | description |
|---|---|---|---|
| format | Splat Format | — |
Returns
| result | Splat Axes |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics
Get Format From Extension
FunctionThe format a file name's extension names, or SplatFormat.Auto when it names none: .compressed.ply, .ply, .splat, .spz, .gltf, .glb, .sog, and .json for a SOG's meta.json.
GetFormatFromExtension(path: Text) -> Splat Format
SplatFormat GetFormatFromExtension(string path)
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Splat Format |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics
Load
FunctionOverload 1 of 4
Load(path: Text) -> Splat Cloud
SplatCloud Load(string path)
Loads a splat file, sniffing its format from the content, and returns the cloud in the trainers' axes (x right, y down, z forward).
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — |
Returns
| result | Splat Cloud |
Overload 2 of 4
Load(path: Text, options: Splat Load Options) -> Splat Cloud
SplatCloud Load(string path, SplatLoadOptions options)
Loads a splat file as the options direct: a stated format instead of the sniffed one, another axis convention for the result, or a statement of what axes the file holds.
Parameters
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| options | Splat Load Options | — |
Returns
| result | Splat Cloud |
Overload 3 of 4
Load(stream: Stream) -> Splat Cloud
SplatCloud Load(Stream stream)
Loads a splat file from a stream, sniffing its format from the content. A glTF with an external buffer and a SOG that is a loose folder need a path instead.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — |
Returns
| result | Splat Cloud |
Overload 4 of 4
Load(stream: Stream, options: Splat Load Options) -> Splat Cloud
SplatCloud Load(Stream stream, SplatLoadOptions options)
Loads a splat file from a stream as the options direct.
Parameters
| name | type | default | description |
|---|---|---|---|
| stream | Stream | — | |
| options | Splat Load Options | — |
Returns
| result | Splat Cloud |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics
Save
FunctionOverload 1 of 4
Save(cloud: Splat Cloud, path: Text)
void Save(SplatCloud cloud, string path)
Saves a cloud in the format its file extension names: .ply, .compressed.ply, .splat, .spz, .gltf (with a .bin beside it), .glb, .sog, or meta.json for a SOG as loose files in that folder. The cloud is taken to be in the trainers' axes and converted to the format's own where it has one.
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| path | Text | — |
Overload 2 of 4
Save
cloud: Splat Cloud
path: Text
options: Splat Save Optionsvoid Save(
SplatCloud cloud,
string path,
SplatSaveOptions options)Saves a cloud as the options direct: a stated format instead of the extension's, the axes the cloud is in, the axes to store, and each format's own settings.
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| path | Text | — | |
| options | Splat Save Options | — |
Overload 3 of 4
Save(cloud: Splat Cloud, stream: Stream, format: Splat Format)
void Save(SplatCloud cloud, Stream stream, SplatFormat format)
Saves a cloud to a stream in the stated format with default settings. A .gltf written to a stream embeds its buffer as a data URI; a SOG is written as its zip bundle.
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| stream | Stream | — | |
| format | Splat Format | — |
Overload 4 of 4
Save
cloud: Splat Cloud
stream: Stream
options: Splat Save Optionsvoid Save(
SplatCloud cloud,
Stream stream,
SplatSaveOptions options)Saves a cloud to a stream as the options direct; the options must state the format.
Parameters
| name | type | default | description |
|---|---|---|---|
| cloud | Splat Cloud | — | |
| stream | Stream | — | |
| options | Splat Save Options | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Splat File
- Package
- Computer Graphics