Interactive confetti simulation in raw WebGl.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Dockerfile
README.md
Rakefile
webgl_confetti.jpg

README.md

WebGL Confetti

Interactive confetti simulation written with raw WebGl.

Features:

  • Scene can be rotated with the mouse.
  • Emitter's emitting-rate can be controlled via a slider.
  • Emitter and floor are 3D models made of triangles.
  • The particles can collide with the floor.
  • Fully shader-based

Usage

First build the Docker image:

docker build -t webgl_confetti .

Compile SASS and CoffeeScript with:

rake docker_build_dist

# To recompile assets when files change (uses fswatch):

rake docker_build_dist_and_watch

Serve assets via a local server:

cd src && python -m SimpleHTTPServer

Navigate to http://localhost:8000 in your browser.

Production

To build the public/ folder:

rake docker_build_public

Open public/index.html.