File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11export const Example = () => {
2-
32 /**
4- * Loading a Gaussian Splat ply
3+ * Loading a compressed Gaussian Splat SOGs file
54 */
6- const splatURL = " https://6rpjo46zo7.ufs.sh/f/dTTBXSHFOX4z7irrg5DfZElT6yeQYKvdjgi5IsoB0cmu9OtF"
7- const { data : splat } = useSplat (splatURL );
5+
6+ const { data : splat } = useSplat (' /skull.sog' );
7+
8+ if (! splat ) return null ;
89
910 return <Entity >
1011 <Entity >
11- <Camera fov = { 30 } />
12- { splat && <OrbitControls
13- distanceMin = { 3 }
14- distanceMax = { 6 } /> }
12+ <Camera fov = { 30 } position = { [0 , , - 6 ]} />
13+ <OrbitControls zoomRange = { [3 , 6 ]} />
1514 </Entity >
1615 { /* Create the splat entity */ }
1716 <Entity
18- rotation = { [0 , 40 , 180 ]}
19- position = { [0.2 , - 1.7 , - 6 ]} >
20- { splat && <GSplat asset = { splat } /> }
17+ rotation = { [0 , 210 , 180 ]}
18+ position = { [0 , - .5 , 0 ]}
19+ >
20+ <GSplat asset = { splat } />
2121 </Entity >
2222 </Entity >
2323}
You can’t perform that action at this time.
0 commit comments