tfe Homepage

18/09/2016

Game creation: load blender meshes

Here is the article 4 about my series of posts about the game creation.

If you missed it, check out the previous part.

It is the same idea of the previous blog post, but now we load the meshes from a blender export. I made a few tests with applying some textures and lights too.

First export your mesh by using the main menu File / export / Wavefront (.obj).

To convert the obj file to a file that can be used by blender, you need to use the python script convert_obj_three.py:

$ python convert_obj_three.py -i file.obj -o file.js

threejs blender meshes

Here is the final result:

threejs blender meshes

You can get: the source code or View the demo directly.