ssbucarlos / smash-ultimate-blender

Blender Plugin containing utilities for Smash Ultimate Models and Animations.
45 stars 9 forks source link

Validate that transforms have been applied #117

Closed ScanMountGoat closed 2 years ago

ScanMountGoat commented 2 years ago

Smash and Blender use different coordinate systems, so we need to change coordinates on import and export. This works for in game and custom models that are oriented straight up in Blender as long as transforms are applied. It should be possible to automatically apply transforms to the temporary mesh on export. This is related to #116.

The exporter currently assumes the model is rotated 90 degrees. A better solution is to change the coordinates for the position attribute on export and assume the model has the identity transform.