Blog de tfe, Web, Unix et Scripts...?

Game creation: load blender meshes

PubliƩ le 18/09/2016 dans threejs

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

$ python -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.