3D Scenes
Page 4
Learn WebGL Book 3
Learn a unique and simple technique to display three dimensional environments online. Learn more.
3D Scenes: Learn WebGL Book 3
explains how to display
background environments with a very simple cube technique.
Learn how to render scenes with the most
basic shaders and one texture map.
This method avoids skyboxes, switching programs, changing textures, and
even leaves room in the environment's texture map
for other mesh elements.
You'll also learn to prepare graphics to work with the code,
for efficient 3D backdrops.
Simple Scenes
The simple scenes, described in this book, use a unique, fast method to display 3D environments with WebGL. Learn how to prepare, load, initialize, and display backgrounds which apply a texture from an image file, to the inside of a cube. View the environment from the center of the cube. The streamlined technique allows code to run well on WebGL enabled mobile devices and Web browsers including Android, iPhone and PCs.
The first scene displays a grid with labeled walls, for help during development. Scenes also include a 3D art gallery, a modified photograph of the Storforsen rapids, and a cheerful 3D rendered island scene surrounded by ocean.