Three-dimensional scenes in web browsers with Three.js

Perspective in 3D

Article from Issue 145/2012

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. Among them is one that opens the door to the 3D world: WebGL. The Web Graphics Library 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.

Buy this article as PDF

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

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Oculus Rift

    For decades, gamers and geeks have dreamed of virtual reality. Thanks to the Oculus Rift, this dream could become a reality for Linux users and developers as well – even though the whole thing is sponsored by Facebook.

  • Blender 3D Modeling

    Although Walt Disney’s masterpieces are not forgotten, legacy cartoon techniques are a thing of the past. As long ago as 1995, the movie “Toy Story” proved that computers are more than up to the task of animating pictures. We’ll help you get started with building your own animations.

  • Panda3D

    Several free game engines are available for Linux users, but programming with them is often less than intuitive. Panda3D is an easy-to-use engine that is accessible enough for newcomers but still powerful enough for the pros at Disney Studios.

  • 3D Animation

    Realistic computer-animated movie scenes have been around for years, but hair, water, and fire are still difficult for 3D programs to handle. The new Maya 8.5 stands above the crowd.

  • Firefox Steps into 3D

    New initiative will bring futuristic virtual reality effects to the web surfing experience.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95