Blender export script - mattzhao92/Planet-Blitz GitHub Wiki

Okay, so I just enhanced the Blender exporter here

Steps

  1. Delete the io_mesh_threejs folder from your add-on scripts folder in Blender. Make sure you delete the entire folder, NOT just its contents (this is because there are hidden files in the folder that you must also remove for this to work)
  2. Sync your master branch with mine so you get my code changes on git
  3. Navigate to /libs. There will be a folder "io_mesh_threejs". This is my version of the exporter script which I have customized to make it work with our Blender loader
  4. Copy this folder into your add-on scripts folder in Blender. Your models with textures should now export correctly, assuming that you:
    • Have UV unwrap -> baked all of your textures (selected all textures to be baked that you need to be in there)
    • Put all of your textures in the blendertextures folder

Happy blendering!

Note for reference

Blender stores a hidden pycache folder in each used plugin directory, which is a compiled form of the Python code contained in each plugin.