Hacker News new | ask | show | jobs
by haxiomic 4255 days ago
The mathematics generalizes to 3D quite easily, but the way the webgl pipeline is used in this case doesn't. It'd be easier I think to start from scratch. I recommend reading through the GPU Gem's article on the topic with code samples

http://http.developer.nvidia.com/GPUGems3/gpugems3_ch30.html

although the physics is discussed, you don't need to follow it deeply to implement it