BabylonJS Demos
- Spherical Harmonics : a morphing ribbon is used to depict some spherical harmonics , features : Ribbon, Fire Procedural Texture, Volumetric Light Scattering Post Process (aka "God Rays"), [CODE]
- Roller coaster : rails are built with math curves, then the wagon slides and rotates according to the rail orientation, features : RotationFromAxis(), Path3D, Curve3, ExtrudeShape(), FollowCamera, [CODE]
- Solid Particle Asteroids : an immutable SPS is set, each particle is morphed from a sphere with a random function, features : Solid Particle System (SPS), [CODE]
- Music Mountains : a ribbon is updated with the sound analyser data, features : Ribbon, Audio Analyser, [CODE]
- SPS Beat : a SPS emits solid particles according to the music beat and a tube shows the sound curve (please wait for the beat to start), features : Solid Particle System (SPS), Audio Analyser, [CODE]
- Mandelbrot Ribbon : a fractal geometry is applied to a ribbon (please wait for the computation), features : Ribbon, [CODE]
- Particle Flocking : a flocking algorithm is applied to solid animated particles, features : Solid Particle System (SPS), [CODE]
- Height Map Altitude : boxes from a SPS slide on the surface of a height map, features : Solid Particle System (SPS), Height Map, [CODE]
- Blowing Wall : boxes from a SPS wall are blown when you click on and bounce on a height map, features : Solid Particle System (SPS), Height Map, Shadows, [CODE]
- Solid Particle Intersections : a SPS sprinkles a flying sphere with polyhedrons : Solid Particle System (SPS), Particle collisions/intersections, Shadows, [CODE]
- Trailing Particles : a SPS displays quad particles in billboard mode: Solid Particle System (SPS), simple trailing algo, [CODE]
- FacetData and custom physics : an immutable SPS is built from torus knots as a obstacle random shape and another SPS emits 3000 falling balls. If a ball is close enough to the shape, it bounces back.Solid Particle System (SPS), FacetData normals and positions, simple custom physics, [CODE]
- Star Fighter Game : [WIP] a personal tribute to the mid-80's Atari arcade game (fire = click/SHIFT). The SPS is used everywhere in this demo : the fighter lasers are a SPS, the laser impacts, the enemy lasers, the laser in the distance are another single SPS and each enemy ship is a digested SPS, features : Solid Particle System (SPS) + digest(), instances, [CODE]
- Web Flight Simulator : a light and fast simple flight simulator over an infinite Earth planisphere of 2000 x 2000 points (please wait while the initial precomputation), features : Two dynamic terrains, one for the sky, another one, created from a heightmap, for the ground (300 x 300 points) + fog, [CODE]
- SPS Worker : a modified two-worker based SPS animating 40,000 solid particles. This requires a browser supporting the SharedArrayBuffer feature. [CODE]
- SPS WASM : a modified SPS animating 40,000 solid particles. Code ported from TypeScript to AssemblyScript (AS), then compiled to WebAssembly. [JS CODE] [AS CODE]