Three-dimensional scenes in web browsers with Three.js

Perspective in 3D

Article from Issue 145/2012
Author(s): , Author(s):

HTML5 brings 3D support to browsers. Thanks to WebGL, Firefox, Chrome, and company, you can render three-dimensional worlds without special plugins or viewers, and the Three.js JavaScript library makes programming easy.

Beyond the buzzword "HTML5," a whole bundle of new technologies has found entry into browsers on desktop and mobile devices [1]. Among them is one that opens the door to the 3D world: WebGL. The Web Graphics Library [2] is a JavaScript interface for the OpenGL 3D library. With it, normal HTML pages can include three-dimensional content that runs on the graphics card with hardware acceleration.

WebGL has been implemented in Mozilla Firefox (from version 4), Opera (from version 12), and Google Chrome (from version 9) desktop browsers. Because the Khronos Group used OpenGL for Embedded Systems (OpenGL ES) as the foundation, it also can be used under Android with Firefox for mobile devices and Opera Mobile.

Although the idea to bring 3D applications to the web is not new, all previous attempts like VRML, Java applets with Java-3D/JOGL, and 3D Flash have reached only a limited audience because of low performance or the need to install special viewers and Java libraries. Thanks to the broad support WebGL enjoys in browsers, for the first time, developers can now expect a larger user group.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • 3D with Three.js

    HTML5 brings 3D support to browsers. Thanks to WebGL, Firefox, Chrome, and company, you can render three-dimensional worlds without special plugins or viewers, and the Three.js JavaScript library makes programming easy.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News