anirudhjoshi / fluid_table_tennis

Fluid Table Tennis in the browser
http://anirudhjoshi.github.com/fluid_table_tennis
Other
78 stars 25 forks source link

fluid_table_tennis

Table Tennis with fluid dynamics

Click here to play now!

Click here to watch the video!

Follow me here!

This is a demonstration of the possibilites that HTML5/browsers have to offer inspired by the wonderful work done by Steve Taylor (Plasma Pong).

Introduction

It renders a table tennis game interacting with a full-color real-time fluid simulation at 60 FPS.

It utilizes the algorithim created by Jos Stam (Real-Time Fluid Dynamics for Games), monochrome dynamics implemented by Oliver Hunt (Oliver's simple fluid dynamics simulator), amended with RJ Marsan's RGB example (Plasma Pong Android by RJ Marsan) and a little special sauce by yours truly.

For those of whom don't understand why this is impressive: It just is.

This is possible mainly due to the wonderful work done by both the Chrome and Mozilla teams.

It has been tested to work with the latest versions of Chrome/Firefox.

Beta Disclaimer

If you are viewing this code - don't judge me too harshly :D.

Still needs a good clean up and encapsulation - just aimed to get it working as quickly as I could.

References