RAD source
Page large splat datasets instead of loading them all.
RADLoader reads local RAD metadata while RADLoader discovers and range-fetches Spark RAD chunks. The source exposes decoded chunk tables so a renderer can own level-of-detail selection and GPU residency.
The RAD source path
Read metadata first. Fetch only the chunks a view needs.
RAD separates dataset metadata from chunk payloads. The source keeps that boundary explicit while returning each decoded page in the standard table shape.
Discover
RAD metadata, hierarchy, and chunk locations
Fetch
Range requests for RAD and RADC payloads
Decode
Chunk attributes into Mesh Arrow tables
Control
Renderer-owned LoD traversal and cache policy
RADLoader parses Spark .rad metadata. RADLoader creates a runtime
source for range-fetching Spark .rad headers, RADC chunks, and decoded chunk
tables.
Detailed guide
RAD source and chunk details
The reference below covers local parsing, remote range fetching, chunk iteration, decoded attributes, options, and the renderer boundary.
| Property | Value |
|---|---|
| File format | RAD |
| Extensions | .rad |
| Worker | ❌ No |
| Input type | ArrayBuffer, URL, or Blob |
| Output | RAD metadata or RADSource |
| Property | Value |
|---|---|
| Data source | RADSource |
Usage
Use RADLoader when working with remote LoD assets:
import {createDataSource} from '@loaders.gl/core';
import {RADLoader} from '@loaders.gl/splats/rad';
const source = await createDataSource(url, RADLoader);
const metadata = await source.getMetadata();
const firstChunk = await source.getChunk(0);
const firstChunkTable = await source.getChunkTable(0);
for await (const chunkTable of source.getChunkTables({
maxChunks: 8,
pruneLoadedLoDParents: true
})) {
// Append each decoded chunk table to a renderer-owned page cache.
}
Chunk table methods return Apache Arrow tables. The schema entry
loaders_gl.gaussian_splats.loader_data holds the chunk header and, when decoded,
the LoD child counts and offsets as JSON arrays.
For full buffers, RADLoader returns just the top-level metadata:
import {parse} from '@loaders.gl/core';
import {RADLoader} from '@loaders.gl/splats/rad';
const metadata = await parse(arrayBuffer, RADLoader);
Format Support
RADLoader and RADLoader support Spark RAD version 1 files with type: 'gsplat'. The source understands:
- top-level
RAD0metadata headers - inline RADC chunks stored after the RAD header
- sidecar chunk filenames relative to the RAD URL
- RADC chunk metadata headers
- chunk range fetching through HTTP
Rangerequests - RADC payload decoding for centers, alpha, RGB, scales, orientations, LoD child arrays, and optional spherical harmonics
- Mesh Arrow table construction for individual chunks
RAD is a paged LoD format, so exact Spark-style rendering still requires a renderer to drive page selection, LoD tree traversal, and GPU residency. The source exposes chunk decoding so renderers and examples can bridge RAD pages into the standard loaders.gl Gaussian splat Arrow table shape.
Options
For shared loading controls and parser configuration, see Source options. The settings below are specific to this source.
| Option | Type | Default | Description |
|---|---|---|---|
rad.headers | object | undefined | Request headers forwarded to RAD and RADC fetches. |
rad.withCredentials | boolean | false | Includes credentials for remote RAD and RADC fetches. |
rad.headerByteLengths | number[] | [65536, 262144, 1048576] | Header probe sizes used while range-fetching remote RAD metadata. |
pruneLoadedLoDParents | boolean | false | When iterating chunk tables, removes parent LoD splats whose children are included in the loaded chunk range. |
radChunk.includeLoDTree | boolean | true | Keeps decoded child_count and child_start arrays in chunk loaderData. |
radChunk.includeSphericalHarmonics | boolean | false | Adds decoded SH rest coefficients to chunk Arrow tables. |