O'Reilly logo

WebGL Game Development by Sumeet Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exporting models from Blender

The most exciting part is here. In this section, we will export objects with textures from Blender. However, first we need to understand the structure of the newly exported object and the material file. Let's go through the exported cube with textures. Open the Box.obj file present in the model directory in your favorite text editor. The content of the file is as follows:

# Blender v2.67 (sub 0) OBJ File: '' # www.blender.org mtllib Box.mtl o Box v -0.738564 -0.738564 0.738564 v 0.738564 -0.738564 0.738564 v 0.738564 0.738564 0.738564 v -0.738564 0.738564 0.738564 v 0.738564 0.738564 -0.738564 v -0.738564 0.738564 -0.738564 v 0.738564 -0.738564 -0.738564 v -0.738564 -0.738564 -0.738564 vt 0.375000 0.000000 vt 0.625000 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required