perjantai 27. elokuuta 2010
N-body simulation
Here is an example of GPU accelerated physics using WebGL. The physics in the sample include simple collision handling and gravitation. There are no optimizations in the code, so each object is checked against each other object. Some features that could be useful are springs for making complex objects and collision detection with triangles to implement walls etc.Just as in the previous sample, Firefox 4 beta is needed to view the page. To implement the simulation, 24-bit colors are used to represent fixed point values. Hopefully there will be an extension for WebGL that supports floating point textures natively.
Tilaa:
Lähetä kommentteja (Atom)
Ei kommentteja:
Lähetä kommentti