stump.ts 956 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import type { Scene } from "./_helpers";
  2. export const stump: Scene = {
  3. name: "Stump",
  4. description: "A tree stump with organic textures and natural detail",
  5. spec: {
  6. root: "viewer",
  7. elements: {
  8. viewer: {
  9. type: "GaussianSplatViewer",
  10. props: {
  11. width: "100%",
  12. height: "100vh",
  13. backgroundColor: "#080808",
  14. controls: true,
  15. autoRotate: true,
  16. autoRotateSpeed: 0.6,
  17. cameraPosition: [1.5, 1.5, 3],
  18. cameraTarget: [0, 0.3, 0],
  19. fov: 45,
  20. },
  21. children: [],
  22. },
  23. },
  24. },
  25. viewer: {
  26. backgroundColor: "#080808",
  27. controls: true,
  28. autoRotate: true,
  29. autoRotateSpeed: 0.6,
  30. cameraPosition: [1.5, 1.5, 3],
  31. cameraTarget: [0, 0.3, 0],
  32. fov: 45,
  33. },
  34. splats: [
  35. {
  36. src: "https://huggingface.co/datasets/dylanebert/3dgs/resolve/main/stump/stump-7k.splat",
  37. position: [0, 0, 0],
  38. },
  39. ],
  40. };