r/PlayCanvas • • 3h ago

PlayCanvas Inspector 0.6.0: snapshot your app’s video memory and explore it as a treemap

3 Upvotes

We just released PlayCanvas Inspector 0.6.0, a debug panel you drop into a running PlayCanvas app. The big new feature is snapshots.

On the Memory, Assets, Render targets, Meshes and Shaders tabs you can now:

  • Capture what the tab measures at one moment. The snapshot holds still while your app keeps running.

  • Open it as a treemap in a tab of its own: every texture, buffer, mesh or shader is a box sized by its bytes, grouped by kind, model file or render target.

  • Zoom in with Ctrl + wheel and drag around, so the small boxes get room for their names.

  • Compare two snapshots to see what was added and removed, or size the boxes by how much they changed, so a small leak stands out next to big textures.

  • Click a box to jump to that object in the tab that lists it.

The video uses the engine's Welcome example. Almost all of its ~50 MB of video memory turns out to be render targets: the planar reflection (21 MB), the shadow map (16 MB) and the scene color buffers.

Snapshots only hold weak references, so they never keep anything of your app alive, which matters when you're hunting a leak.

Getting started:

npm install @playcanvas/inspector

import { Inspector } from '@playcanvas/inspector';

const inspector = new Inspector(app);

Docs: https://developer.playcanvas.com/user-manual/debugging/inspector/#snapshots

Also new in 0.6.0: a Layers tab showing the layer composition in render order, with a way to hide a layer from the view.

What would you like to be able to measure next? Feedback welcome.


r/PlayCanvas • • 9d ago

While GTA 6 downloads, here’s a racer that loads in a browser

14 Upvotes

Edit: now playable on mobile too 📱 Turn your phone sideways and use the touch wheel.

I’ve built a small arcade racer that runs entirely in the browser. Everything in the video is captured from the game in real time, no offline rendering.

Play it (desktop or mobile): Overdrive

What’s in it:

  • PlayCanvas engine, WebGPU with a WebGL 2 fallback

  • Planar reflections on the wet road

  • Volumetric fog with sun shafts

  • Per-pixel motion blur and rain drops on the lens

  • Lit tyre smoke when you drift

  • Procedural meadow grass and trees

  • Drift scoring, plus nitro shards to collect

The whole thing is about 18 MB, and it loads in a tab with nothing to install. It takes a few seconds to warm up the shaders when you hit Drive.

Built with TypeScript and Vite on top of PlayCanvas. Happy to answer questions about any of the rendering.

Car: Porsche 911 Carrera 4S by Lionsharp Studios, CC BY-SA 4.0. Terrain textures from Poly Haven.


r/PlayCanvas • • 10d ago

Probe Volumes in PlayCanvas: baked GI for static and dynamic objects, re-baked on the GPU in the browser

7 Upvotes

We just merged probe volumes into the open-source PlayCanvas Engine, and wanted to share how they work.

What it does

A grid of light probes fills an area of the scene. Each probe stores the indirect light arriving from every direction, and surfaces inside the volume take their ambient lighting from the probes around them. That covers static geometry and moving objects alike, so characters pick up the baked lighting as they walk around. The video shows a time-of-day sweep, emissive-only lighting at night, a character walking past a glowing orb, and the probe debug view.

How it works

- Probes: L1 spherical harmonics, stored in a 3D texture (RGBA16F or RGBA8) and sampled with hardware trilinear filtering. ZH3-style sharpening gets the result closer to L2 without storing more data.

- Baking, in two steps:

- Each probe captures what it sees once, as a small cubemap G-buffer (albedo, normal, distance, emission).

- The lighting is then baked from that G-buffer on the GPU, with the scene's lights, the sky and multiple bounces. This step takes a fraction of a second, so the lighting can be re-baked as the sun moves.

- Leak reduction: probe validity (probes stuck inside geometry are excluded), virtual offsets (those probes are moved out of the geometry), and per-probe visibility. Visibility uses octahedral depth moments with a Chebyshev test, DDGI-style.

- Multiple lightings: one volume can hold several lighting setups (midday, sunset, night) sharing the captured geometry, saved to one file and switched instantly.

- Baking vs loading: baking needs float render targets. The baked file loads on any device.

Everything runs in the browser on WebGPU and WebGL2.

