Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!
HTML5 Zone is brought to you in partnership with:

John Esposito curates content at DZone, while writing a dissertation on ancient Greek philosophy and raising two cats. In a previous life he was a database developer and network administrator. John is a DZone Zone Leader and has posted 268 posts at DZone. You can read more from them at their website. View Full User Profile

Minecraft + Physics + WebGL 3D = Amazing

11.14.2011
Email
Views: 3748
  • submit to reddit
The HTML5 Microzone is presented by DZone and Microsoft to bring you the most interesting and relevant content on emerging web standards.  Experience all that the HTML5 Microzone has to offer on our homepage and check out the cutting edge web development tutorials on Script Junkie, Build My Pinned Site, and the HTML5 DevCenter.

Minecraft is addicting. This is a truism, and roughly synonymous with 'making things is fun.'

Minecraft does not look beautiful, however. And its physics are hilarious, and..well, if you're criticizing it on these grounds, you're not really that interested in Minecraft.

But sandbox games can sometimes also boast the some of the commercial-style sophistication Minecraft lacks. Populous was popular around 1990, and From Dust -- an incredible-looking game, though reviews were mixed -- was released just a few months ago.

Because sandbox games simulate the world, they don't seem an obvious choice for web games -- because web games usually seem as far from simulating as possible.

But because powerful GPUs are widespread these days -- and because WebGL exists -- and because sandbox games have resurged in popularity over the past few years -- now seems like a perfect time to put something like From Dust into the browser.

But of course, this seems hard. Even From Dust -- created by acclaimed game designer Eric Chahi -- suffered from low framerates, and many other technical problems.

And then came Florian Boesch, graphics programmer extraordinaire, sandbox gamer, and serious WebGL developer.

Before reading on, take a look at his results:

He made that in WebGL. It runs in your browser. (Though my computer can't handle it.)

That's right -- the water erodes the landscape. And it's interactive.

Florian's blog discusses the program in some detail, and links to most of what he doesn't explain in the current entry.

If you're casually interested in WebGL development, read Florian's post for a high-level overview. If you're really serious about graphics in the browser, follow some of his links (which delve into computer graphics pretty deeply) and follow as far as you want to go.

Tags:
Published at DZone with permission of its author, John Esposito.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

HTML5 is the most dramatic step in the evolution of web standards. It incorporates features such as geolocation, video playback and drag-and-drop. HTML5 allows developers to create rich internet applications without the need for third party APIs and browser plug-ins.  Under the banner of HTML5, modern web standards such as CSS3, SVG, XHR2, WebSockets, IndexedDB, and AppCache are pushing the boundaries for what a browser can achieve using web standards.  This Microzone is supported by Microsoft, and it will delve into the intricacies of using these new web technologies and teach you how to make your websites compatible with all of the modern browsers.