KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.49k stars 317 forks source link

X orientation button missing #1375

Closed mike44 closed 2 years ago

mike44 commented 3 years ago

When I export my blend files from a x-plane addon the addon is back forwarded. F.ex. my airplane sits inverted with the back forward on the runway in FS2020 but is fine in X-Plane. Could we get a switch alike the y up for the x axis in the Blender exporter? Many thanks

donmccurdy commented 3 years ago

Can you share a bit more detail (or a .blend) about what is happening and whether it also happens in other glTF viewers like https://gltf-viewer.donmccurdy.com/ and https://sandbox.babylonjs.com/? The glTF specification is very clear about its convention that +Y=Up, +Z=Forward. It's also the case that -X=Right, although the wording in the spec is not yet totally clear on that point: https://github.com/KhronosGroup/glTF/issues/1640. This convention allows glTF viewers to have consistent expectations and rendering, if implemented correctly (whether FS2020 follows the convention, I don't know).

This addon tries to export Blender scenes to match that convention, and as far as I know the +Y=Up option is only allowed to be disabled because older versions of the addon were not always reliable in doing the conversion to +Y=Up correctly. I don't think we want to add more options to write files that disobey the glTF convention, as this will only lead to other tools adding inconsistent handling too.

If FS2020 is ignoring the glTF convention I think it may be necessary to (1) report a bug to them, and (2) adjust accordingly before or after exporting the file from Blender, sorry!

mike44 commented 3 years ago

Screenshot (18)

Above a screenshot in MSFS2020. The back points forward but is fine in X-Plane. I'm using this .blend for years in x-plane. Thanks for help.

julienduroure commented 2 years ago

Note sure there is a reason to keep this open. Closing. Don't hesitate to comment if you think there is a bug here