Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
992ed9a
Merge pull request #281 from mkkellogg/dev
mkkellogg Jul 15, 2024
ef524f4
Add 2D scene mode option to demo page
mkkellogg Jul 16, 2024
2d80511
Merge pull request #310 from mkkellogg/dev
mkkellogg Aug 25, 2024
f6f4ade
Merge pull request #334 from mkkellogg/dev
mkkellogg Sep 17, 2024
57c5199
Add the possibility to add a splat scene from a file
d0rianb Sep 24, 2024
e280fc5
Revert auto-formatting
d0rianb Sep 24, 2024
b311277
Add the possibility to add a splat scene from a file
d0rianb Sep 24, 2024
3ac12e0
Revert auto-formatting
d0rianb Sep 24, 2024
b2a2c48
Merge from load-from-file
d0rianb Sep 27, 2024
19f3795
Fix git merge issue
d0rianb Sep 27, 2024
80f1f12
Fix demo & fileName issue
d0rianb Sep 27, 2024
a6d4356
Merge branch 'mkkellogg:main' into load-from-file
d0rianb Nov 16, 2024
408943e
Merge pull request #384 from mkkellogg/dev
mkkellogg Dec 4, 2024
2dfc83e
Merge pull request #413 from mkkellogg/dev
mkkellogg Jan 25, 2025
a17d21d
Update to 0.4.7
d0rianb Feb 4, 2025
397dd22
Merge branch 'main' into load-from-file
d0rianb Feb 4, 2025
617f31e
Add loading from an R2 bucket
d0rianb Feb 28, 2025
c150adb
Add R2 file loading
d0rianb Feb 28, 2025
06deecf
Refactor R2 & file loading
d0rianb Mar 2, 2025
4226a46
Remove unsed dependency
d0rianb Mar 10, 2025
6574304
Refactor to a generic function : addSplatSceneFromPromise
d0rianb Mar 17, 2025
b344a93
Update sort for small splat count (#420)
mkkellogg Feb 12, 2025
88400f7
Fix onProgress status
mkkellogg Feb 12, 2025
cb4bd90
Tweaking calculation of renderer dimensions
mkkellogg Feb 21, 2025
fc0b27b
Update unchanged files to remotes/dev
d0rianb Mar 17, 2025
d6735f5
Fix loading message
d0rianb Mar 18, 2025
19e9ccc
Improve argument passign in `loadSplatSceneFromFileToSplatBuffer`
d0rianb Mar 19, 2025
e60a5ed
Add filename parameter to fix format detection issue
d0rianb Apr 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 224 additions & 27 deletions src/Viewer.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/loaders/spz/SpzLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,11 @@ export class SpzLoader {

static loadFromURL(fileName, onProgress, minimumAlpha, compressionLevel, optimizeSplatData = true,
outSphericalHarmonicsDegree = 0, headers, sectionSize, sceneCenter, blockSize, bucketSize) {
const localOnProgress = (percent, percentLabel) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure of the possible side effect there, but this change at least obscures how the onProgress eventing functions, which already is not trivial to grasp.

I even doubt this change is necessary.

onProgress(percent, percentLabel, LoaderStatus.Downloading);
};
if (onProgress) onProgress(0, '0%', LoaderStatus.Downloading);
return fetchWithProgress(fileName, onProgress, true, headers).then((fileData) => {
return fetchWithProgress(fileName, localOnProgress, true, headers).then((fileData) => {
if (onProgress) onProgress(0, '0%', LoaderStatus.Processing);
return SpzLoader.loadFromFileData(fileData, minimumAlpha, compressionLevel, optimizeSplatData,
outSphericalHarmonicsDegree, sectionSize, sceneCenter, blockSize, bucketSize);
Expand Down
2 changes: 1 addition & 1 deletion src/worker/compile_wasm_no_simd.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
em++ -std=c++11 sorter_no_simd.cpp -Os -s WASM=1 -s SIDE_MODULE=2 -o sorter_no_simd.wasm -s IMPORTED_MEMORY=1 -s SHARED_MEMORY=1
em++ -std=c++11 sorter_no_simd.cpp -Os -s WASM=1 -s SIDE_MODULE=2 -o sorter_no_simd.wasm -s IMPORTED_MEMORY=1 -s USE_PTHREADS=1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was it some troubleshooting changes? is that needed?

I would not touch this given the no_simd is likely a script for compatibility sake. Not sure tbh.

2 changes: 2 additions & 0 deletions src/worker/sorter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ EXTERN EMSCRIPTEN_KEEPALIVE void sortIndexes(unsigned int* indexes, void* center
int maxDistance = -2147483640;
int minDistance = 2147483640;

if (distanceMapRange > sortCount) distanceMapRange = sortCount;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like an unrelated change here.


float fMVPTRow3[4];
unsigned int sortStart = renderCount - sortCount;
if (useIntegerSort) {
Expand Down
Binary file modified src/worker/sorter.wasm
Binary file not shown.
2 changes: 2 additions & 0 deletions src/worker/sorter_no_simd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ EXTERN EMSCRIPTEN_KEEPALIVE void sortIndexes(unsigned int* indexes, void* center
int maxDistance = -2147483640;
int minDistance = 2147483640;

if (distanceMapRange > sortCount) distanceMapRange = sortCount;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too.

float fMVPTRow3[4];
int iMVPTRow3[4];
unsigned int sortStart = renderCount - sortCount;
Expand Down
Binary file modified src/worker/sorter_no_simd.wasm
Binary file not shown.
Binary file modified src/worker/sorter_no_simd_non_shared.wasm
Binary file not shown.
Binary file modified src/worker/sorter_non_shared.wasm
Binary file not shown.