gltf exporter will drop specular texture! But gltf 2.0 actually support specular!! #95859

Closed
opened 2022-02-18 04:58:56 +01:00 by butaixianran · 6 comments

Blender Version
Broken:
3.0

Short description of error
When exporting gltf file, Specular texture will be droped.

Blender's official document doesn't even mention specular in gltf section. Seems blender team doesn't know gltf 2.0 supports specular.

You can find it here:
https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular

Specular is supported as a standard's extension, like this:

{

"materials": [
{
"extensions": {
"KHR_materials_specular": {
"specularFactor": 1.0,
"specularColorFactor": [1.0, 1.0, 1.0],
}
}
}
]

}

Also there are other important gltf standard extensions need to be supported:

KHR_materials_specular
KHR_materials_transmission
KHR_materials_sheen
KHR_materials_ior
KHR_materials_clearcoat
KHR_materials_volume

Otherwise, we won't get a reasonable rendering result with exported gltf.

**Blender Version** Broken: 3.0 **Short description of error** When exporting gltf file, Specular texture will be droped. Blender's official document doesn't even mention specular in gltf section. Seems blender team doesn't know gltf 2.0 supports specular. You can find it here: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_specular Specular is supported as a standard's extension, like this: ```json { ``` "materials": [ { "extensions": { "KHR_materials_specular": { "specularFactor": 1.0, "specularColorFactor": [1.0, 1.0, 1.0], } } } ] ``` } ``` Also there are other important gltf standard extensions need to be supported: KHR_materials_specular KHR_materials_transmission KHR_materials_sheen KHR_materials_ior KHR_materials_clearcoat KHR_materials_volume Otherwise, we won't get a reasonable rendering result with exported gltf.
Author

Added subscriber: @butaixianran

Added subscriber: @butaixianran
Julien Duroure self-assigned this 2022-02-18 09:58:54 +01:00
Member

Hello,
Currenlty, not all official extensions are supported. We are aware of it, this is on our backlog.

Note: In your list, KHR_materials_clearcoat is already managed

Hello, Currenlty, not all official extensions are supported. We are aware of it, this is on our backlog. Note: In your list, KHR_materials_clearcoat is already managed
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author

ok, good to know blender cares about this. Will keep watching on this task, thanks for your reply

ok, good to know blender cares about this. Will keep watching on this task, thanks for your reply
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Member

Fixed by 042fbefac6
Note that glTF and Blender are not using the same way to manage specular data, so there is no 100% compatibility at export or import.
Documentation update is still in WIP.

Fixed by 042fbefac686 Note that glTF and Blender are not using the same way to manage specular data, so there is no 100% compatibility at export or import. Documentation update is still in WIP.
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#95859
No description provided.