GlTF: export mesh transparency #105205

Closed
opened 2024-02-29 06:13:25 +01:00 by Pratik Borhade · 3 comments
Member

System Information
Operating system: macOS-14.2.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M2 1.2

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: version 3.6.9, branch: blender-v3.6-release, commit date: 2024-02-19 16:48, hash: e958717a0c25

Short description of error
When exporting to glTF, either the .gltf file or the .glb file, the object's appearance is completely broken.

Exact steps for others to reproduce the error

  1. Have a scene with a single object with correct mesh, correct material
  2. Export to glTF (any settings)
  3. Import exported file into software of choice (works even when back into blender)
  4. Object seems completely broken

glypse logo buggy glTF export.blend

Original report at: blender/blender#118871

**System Information** Operating system: macOS-14.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M2 1.2 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: `9be62e85b727` Worked: version 3.6.9, branch: blender-v3.6-release, commit date: 2024-02-19 16:48, hash: `e958717a0c25` **Short description of error** When exporting to glTF, either the .gltf file or the .glb file, the object's appearance is completely broken. **Exact steps for others to reproduce the error** 1. Have a scene with a single object with correct mesh, correct material 2. Export to glTF (any settings) 3. Import exported file into software of choice (works even when back into blender) 4. Object seems completely broken [glypse logo buggy glTF export.blend](https://projects.blender.org/attachments/d5609e17-d81f-433e-8c56-51a14695ac09) Original report at: https://projects.blender.org/blender/blender/issues/118871
Author
Member

This is due to wrong blend mode: image
cc @JulienDuroure

This is due to wrong blend mode: [image](/attachments/51afde4d-a2fa-4574-b56e-a2cd0426bacb) cc @JulienDuroure
Pratik Borhade added
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-02-29 06:15:23 +01:00
Member

Hello,

Don't think there is any bug here.
Unfortunaly, there is sometime where there is no 100% compatibility between Blender and glTF.

As said, the alpha mode is set to Hashed. This is not something that exist in glTF, so we export it as blend mode.
(More about why alpha hashed is exported as alpha blend here : https://github.com/KhronosGroup/glTF-Blender-IO/pull/1195)

Closing this ticket

Hello, Don't think there is any bug here. Unfortunaly, there is sometime where there is no 100% compatibility between Blender and glTF. As said, the alpha mode is set to Hashed. This is not something that exist in glTF, so we export it as blend mode. (More about why alpha hashed is exported as alpha blend here : https://github.com/KhronosGroup/glTF-Blender-IO/pull/1195) Closing this ticket
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-02-29 09:03:48 +01:00
Author
Member

Thanks :)

Thanks :)
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#105205
No description provided.