Hasty Briefsbeta

Bilingual

Show HN: Turning a Gaussian Splat into a videogame

2 days ago
  • #WebGL
  • #Game Development
  • #Gaussian Splatting
  • Gaussian Splatting provides photorealistic environments but lacks standard game elements like triangles, colliders, navmeshes, and lights, requiring additional steps to make them interactive.
  • The demo involves converting a Gaussian splat into a playable game by adding physics colliders, baked lighting probes, a navmesh, NPCs with behavior trees, and an FPS loop, all running in a browser.
  • Key steps include downloading a splat from SuperSplat, converting it to streamed SOG format for LOD, generating a collision mesh with splat-transform, and baking a lightness grid for dynamic lighting.
  • Development is streamlined using the PlayCanvas VS Code extension for coding and version control with GitHub, enabling a normal dev workflow with quick iteration.
  • NPC AI is implemented with behavior trees and personality traits, allowing distinct behaviors, while pathfinding uses recast-navigation with a pre-baked navmesh from the collision mesh.
  • The entire stack is free and open source, including SuperSplat, splat-transform, recast-navigation, and PlayCanvas, with the demo project publicly available for forking and remixing.