PR with the details: https://github.com/playcanvas/engine/pull/10079


r/PlayCanvas • • 15d ago

300M views with a 1.3 MB game: how I built Mojo Ski for Snapchat with PlayCanvas

11 Upvotes

I wrote up how I made Mojo Ski, a snowboarding game that runs inside Snapchat as a Web Lens. It's engine-only PlayCanvas, and the engine plus all the game code is about 315 KB zipped.

Some things that might be useful if you're doing something similar: importing engine classes by name so the bundler drops the rest, one vertex-colored mesh per 50 m of slope (about 30 draw calls in total), and letting the game play itself for a few seconds under the loading screen so shaders don't compile mid-run.

https://blog.playcanvas.com/building-mojo-ski-300m-views-in-seven-hours/

Happy to answer questions.


r/PlayCanvas • • 17d ago

Splash One: a flight combat sandbox built with the PlayCanvas engine (and Opus 5.5), now in the examples

25 Upvotes

I added a new example to the PlayCanvas engine examples: Splash One, an arcade jet flying over procedural terrain. It was built with Claude Opus 5.5.

It’s meant as a reference for how to put the pieces together, not as a finished game. What’s in it:

  • Terrain: a CDLOD heightfield, generated fresh each mission

  • Sky haze: distant surfaces fade into the actual sky color, using the dynamic sky model

  • Effects: GPU particles, ribbon trails, ship wakes

  • Audio: engine spool, blasts and echo, shaped with Web Audio

  • Gameplay: missiles with lock-on and warning, SAM sites, enemy fighters and frigates

  • Runs on WebGL2 and WebGPU, with gamepad support

Play it here: https://playcanvas.com/examples/#/demos/splash-one


r/PlayCanvas • • 17d ago

Walk Through Your Codebase

Post image
10 Upvotes

I’ve open-sourced Kodyurd, a tool that turns your codebase into a walkable 3D city.

When you join a project or open an unfamiliar repository, you can explore its modules as buildings, see how they connect, and jump to the code behind what you find.

With Kodyurd, you can:
Explore architecture and data relationships in 3D.
Replay example scenarios step by step, with links to the relevant source code.
Read documentation, take guided tours, and check your understanding with quizzes.
Ask questions about the codebase and get answers grounded in your workspace.
Export a city as a static bundle you can share.

Kodyurd runs on your own computer. It scans your workspace, renders the city, and stores your results locally. For generation and Q&A, it works with your chosen AI provider, such as Claude Code or Codex.

You can clone the repo, set it up yourself, and modify or extend it. The first release includes Harbor Desk, a sample project, and a video walkthrough to help you get started.
If you try it on your own repo, I’d love to hear what you find useful and what you’d improve.

Kodyurd


r/PlayCanvas • • 18d ago

PlayCanvas Engine 2.24 is here: analytic dynamic sky, planar reflections, AgX, compute passes (open source, WebGPU/WebGL2)

33 Upvotes

Hi all, we just released PlayCanvas Engine 2.24, an open source (MIT) web graphics engine. A few things in this release that might interest this sub:

  • DynamicSkyEffect: an analytic atmosphere with volumetric clouds, stars, the moon and haze across a full day-night cycle. Other materials and CPU code can evaluate the sky too.

  • Planar reflections in StandardMaterial, blurred with a Gaussian mipmap filter for roughness-aware reflections.

  • AgX and AgX Punchy tone mapping alongside the existing ACES fits.

  • ComputePass: dispatch compute shaders at any point in the frame, with access to per-camera scene depth and color maps.

  • CameraFrame is now a pluggable effects pipeline (SMAA, auto exposure, lens flare, HQ bloom, TAA with temporal upscaling) with public pass hooks for your own effects.

  • Volume textures on WebGPU, plus rendering into volume texture depth slices and texture array layers.

Every feature has a live example you can poke at in the browser (source included): https://playcanvas.com/examples

Release notes: https://github.com/playcanvas/engine/releases/tag/v2.24.0

Happy to answer questions about any of the implementations.


r/PlayCanvas • • 19d ago

Digital rain effect for 3D Gaussian splats, inspired by The Matrix (open source, PlayCanvas)

11 Upvotes

r/PlayCanvas • • 23d ago

