Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file removed examples/assets/splats/angel.compressed.ply
Binary file not shown.
Binary file added examples/assets/splats/angel.sog
Binary file not shown.
Binary file removed examples/assets/splats/biker.compressed.ply
Binary file not shown.
Binary file added examples/assets/splats/biker.sog
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/splat.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<pc-asset src="../node_modules/playcanvas/scripts/esm/xr-controllers.mjs"></pc-asset>
<pc-asset src="../node_modules/playcanvas/scripts/esm/xr-navigation.mjs"></pc-asset>
<pc-asset src="../node_modules/playcanvas/scripts/esm/xr-session.mjs"></pc-asset>
<pc-asset src="assets/splats/angel.compressed.ply" id="angel"></pc-asset>
<pc-asset src="assets/splats/angel.sog" id="angel"></pc-asset>
<pc-asset src="assets/skies/sepulchral-chapel-rotunda-4k.webp" id="rotunda"></pc-asset>
<!-- Scene -->
<pc-scene>
Expand Down Expand Up @@ -49,7 +49,7 @@
</pc-scripts>
</pc-entity>
<!-- Statue -->
<pc-entity name="statue" position="0 1 0" rotation="0 45 0">
<pc-entity name="statue" position="0 1 0" rotation="0 -45 180">
<pc-splat asset="angel"></pc-splat>
</pc-entity>
</pc-scene>
Expand Down
2 changes: 1 addition & 1 deletion examples/video-recorder.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<pc-asset src="assets/scripts/tweener.mjs"></pc-asset>
<pc-asset src="assets/scripts/video-recorder.mjs"></pc-asset>
<pc-asset src="assets/scripts/video-recorder-ui.mjs"></pc-asset>
<pc-asset src="assets/splats/biker.compressed.ply" id="biker"></pc-asset>
<pc-asset src="assets/splats/biker.sog" id="biker"></pc-asset>
<!-- Scene -->
<pc-scene>
<!-- Camera -->
Expand Down
1 change: 1 addition & 0 deletions src/asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const extToType = new Map([
['mjs', 'script'],
['ply', 'gsplat'],
['png', 'texture'],
['sog', 'gsplat'],
['txt', 'text'],
['vert', 'shader'],
['webp', 'texture']
Expand Down