Skip to content

Commit

Permalink
Fix PLY loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mkkellogg committed Mar 14, 2024
1 parent bffd417 commit a64c0c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/mkkellogg/GaussianSplats3D"
},
"version": "0.3.2",
"version": "0.3.3",
"description": "Three.js-based 3D Gaussian splat viewer",
"module": "build/gaussian-splats-3d.module.js",
"main": "build/gaussian-splats-3d.umd.cjs",
Expand Down
3 changes: 2 additions & 1 deletion src/loaders/PlyLoader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { PlyParser } from './PlyParser.js';
import { SplatBufferGenerator } from './SplatBufferGenerator.js';
import { fetchWithProgress, delayedExecute } from '../Util.js';
import { LoaderStatus } from './LoaderStatus.js';

Expand All @@ -19,7 +20,7 @@ export class PlyLoader {
});
})
.then((splatArray) => {
const splatBufferGenerator = GaussianSplats3D.SplatBufferGenerator.getStandardGenerator(minimumAlpha,
const splatBufferGenerator = SplatBufferGenerator.getStandardGenerator(minimumAlpha,
compressionLevel, sectionSize,
sceneCenter, blockSize, bucketSize);
const splatBuffer = splatBufferGenerator.generateFromUncompressedSplatArray(splatArray);
Expand Down

0 comments on commit a64c0c8

Please sign in to comment.