By CowboyRobot
via queue.acm.org
Submitted: Feb 12 2013 / 02:11
Before there was SVG, WebGL, Canvas, or much of anything for graphics in the browser, it was possible to do quite a lot more than was initially obvious. To demonstrate, we created a JavaScript program that renders polygonal 3D graphics using nothing more than HTML and CSS. Our proof-of-concept is fast enough to support physics-based small-game content, but we started with the iconic 3D "Utah teapot" because it tells the whole story in one picture. It's feasible to render this classic object using just regular DIV elements, CSS styles, and a little bit of JavaScript code. This tiny graphics pipeline serves as a timeless demonstration of doing a lot with very little.
Add your comment