Rendering a Gaussian splat from a first person viewpoint with PlayCanvas

16 Upvotes

r/PlayCanvas • • 24d ago

Gaussian splats without any capture: a lensed black hole and 373k Gaia stars, rendered live in the browser

5 Upvotes

r/PlayCanvas • • 24d ago

unacceptable performance on firefox.

7 Upvotes

As of some recent update all splats are choppy as heck while trying to move/look around a splat inside a viewer in firefox.

Identical scene/link is fine in chrome.

I'm not switching to chrome for a single use and it drives me nuts when devs do this. Yes i know firefox is the minority but some of us don't want to support the google monopoly more than we already have to. Besides adblocking isn't a preference, it additional protection against getting hacked (look up "no-click" malware).


r/PlayCanvas • • 26d ago

Turning a gaussian splat scene into 2M physics particles that burn, pour and shatter (WebGPU, runs in the browser)

3 Upvotes

r/PlayCanvas • • Oct 29 '26

Major SuperSplat release: follow creators, new home page and search, and enhanced XR

5 Upvotes

r/PlayCanvas • • Oct 29 '26

I built a frame profiler for the PlayCanvas Inspector: per-script timing, startup profiling, CPU/GPU flame charts (open source)

9 Upvotes

The PlayCanvas Inspector is an open source debug panel you add to a running PlayCanvas app. It now has a Performance tab that records every frame (up to the last 1000) and charts it over time:

  • Per-frame figures: frame interval, CPU time by phase (update, physics, scripts, animation, render), GPU time and draw calls.

  • Startup profiling: if you create it before the first frame, it records the page load too, with every asset (network time and processing time shown separately), every request, the page milestones and the time to the first frame.

  • Script timing: the time and call count of each script type, so you can select a spike and see which script caused it.

  • Frame timeline: click any frame to see it as a flame chart. On WebGPU each GPU pass is timed and grouped under the effect that runs it (bloom, DOF and so on).

  • Hitches: frames over twice the median are flagged, and for each one it tells you whether the main thread was blocked (via Chrome's Long Animation Frames API) or whether the GPU or browser held it back.

  • Extras: it also charts your own counters (app.stats.user), batching time and lightmap bakes, and copies anything as JSON or CSV.

It's MIT licensed, works with WebGL2 and WebGPU, and needs engine 2.23+:

npm install @playcanvas/inspector

GitHub: https://github.com/playcanvas/inspector

Happy to answer questions about how it works, and feedback is very welcome, especially on what you'd want a web-engine profiler to show that browser dev tools don't.


r/PlayCanvas • • Oct 28 '26

I'm building my whole city (Daejeon, Korea) in 3D in the browser with PlayCanvas. It's getting heavy and I've hit a quality ceiling. Any advice?

13 Upvotes

Hi all. I've been working on abirdcity, a browser-based 3D map of Daejeon, South Korea (a city of about 1.4 million people). It runs on PlayCanvas, the roads and buildings are generated from OpenStreetMap data, and I've leaned heavily on Claude Opus 5.5 and Astra while building it.

What works today:

  • The whole city in 3D, with day and night

  • Fly over it as a bird, or as a pteranodon

  • Drive mode: a Roadster that can take off, do a roll and park on the side of a building

  • A speculative "Daejeon in 2300" mode you can toggle at the same camera spot

Live: https://abirdcity.com/city/daejeon?lang=en&utm_source=reddit&utm_medium=social&utm_campaign=playcanvas (clip above)

Where I'm stuck:

  1. It's heavy. City-scale geometry plus textures makes the first load and the frame rate rough on mid-range phones. What actually worked for you at this scale: streaming tiles by distance, instancing, mesh compression (Draco/meshopt), KTX2/Basis textures, LODs, something else?

  2. Quality ceiling. It looks clean but flat and a bit "game-y". Buildings extruded from footprints only get you so far. How do you add detail across a whole city without killing performance? Facade textures, baked AO, better lighting and post, hand-made models only for landmarks?

  3. Roads. Generating them from OSM means endless special cases at junctions, underpasses and side-street entrances. Is there a better approach than patching them one by one?

  4. What to add next. What would make you come back to something like this: missions in drive mode, multiplayer, live info (weather, traffic, events), local stories?

Any feedback is welcome, even blunt. If you open it on your phone, I'd love to know your device and whether it stutters.


r/PlayCanvas • • Oct 23 '26

Snapchat now supports PlayCanvas games: introducing Web Lenses

12 Upvotes

Hey everyone! Big news for PlayCanvas developers: Snapchat now supports PlayCanvas games through Snapchat Web Lenses.

A Web Lens is a web app that runs inside Snapchat as a Lens. You build your game with web tech, zip up the build and upload it through My Lenses. Once it passes review, it's live in Snapchat, full screen and in portrait on iOS and Android, and players can find it by name or by scanning its Snapcode. There's nothing to install, and no Lens Studio required.

Watch the announcement video on YouTube

Why it's worth a look

  • Snapchat has 971M monthly users, and Game Lenses already reach over 175M people a month

  • Creators can earn a share of subscription revenue through Lens+

  • Snap is funding new Web Lenses: pitch an original game and request a budget for its development (pitch form). There's no fixed deadline, but it won't be open forever.

The first wave of PlayCanvas games

  • Snake Showdown (Elanra Studios) went from code to live in a single day, then passed 7M plays from 1.8M+ players in its first four weeks, shared over 100K times

  • Bitmoji Ski (Snap) was built in a day and has reached 6M impressions a day

  • Ball Smasher (MetaM) was built in the PlayCanvas Editor and hit millions of plays in days

  • Bloom (NOWWA) averages 260 seconds of play time, with almost 30% of players coming back the next day

The technical bits

  • Your build is a zip of up to 8 MB, with index.html at its root and relative asset paths

  • Lenses are sandboxed, with no network, camera, microphone or motion sensor access, so everything your game needs ships in the zip

  • The Web Lens API (npm install @snap/web-lens-api) gives you leaderboards (including notifications when a friend beats your score), the player's Bitmoji as a rigged 3D GLB or a 2D image, and persistent storage (localStorage starts empty every launch)

  • Outside Snapchat, the API answers from a built-in stub, so you can develop on desktop

Three ways to build

  1. PlayCanvas Engine + your AI agent. npm create playcanvas@latest sets you up with the PlayCanvas Skills included.

  2. PlayCanvas Editor + the Editor MCP Server, great if you're coming from Unity.

  3. Easy Lens: describe your game and Snap builds it for you, no code needed.

The full guide, with code samples for leaderboards, Bitmoji and storage, is on the blog: https://blog.playcanvas.com/snapchat-now-supports-playcanvas-games/

Come chat in the snapchat-web-lenses channel on our Discord, and if you build something, post it here. We'd love to see it! Happy to answer questions in the comments.


r/PlayCanvas • • Oct 21 '26

Editor 2.35: the projects page is now a standalone home, and an agent can manage your projects over MCP

14 Upvotes

Editor 2.35 is out, and most of it is the projects page. playcanvas.com/editor is now the Project Dashboard, a standalone page instead of an overlay on top of the editor. It doesn't load the engine or the editor any more (the page script went from 3.5 MB to 0.55 MB).

Most of what you used to do on the playcanvas.com projects page has been ported into it:

  • Search with filters (name:, owner:, desc:, is:starred, is:private and friends), tabs for All, Mine, Shared with me, Private and Starred, card and list views, and / to jump to search.

  • A ⋮ menu on every project: Open editor, Play, Project settings, Copy link, Watch, Fork, Export, Transfer ownership, Delete project.

  • Project settings, Dev log and Team panels, including writing, editing and deleting dev log posts in Markdown.

  • Creating and deleting organizations.

New project also offers Empty Project (nothing in it) next to Blank Project (skybox, cube and plane).

The other half is MCP. There's an MCP server button on the dashboard, so an agent can connect before any project is open. The MCP server gains project tools (list, get, create, update and open), and the connection survives the tab moving into a project. In the video that's a real Claude Code session listing projects, creating and renaming one, opening it and building a ring of cubes in it.

A few things worth knowing:

  • The project tools need a release of the Editor MCP server that includes them.

  • The old in-editor projects overlay is gone, so the viewport Home button now opens the dashboard tab.

  • Dev log comments aren't in this release.

Write-up: https://blog.playcanvas.com/new-in-playcanvas-editor-projects-home-and-mcp

Docs: https://developer.playcanvas.com/user-manual/editor/projects/dashboard/

MCP server: https://github.com/playcanvas/editor-mcp-server

Release notes: https://github.com/playcanvas/editor/releases/tag/v2.35.0

The demos at the start of the video are After the Flood, SWOOOP and Seemore (made with Arm), all by PlayCanvas.

Happy to answer questions here, and if something on the new page doesn't behave the way the post says, I'd like to hear about it.


r/PlayCanvas • • Oct 20 '26

PlayCanvas vs ThreeJS Performance Benchmark

Post image
23 Upvotes

I was wondering which engine performed better and to my surprise PlayCanvas completely outperformed ThreeJS in the exact same intentionally complex scene, contrary to what Google search says, PlayCanvas is the clear winner regarding performance, I ran the same test using various devices and setups yet still PlayCanvas would manage to get ~twice the amount of frames of ThreeJS

PlayCanvas went up to 22 FPS, ThreeJS up to 13

It's amazing, I hope the developers keep up the good work, they deserve a larger audience :) I remember playing 3D games on a very low end Smart TV many years ago and I'm still impressed, what do you guys think?


r/PlayCanvas • • Oct 19 '26

Mouse movement is choppy in browser

2 Upvotes

Hi,
https://playcanv.as/p/NfJtPkCf/
I followed the tutorial for first person movement and while I use the keyboard, the movement is smooth, but when I move the mouse it's choppy.
The camera on supersplat is not choppy when I move the mouse (example)
How do I solve this and what am I doing wrong?


r/PlayCanvas • • Oct 16 '26

Audio-reactive 3DGS manipulator / audio visualizer

2 Upvotes

Built this with big help from Claude and Codex. It will make your 3DGS dance to your favourite tracks. Still WIP but very fun, check it out and plz let me know what you would like to see it do.


r/PlayCanvas • • Oct 15 '26

PlayCanvas now has a dynamic sky: day/night cycle, volumetric clouds and lighting that follows the sky (WebGPU + WebGL2)

16 Upvotes

We just added DynamicSkyEffect to the PlayCanvas engine - a camera frame effect that takes over the sky of a camera and renders a full day and night cycle. The video is the new example: a small tropical island, with the time of day animated.

What it does

  • Atmosphere - an analytic daylight model, balanced against the sun light, so the sky and the sunlit ground end up at a similar brightness and a single exposure works for both. One sunIntensity sets the brightness of the whole day.

  • Night - a twilight glow, stars and the moon, with the moonlight taking over from the sun.

  • Clouds - either a cheap flat layer, or volumetric clouds ray marched through 3D noise and drifting with the wind. The volumetric ones render to their own buffer (at reduced resolution by default) and use blue noise jitter with a small blur, so they stay clean without TAA.

  • Lighting - the effect generates the environment lighting of the scene from its own sky, and regenerates it as the sun moves, the settings change, or the clouds drift. For an animated time of day it can blend between updates, so reflections on glossy surfaces (like the water) change smoothly instead of stepping.

  • Sun light - it keeps a directional light in sync with the sun: direction, color and intensity, dimmed by the clouds.

Usage is a few lines:

const sky = new DynamicSkyEffect(device);
sky.light = sun.light;
sky.clouds = true;
sky.cloudTechnique = CLOUDTECHNIQUE_VOLUMETRIC;
cameraFrame.addEffect(sky);

// set the sun as your time of day changes
sky.elevation = 35;
sky.azimuth = 120;

It runs on both WebGPU and WebGL2, and it's open source like the rest of the engine.

Happy to answer questions about how it works, and feedback is very welcome.


r/PlayCanvas • • Oct 13 '26

Editor 2.34 — you can now launch your app with the Inspector attached

16 Upvotes

Editor 2.34 is out, and the headline is the Inspector — a new, open-source debug panel for PlayCanvas apps. Hover Launch, tick Inspector, and your app opens with it docked on the right: the entity hierarchy with every component's live values, plus tabs for cameras, assets, textures, meshes, materials, scripts, memory, shaders and physics. You can pause it, step it a frame at a time, pick an entity straight out of the viewport, and draw the physics world. It runs on your app's own engine, so it shows what the app is actually doing. Needs Engine 2.23 or later.

The physics bit in the video is that workflow: run the scene, pause with the spheres mid-air, pick one, and its live rigidbody values — including the gravity scale it was given in the editor — are right there in the panel.

Also in this release:

  • Gravity Scale on dynamic rigidbodies. A per-body multiplier on world gravity — 1 is normal, 0 ignores it, -1 reverses it. Balloons and low-gravity zones no longer need a counter-force script.

  • Splat Budget Mode in the rendering settings (Target / Limit), and LOD Base Distance and LOD Multiplier are back on the GSplat component. This partly reverses the 2.32 LOD change, so if you followed that post, the fields have moved again.

  • Use Fog and Use Tonemapping toggles on particle systems, so embers and magic can keep their glow while the world around them fades into the fog.

  • Discard All in the Version Control changes tab (landed in 2.33). Throws away everything since your last checkpoint, with a safety checkpoint taken first by default.

  • Material UV channels 2 to 7, a GLSL shader transpilation setting for WebGPU, and Antigravity IDE as an external code editor. The first two landed in 2.33.

Two things worth knowing:

  • The Inspector needs Engine 2.23 or later. On an older engine the launch page logs a warning and carries on without it.

  • Splat LOD still only does anything on streamed SOG octrees. A single .sog or .ply is one level, so the fields appear but have nothing to choose between.

Write-up: https://blog.playcanvas.com/new-in-playcanvas-editor-gravity-scale-inspector-and-splat-budget

Inspector (open source): https://github.com/playcanvas/inspector

Release notes: https://github.com/playcanvas/editor/releases/tag/v2.34.0

The splat scene in the video is Roman Parish by Andrii Shramko.

Happy to answer questions here, and if something doesn't behave the way the post says, I'd like to hear about it.


r/PlayCanvas • • Oct 12 '26

Lens flares for the PlayCanvas engine: light-driven, texture-based, occluded on the GPU

12 Upvotes

I've been working on a lens flare effect for PlayCanvas's CameraFrame post-processing stack, and it's now up as a PR: https://github.com/playcanvas/engine/pull/9734

How it works:

  • Each flare follows a light. A directional light gives you the sun, omni lights give a position, and spot lights only flare while the camera is inside their cone.

  • A flare is a list of elements (glows, irises, halos, bursts, streaks, spectral smudges) placed along the axis from the light through the screen centre. Every element is a texture, and all the textures of a scene live in one texture array, so all flares of all lights draw in a single instanced pass.

  • Occlusion is measured on the GPU: a tiny pass samples the scene depth in a disc around each light and blends the visible fraction over time, so flares fade smoothly as geometry covers the light. No readbacks, no stalls.

  • Flares fade at the screen edge and can keep drawing their ghosts while the light is just outside the frame, which is the classic "sun just out of shot" look.

  • It renders into its own HDR buffer at a configurable fraction of the scene resolution and is added before tone mapping, so it stays independent of TAA, depth of field and bloom.

  • Works on WebGL2 and WebGPU.

The element textures in the example are generated rather than painted: the starbursts are the FFT of a polygonal aperture, so an 8-blade aperture gives you an 8-arm burst with physically plausible fringes, averaged over wavelengths the way white light does it. The whole set ships with the engine examples under MIT.

Video attached. Happy to answer questions about the approach.


r/PlayCanvas • • Oct 09 '26

Spine 4.3 skeletal animation with physics in the PlayCanvas web engine (WebGL2 / WebGPU)

8 Upvotes

We've just released a new version of the playcanvas-spine plugin, which plays animations made with the Spine editor in PlayCanvas, in the browser on WebGL2 and WebGPU.

What's new:

  • Spine 4.3 support, rendered by Spine's own runtime renderer, with slot blend modes and tint black

  • Physics inheritance: physics constraints now react to the movement and rotation of the entity, so hair, cloth and snow swing as the character moves. In the Editor it's a single checkbox, or skeletonPhysics in code

  • Binary .skel exports, which are several times smaller than JSON and faster to load

  • Spine 3.6 to 4.2 are still supported, and Spine 4.2 skeletons with physics now load correctly

Links:

The characters in the video are Celestial Circus and Snowglobe, example projects by Esoteric Software, the makers of Spine. Feedback and questions are welcome!


r/PlayCanvas • • Oct 02 '26

I made a free VAT baker for Maya (no Houdini needed)

4 Upvotes