playcanvas / playcanvas/splat-transform

Voxel creation causes error

Open
#217 1 comment 0 reactions 1 assignee View on GitHub

@willeastcott is already working on this.

Since Jun 17, 2026.

bugfix
Dominant language
TypeScript
Stars
1.3k
Forks
168
Avg merge
7h 51m
Merged PRs (30d)
12

Description

Attempting to use splat transform to create voxel files for collisions and I get this error.

D:\supersplat>splat-transform Floor33_0427.ply floor33_0427.voxel.json
splat-transform v2.0.1 (129f87d)
▸ [1/2] Input Floor33_0427.ply
▸ Reading
▸ decoding [####################] 1.981s
· 6.01M gaussians · 3 SH bands · 1.32GB
▸ [2/2] Output floor33_0427.voxel.json
· 6.01M gaussians · 3 SH bands · 1.32GB
▸ Build voxels
▸ Building BVH
▸ Voxelizing [
✗ RangeError: Invalid array length
at Array.push ()
at BlockMaskBuffer.addBlock (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:22216:31)
at processResults (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:22514:24)
at flushPendingBatches (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:22531:13)
at async voxelizeToBuffer (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:22574:21)
at async writeVoxel (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:24945:22)
at async writeFile (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:25125:13)
at async main (file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/dist/cli.mjs:26577:13)
at async file:///C:/Users/jport/AppData/Roaming/npm/node_modules/@playcanvas/splat-transform/bin/cli.mjs:5:1
▸ Voxelizing [....................] (failed) 11.732s
failed in 14.403s
failed in 15.044s
✗ failed in 17.034s [peak 3.9MB]

I also tried to create the files through splat studio and got the same error. If I changed the voxel size I got a "set maximum size exceeded" error but if I lower it I get the error above.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.