Skip to content

Commit

Permalink
Add export to compressed PLY (#39)
Browse files Browse the repository at this point in the history
* add compressed ply output

* pack quaternions in 2,10,10,10 format

* show error popup
  • Loading branch information
slimbuck authored Nov 20, 2023
1 parent ac69481 commit 96ce79f
Show file tree
Hide file tree
Showing 14 changed files with 752 additions and 312 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
@@ -1,6 +1,6 @@
{
"name": "super-splat",
"version": "0.10.4",
"version": "0.11.0",
"author": "PlayCanvas<support@playcanvas.com>",
"homepage": "https://playcanvas.com",
"description": "All the splat things",
Expand Down
6 changes: 3 additions & 3 deletions src/asset-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Model } from './model';
import { Splat } from './splat';
import { Env } from './env';

import { startSpinner, stopSpinner } from './spinner';
import { startSpinner, stopSpinner } from './ui/spinner';

interface ModelLoadRequest {
url?: string;
Expand Down Expand Up @@ -67,15 +67,15 @@ class AssetLoader {
} as any
);
containerAsset.on('load', () => {
stopSpinner();
if (isPly) {
resolve(new Splat(containerAsset));
} else {
resolve(new Model(containerAsset, gemMaterials));
}

stopSpinner();
});
containerAsset.on('error', (err: string) => {
stopSpinner();
reject(err);
});

Expand Down
Loading

0 comments on commit 96ce79f

Please sign in to comment.