Custom export python script for blender and custom…

Custom export python script for blender and custom import javascript for threejs to enable morphing of vertex normal in morph targets. It might seems a bit technical, but without this, the object loaded in threejs doesn’t react to light correctly: without this export, if faces change direction after deformation, the lack of normal morphing implies that the illumination of faces is not correct. Try without, it will be clear 🙂

Test it here:

Or check this video:

Anyway, the script is here: faces https://github.com/frankiezafe/Blender-scripts/blob/master/custom_threejs_keyshapes_export.py, with some javascript in comment to load it.

Enjoy!

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.