gltf exporter exports incorrect transforms when exporting nodes that have a rotation or scale other than the identity #83131
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#83131
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows
Graphics card: ATF
Blender Version
Broken: 2.92.0 Alpha, fbdf1af35550
Worked: never
When I try to export a file in gltf form, any object nodes that link to a collection in another file and which have a rotation or scale applied to them export an incorrect transform in the final file.
Exact steps for others to reproduce the error
Create a new blend file. Create a monkey object and add it to the collection 'Monkey".
Create a second blend file. Create a link to the Monkey collection in the first file.
Select your linked object. Press Ctrl-D and move the object somewhere else in your scene. Rotate it about an axis or scale it. Do this several times with several objects.
Export your scene as a gltf file.
Open the gltf in a viewer. You will see the objects that you applied rotations or scales to in incorrect locations.
How to fix
I've come up with a patch. In the latest build of blender, in the gltf2_blender_gather_nodes.py file you need to replace lines 426-427 with
Added subscriber: @kitfox
Not sure it's the same thing. The issue you linked to is for bones, not collections.
Added subscriber: @JulienDuroure
I created a ticket in upstream repository: https://github.com/KhronosGroup/glTF-Blender-IO/issues/1280
Changed status from 'Needs Triage' to: 'Needs User Info'
I can't reproduce.
What gltf viewer are you using?
Please provide example files.
Here are my files and screenshot from https://gltf-viewer.donmccurdy.com/
monkeys.zip
Changed status from 'Needs User Info' to: 'Confirmed'
Ok, with last info from user on glTF repo, I can reproduce
Changed status from 'Confirmed' to: 'Resolved'
Fixed by
3e7209f9f2