gltf exporter put Bump texture into normal map channel #95857

Closed
opened 2022-02-18 04:50:36 +01:00 by butaixianran · 7 comments

Blender Version

Broken:
3.0

Short description of error
When exporting glft file, material's Bump texture is not converted into normal map, it just set Bump texture as normal map, which won't work well.

Solution
Need to convert Bump texture into a new normal texture when exporting gltf.

Or, add an extension standard for bump map to gltf's repo as a "Vendor", like these:
https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor

**Blender Version** Broken: 3.0 **Short description of error** When exporting glft file, material's Bump texture is not converted into normal map, it just set Bump texture as normal map, which won't work well. **Solution** Need to convert Bump texture into a new normal texture when exporting gltf. Or, add an extension standard for bump map to gltf's repo as a "Vendor", like these: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor
Author

Added subscriber: @butaixianran

Added subscriber: @butaixianran
Member

Added subscriber: @JulienDuroure

Added subscriber: @JulienDuroure
Member

This action is on our TODO board :

This action is on our TODO board :
Julien Duroure self-assigned this 2022-02-18 10:09:00 +01:00
Member

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

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

Hello,
Closing this ticket, as there is already a ticket in upstream repository for that:
https://github.com/KhronosGroup/glTF-Blender-IO/issues/199

Hello, Closing this ticket, as there is already a ticket in upstream repository for that: https://github.com/KhronosGroup/glTF-Blender-IO/issues/199
Blender Bot added
Status
Archived
and removed
Status
Confirmed
labels 2024-09-26 13:42:49 +02:00
Author

You should not close this issue because of https://github.com/KhronosGroup/glTF-Blender-IO/issues/199.

That issue is from year 2018 and nobody has taken any move on that.

On the othe hand, I have already created a blender's python script to convert a bump map into normal map, It is open source, you can use it for this issue:
https://github.com/butaixianran/DazToBlender/blob/master/Blender/appdata_common/Blender%20Foundation/Blender/BLENDER_VERSION/scripts/addons/DFB/BumpToNormal.py

The function "bumpToNormal" is what you need.

Be noticed, it gonna take a long time to do this conversion.

You should not close this issue because of `https://github.com/KhronosGroup/glTF-Blender-IO/issues/199`. That issue is from year 2018 and nobody has taken any move on that. On the othe hand, I have already created a blender's python script to convert a bump map into normal map, It is open source, you can use it for this issue: [https://github.com/butaixianran/DazToBlender/blob/master/Blender/appdata_common/Blender%20Foundation/Blender/BLENDER_VERSION/scripts/addons/DFB/BumpToNormal.py](https://github.com/butaixianran/DazToBlender/blob/master/Blender/appdata_common/Blender%20Foundation/Blender/BLENDER_VERSION/scripts/addons/DFB/BumpToNormal.py) The function "bumpToNormal" is what you need. Be noticed, it gonna take a long time to do this conversion.
Blender Bot added
Status
Needs Triage
and removed
Status
Archived
labels 2024-09-26 18:04:55 +02:00
Member

Hello,

I am the maintainer of glTF-Blender-IO, that is the upstream repository of code provided in Blender (I copy every commit from glTF-Blender-IO to Blender).

So Blender is not the upstream repository, and not the reference tracker for issues.
I want to avoid having same ticket in both tracker, so I will close this one, as proposed in my previous message.

Thanks a lot for the link to your code, I will have a look.

Hello, I am the maintainer of glTF-Blender-IO, that is the upstream repository of code provided in Blender (I copy every commit from glTF-Blender-IO to Blender). So Blender is not the upstream repository, and not the reference tracker for issues. I want to avoid having same ticket in both tracker, so I will close this one, as proposed in my previous message. Thanks a lot for the link to your code, I will have a look.
Blender Bot added
Status
Archived
and removed
Status
Needs Triage
labels 2024-09-26 18:13:14 +02:00
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#95857
No description provided.