09th / YABEE

Export models from the Blender to Panda3D game engine
MIT License
107 stars 39 forks source link

Add option to export loop normals as custom vertex normals. Fix PBS material export. #24

Closed wolfgangp closed 8 years ago

wolfgangp commented 8 years ago

PBS materials are now exported correctly. In particular, shading_models ("FOLIAGE" etc.) are now respected and normal_strength is written to the right spot, so things will work with the latest RenderPipeline.

The new option to export custom normals is a bit hackish, which is partly due to Blender not being very mature in that regard. Any mesh on which a "Normal_Edit" modifier has been applied prior to exporting and therefore mesh.data.has_custom_normals is True, the new, custom loop normals will be used as vertex normals in the exported egg. This depends on the "Data Transfer" modifier (may require Blender 2.75+). Use cases are low-poly vegetation etc.

09th commented 8 years ago

Thanks, merged