GLTF 2.0 .glb export has incorrect colorspace applied to normal maps #98451
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
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#98451
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-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.77
Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash:
blender/blender@cc66d1020c
Worked: 3.0
Short description of error
Exporting gltf 2.0 .glb files with materials that contain normal maps use incorrect color space. If the normal map is set to use "non-color" (as it should be) in the material editor it'll export with that color space baked in and receiving apps read the normal map wrong, causing the normals to break. If the normal maps are set to use srgb (incorrect color space) then it exports fine and is read correctly by apps that import it.
Added subscriber: @Casey-3
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Needs User Info'
Added subscriber: @JulienDuroure
Hi, thanks for the report. Please upload your .blend file.
AVDept.blend I have multiple .blend files that were exhibiting this behavior but this one is the most recent me and my team have had the problem with where pretty much every normal map was broken on export
Hi, I tried exporting then reimporting to blender (3.0, 3.1, 3.3) and I don't see any differences
which software you're referring to?
Blender being one, if you import the .glb back into it, Babylon JS being another.
Changed status from 'Needs User Info' to: 'Needs Triage'
Changed status from 'Needs Triage' to: 'Needs User Info'
Hello,
Can you please test with Blender 3.3 alpha?
Some recent changes on Blender side (not on addon side) added better color management during image creation.
I can confirm that result is not the same in 3.2 beta and 3.3 alpha
I will try 3.2 and 3.3, I have tried 3.2 a few days ago on the day I first reported the bug but it wasn't fixed then. Hoping something changed
Yep, looks like 3.3 is where it's fixed! I did download and tested 3.2 beta again and it is still broken/incorrect there but that's expected
Changed status from 'Needs User Info' to: 'Archived'
Closing, as this is already fixed in master branch