gltf exporter put Bump texture into normal map channel #95857
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#95857
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
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
Added subscriber: @butaixianran
Added subscriber: @JulienDuroure
This action is on our TODO board :
Changed status from 'Needs Triage' to: 'Confirmed'
Hello,
Closing this ticket, as there is already a ticket in upstream repository for that:
https://github.com/KhronosGroup/glTF-Blender-IO/issues/199
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.
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.