dlannan / defold-blender-export

A blender import/export system for Defold
MIT License
42 stars 1 forks source link

Remove root rotation for Defold world space transform. #6

Open dlannan opened 2 years ago

dlannan commented 2 years ago

The current sync tool adds a root node with a rotational transform to get the Blender world space into the Defold world space.

The problem with applying a complete transform is animations and some object hierarchies. I need to spend some time make a suitable solution (preferably in the lua side of things) to do this vertex + object + anim transform correctly.

The current system is not ideal because images may come out flipped on a surface (due to the rotation).

dlannan commented 2 months ago

This has become an annoyance. Its very complicated to remove without impacting different systems. Animation and gltf conversion for example. Ideally all the transforms would be applied on export hierarchically, but because gltf does some of its own axis conversion and also this can happen in animation, then the resulting output may not need it. For the time being it stays until I rewrite a tun of the export process. :)