Skip to main content

Class: RadixSplatObject

Defined in: src/splats/RadixSplatObject.ts:145

Scene-graph representation of a @sparkjsdev/radix 3D Gaussian Splat model.

Unlike @sparkjsdev/spark's SplatMesh, Radix separates GPU splat tables (GpuArrays) from a scene-wide SplatRenderer that globally sorts and draws an immutable SplatCollection in a single draw call. RadixSplatObject bridges that architecture to THREE.Object3D so transforms, .visible, .opacity, scene add/remove, bounding boxes, and dispose() work identically across XR Blocks scripts and ModelViewer.

Extends​

Constructors​

Constructor​

new RadixSplatObject(__namedParameters): RadixSplatObject

Defined in: src/splats/RadixSplatObject.ts:166

Parameters​

__namedParameters​
boundingBox​

Box3

gpuShPalette?​

GpuArrays<Schema, boolean>

gpuSplats​

GpuArrays

options?​

RadixSplatObjectOptions = {}

radix​

__module

Returns​

RadixSplatObject

Overrides​

THREE.Object3D.constructor

Properties​

boundingBox​

readonly boundingBox: Box3

Defined in: src/splats/RadixSplatObject.ts:147

Local-space bounding box of the decoded splat data.


count​

readonly count: number

Defined in: src/splats/RadixSplatObject.ts:149

Total number of splats stored in gpuSplats.

Overrides​

THREE.Object3D.count


xb?​

optional xb: XBObjectOptions

Defined in: src/interaction/InteractionTypes.ts:34

Inherited from​

THREE.Object3D.xb

Accessors​

isDisposed​

Get Signature​

get isDisposed(): boolean

Defined in: src/splats/RadixSplatObject.ts:217

Whether dispose() has been called on this splat object.

Returns​

boolean


opacity​

Get Signature​

get opacity(): number

Defined in: src/splats/RadixSplatObject.ts:233

Per-object opacity multiplier in [0, 1].

Returns​

number

Set Signature​

set opacity(value): void

Defined in: src/splats/RadixSplatObject.ts:237

Parameters​
value​

number

Returns​

void


params​

Get Signature​

get params(): Partial<SplatObjectParams> | undefined

Defined in: src/splats/RadixSplatObject.ts:222

Per-object Radix rendering parameter overrides.

Returns​

Partial<SplatObjectParams> | undefined

Set Signature​

set params(value): void

Defined in: src/splats/RadixSplatObject.ts:226

Parameters​
value​

Partial<SplatObjectParams> | undefined

Returns​

void

Methods​

dispose()​

dispose(): void

Defined in: src/splats/RadixSplatObject.ts:267

Releases GPU splat textures and unregisters from the scene's RadixSplatManager. If an asynchronous WebGL2 CPU sort is currently in flight for a collection referencing this object, GPU texture destruction is deferred until Radix sweeps that retired collection.

Returns​

void

Overrides​

THREE.Object3D.dispose