Module 03 / SPLATS
Gaussian splats
Trained from the model
Gaussian splats draw appearance, not polygons: soft, photoreal light that meshes struggle to match.
Why it matters
- What you're looking at
- The FS01 as hundreds of thousands of soft points, trained from renders of its own model and streamed in levels of detail, in PlayCanvas on WebGPU.
- Why it matters
- Reflections, soft shadows and fine detail come straight from the training images, and streaming puts a first picture up in moments that sharpens as you look.
- The trade-off
- Large files and memory, light baked in (it can be graded, not relit), and no clean geometry for physics, editing or AR placement.
Loading stage…
Module notes
The FS01 as hundreds of thousands of soft 3D points, trained from renders of its own 3D model rather than photographs, and streamed in levels of detail, so it starts fast and sharpens as you look.
- This browser
- checking…
- Native path
- PlayCanvas on WebGPU · Streamed SOG needs WebGPU
- Fallback
- PlayCanvas on WebGL 2 needs WebGL 2
- Status
- Live since 2026-10-10
- Payload
- The FS01 splat, finest level (100K splats, SOG) · 3.41 MB
- PlayCanvas engine and stage code · 403 KB
- Budget
- Payload 3.8 MB · budget ≤ 4.5 MB Within
- First frame desktop 4.3 s · phone 3.5 s · budget ≤ 4.5 s Within
- Frame rate desktop 60 fps · phone 60 fps · budget ≥ 55 fps desktop · ≥ 30 phone Within
- Browser support
-
First version with each feature · caniuse, 2026-10-11Feature Chrome Safari Firefox WebGPU (PlayCanvas's renderer; Firefox on Windows, and Apple-silicon Macs from 145) 113 26 141 WebP images (the SOG format's textures) 32 16 65 WebGL 2 (the fallback) 56 15 51 - Tags
Module 03 / Use it on your page
A JavaScript engine (PlayCanvas) draws the splat on WebGPU or WebGL 2. Most of the work is making the splat file.
npm playcanvas 2.23 (about 400 KB) · a streamed SOG folder: 3.4 MB at the finest level, coarser levels first
-
Step 1
Train the splat and pack it
Train from photos or renders (here: Brush, from 240 posed Blender renders), then let splat-transform thin it into levels of detail and pack them as a streamed SOG.
splat-transform lod0.ply -d 50% lod1.ply splat-transform lod0.ply -d 25% lod2.ply splat-transform lod0.ply -d 10% lod3.ply splat-transform lod0.ply -l 0 lod1.ply -l 1 lod2.ply -l 2 \ lod3.ply -l 3 splat/lod-meta.json -
Step 2
Start the engine
Ask for WebGPU and fall back to WebGL 2. Register only the systems you use: a camera, splats, and the texture handler (a SOG is WebP inside).
import * as pc from "playcanvas"; const device = await pc.createGraphicsDevice(canvas, { deviceTypes: [pc.DEVICETYPE_WEBGPU, pc.DEVICETYPE_WEBGL2], }); const app = new pc.AppBase(canvas); const opts = new pc.AppOptions(); opts.graphicsDevice = device; opts.componentSystems = [pc.CameraComponentSystem, pc.GSplatComponentSystem]; opts.resourceHandlers = [pc.GSplatHandler, pc.TextureHandler]; app.init(opts); app.start(); -
Step 3
Load it and look at it
The splat is an asset on an entity; a camera entity looks at it. Levels stream in as the camera comes close.
const asset = new pc.Asset("product", "gsplat", { url: "splat/lod-meta.json" }); app.assets.add(asset); app.assets.load(asset); const splat = new pc.Entity(); splat.addComponent("gsplat", { asset }); app.root.addChild(splat); const camera = new pc.Entity(); camera.addComponent("camera", { clearColor: new pc.Color(0.93, 0.92, 0.9) }); camera.setPosition(0, 0.2, 0.6); camera.lookAt(0, 0.05, 0); app.root.addChild(camera); -
Step 4
Budget it per device
Cap how many splats are drawn at once, lower on phones, so the frame rate holds.
app.scene.gsplat.splatBudget = isPhone ? 300_000 : 1_500_000;
Serving it
- Serve the SOG folder as plain static files. It's WebP inside, so gzip gains nothing.
- Leave out TextureHandler and the splat draws as one large grey disc.
- No code at all: the SuperSplat viewer embeds a splat in an iframe.