Worldbuilding with Gaussian Splats
Overview
This workshop explores virtual worldbuilding with Gaussian splats, spatial audio, and 3D objects in Three.js. Using Marble by World Labs, participants will transform personal photographs, imagined landscapes, and hand-drawn scenes into immersive spatial environments.
Goals
- Generate Gaussian splat environments from photographs, text prompts, and hand-drawn images.
- Combine Gaussian splats with 3D objects to build virtual worlds.
- Use archival recordings and original foley to add spatial audio to environments.
- Deploy interactive environments as static websites.
Exercises
Explore three approaches to worldbuilding. Use the shared workflow below to build each environment.
1. Personal Archive
Select a photo from your personal or family archive.
Using Marble, generate a Gaussian splat using the image as a reference. Augment the environment with spatial audio using online archives, such as:
2. Fantasy
Using Marble, create an imagined or surreal world with a natural language prompt. Augment the environment with foley audio that you record using your phone or an audio recorder.
3. Hand-Drawn Scene
Create a hand-drawn scene and scan or photograph it.
Using Marble, generate a Gaussian splat using the hand-drawn image as a reference.
Workflow
Step 1: Create Gaussian Splats
- Go to Marble by World Labs.
- Upload an image or enter a text prompt.
- Generate your scene.
- Open in Studio Mode to refine.
- Upload mesh objects that you've generated or downloaded from sites such as Free3D or Poly Pizza.
- Export a
.zipfile including splat files as SPZ v3 and meshes.
Step 2: Add Spatial Audio
- Unzip the exported folder.
- Download the Marble Spatial Audio Viewer/Editor.
- Replace the
index.htmlfile in your unzipped Marble export with the repository'sindex.htmlfile. - Follow the repository's README instructions to upload and position spatial audio.
Deployment
Deploy your Gaussian splat environments as static sites using Dokploy.
Spin up a virtual machine (VM) using Virtual Computing Manager.
Click Request a VM, select Linux, and choose Ubuntu Server 26.04.
Create an alias, such as
[first name]-splats.Turn off Automatic power downs and provide a reason, such as "Deploying static websites for a class."
SSH into the machine using the admin user. Replace
adminwith your admin username andyour-aliaswith your VM's alias:shssh admin@your-alias.colab.duke.eduEnter your password when prompted.
Install Dokploy using the following command:
shcurl -sSL https://dokploy.com/install.sh | shAfter Dokploy installs, create a username and password and store them safely. In the Dokploy dashboard, go to Settings and enter your alias in the Domain field, such as
your-alias.colab.duke.edu.Enter your email in the Let's Encrypt Email field, turn HTTPS on, and select Let's Encrypt from the Certificate Provider dropdown.
Go to Projects, click Create Project, and select Create Service → Application.
Under General, click Drop.
Zip your static site folder and upload the zipped folder.
Under Build Type, choose Static and click Save.
Click Deploy.
Under Domains, click Add Domain. Click the dice icon to generate a random domain. Set Container Port to
80, turn HTTPS on, select Let's Encrypt as the Certificate Provider, and click Create.