2016-09-18-ean
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
Here is the final result:
You can get: the source code or View the demo directly.