Skip to main content

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

From-v5.0Status: Experimental

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.

PropertyValue
File formatRAD
Extensions.rad
Worker❌ No
Input typeArrayBuffer, URL, or Blob
OutputRAD metadata or RADSource
PropertyValue
Data sourceRADSource

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 RAD0 metadata 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 Range requests
  • 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.

OptionTypeDefaultDescription
rad.headersobjectundefinedRequest headers forwarded to RAD and RADC fetches.
rad.withCredentialsbooleanfalseIncludes credentials for remote RAD and RADC fetches.
rad.headerByteLengthsnumber[][65536, 262144, 1048576]Header probe sizes used while range-fetching remote RAD metadata.
pruneLoadedLoDParentsbooleanfalseWhen iterating chunk tables, removes parent LoD splats whose children are included in the loaded chunk range.
radChunk.includeLoDTreebooleantrueKeeps decoded child_count and child_start arrays in chunk loaderData.
radChunk.includeSphericalHarmonicsbooleanfalseAdds decoded SH rest coefficients to chunk Arrow tables.