vertex color attibutes doesnt export correctly with glb/gltf (4.1.0) #105278

Closed
opened 2024-04-12 07:36:33 +02:00 by Pratik Borhade · 4 comments
Member

System Information
Operating system: Windows-10-10.0.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58

Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: 40a5e739e270
Worked: (newest version of Blender that worked as expected)

Short description of error

Blender doesnt export correctly vertex colors attributes using glb/gltf format .

Exact steps for others to reproduce the error

Open an scene with a complex model with vertex paint colors , export as *.glb file .Open a fresh scene and to load the exported file .Boom the color attributes are gone.Also tested in another apps its the same .
I tried with 4.1.1 (4/11/24 ) and its the same situation , but with blender 4.0 gltf export works fine .

VertexColorGLTF.blend

Originally reported at: #120544

**System Information** Operating system: Windows-10-10.0.19045-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.58 **Blender Version** Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: `40a5e739e270` Worked: (newest version of Blender that worked as expected) **Short description of error** Blender doesnt export correctly vertex colors attributes using glb/gltf format . **Exact steps for others to reproduce the error** Open an scene with a complex model with vertex paint colors , export as *.glb file .Open a fresh scene and to load the exported file .Boom the color attributes are gone.Also tested in another apps its the same . I tried with 4.1.1 (4/11/24 ) and its the same situation , but with blender 4.0 gltf export works fine . [VertexColorGLTF.blend](https://projects.blender.org/attachments/603cd2c6-7550-4ee4-a6f6-03badfc84926) Originally reported at: #120544
Pratik Borhade added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-04-12 07:36:33 +02:00
Author
Member

export_colors is removed from the export properties. That said, enabling attribute doesn't work either.
@JulienDuroure hi, maybe you want to check this. :)

`export_colors` is removed from the export properties. That said, enabling `attribute` doesn't work either. @JulienDuroure hi, maybe you want to check this. :)
Pratik Borhade added
Status
Confirmed
Module
Add-ons (Community)
and removed
Status
Needs Triage
labels 2024-04-12 07:38:14 +02:00
Author
Member

Guess a4627b35cc caused this.

Guess a4627b35ccdc42825fa32822b773e5a9500792ca caused this.
Member

Hello,
Closing this ticket, as this works as designed.
We are now exporting VC only when used in the shader node groups, avoiding exporting COLOR_0 that should always be a multiplier of base color on glTF (that is not the case in Blender)

Others VC can be exported as custom attributes.

See upstream discussion and plan for 4.2 here:
https://github.com/KhronosGroup/glTF-Blender-IO/pull/2017#issuecomment-2049925138
https://github.com/KhronosGroup/glTF-Blender-IO/issues/2195

Hello, Closing this ticket, as this works as designed. We are now exporting VC only when used in the shader node groups, avoiding exporting COLOR_0 that should always be a multiplier of base color on glTF (that is not the case in Blender) Others VC can be exported as custom attributes. See upstream discussion and plan for 4.2 here: https://github.com/KhronosGroup/glTF-Blender-IO/pull/2017#issuecomment-2049925138 https://github.com/KhronosGroup/glTF-Blender-IO/issues/2195
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-04-12 07:55:50 +02:00
Author
Member

Thanks @JulienDuroure . So gltf team is planning to bring back "exporting vc without shader node group" in future (maybe in 4.2)?

I checked the changelog of gltf in release notes but didn't find any info about "Export Vertex Color only when used in shader node tree". Maybe good to mention here: https://developer.blender.org/docs/release_notes/4.1/add_ons/#gltf-20 🙂

Thanks @JulienDuroure . So gltf team is planning to bring back "exporting vc without shader node group" in future (maybe in 4.2)? I checked the changelog of gltf in release notes but didn't find any info about "Export Vertex Color only when used in shader node tree". Maybe good to mention here: https://developer.blender.org/docs/release_notes/4.1/add_ons/#gltf-20 🙂
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105278
No description provided.