Skip to content

Voxel creation causes error #217

@jportolese

Description

@jportolese

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions