Skip to content

Commit

Permalink
Fix create_splat script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkkellogg committed Nov 14, 2023
1 parent fc71256 commit 10e88f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/create-splat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as GaussianSplats3D from '../build/gaussian-splat-3d.module.js';
import * as GaussianSplats3D from '../build/gaussian-splats-3d.module.js';
import * as fs from 'fs';

if (process.argv.length < 4) {
Expand All @@ -18,8 +18,8 @@ const splatBuffer = plyParser.parseToSplatBuffer(compressionLevel, splatAlphaRem

const headerData = new Uint8Array(splatBuffer.getHeaderBufferData());
const splatData = new Uint8Array(splatBuffer.getSplatBufferData());
const combined = new Uint8Array(headerData.buffer.byteLength + splatData.buffer.byteLength);
combined.set(headerData.buffer, 0);
combined.set(splatData.buffer, headerData.buffer.byteLength);
const combined = new Uint8Array(headerData.byteLength + splatData.byteLength);
combined.set(headerData, 0);
combined.set(splatData, headerData.byteLength);

fs.writeFileSync(outputFile, combined);

0 comments on commit 10e88f8

Please sign in to comment.