This commit is contained in:
Jan Hohenheim 2025-07-14 03:32:49 +02:00
parent 5b100f3a63
commit d57434df43
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
---
title: Allow importing glTFs with a corrected coordinate system
authors: ["@janhohenheim"]
pull_requests: [19633, 19685, 19816]
pull_requests: [19633, 19685, 19816, 20122]
---
glTF uses the following coordinate system:
@ -16,7 +16,7 @@ and Bevy uses:
- up: Y
- right: X
This means that to correctly import glTFs into Bevy, vertex data should be rotated by 180 degrees around the Y axis.
This means that to correctly import glTFs into Bevy, vertex data should be rotated by 180 degrees around the Y axis.
For the longest time, Bevy has simply ignored this distinction. That caused issues when working across programs, as most software respects the
glTF coordinate system when importing and exporting glTFs. Your scene might have looked correct in Blender, Maya, TrenchBroom, etc. but everything would be flipped when importing it into Bevy!