Format issue with material image export during GLTF export #105141

Closed
opened 2024-01-23 03:08:17 +01:00 by Wu_Yi_Bin · 13 comments

In version 4.0.1, when exporting the model, after selecting the export format as GLTF 2.0, in the operation preset, select the format as GLTF separation (. gltf+. bin+texture), and in Data=>Material=>Image=>Select JPEG format. The final export result of the material is in. png format.
在^4.0.1版本中,导出模型时,选择导出格式为 GLTF 2.0后,在操作预设中,选择格式为gltf分离(.gltf+.bin+纹理),在数据=》材质=》图像=》选择JPEG格式。最后材质的导出结果却为.png格式。

In version 4.0.1, when exporting the model, after selecting the export format as GLTF 2.0, in the operation preset, select the format as GLTF separation (. gltf+. bin+texture), and in Data=>Material=>Image=>Select JPEG format. The final export result of the material is in. png format. 在^4.0.1版本中,导出模型时,选择导出格式为 GLTF 2.0后,在操作预设中,选择格式为gltf分离(.gltf+.bin+纹理),在数据=》材质=》图像=》选择JPEG格式。最后材质的导出结果却为.png格式。
Wu_Yi_Bin changed title from GLTF导出时,材质图像导出格式问题 to Format issue with material image export during GLTF export.(GLTF导出时,材质图像导出格式问题) 2024-01-23 03:10:04 +01:00
Member

Hi, thanks for the report. Image is exported in selected format (checked in 4.1)
Can you check in recent 4.1 buildbot build: https://builder.blender.org/download/daily/

Hi, thanks for the report. Image is exported in selected format (checked in 4.1) Can you check in recent 4.1 buildbot build: https://builder.blender.org/download/daily/
Pratik Borhade added the
Interest
User Interface
Module
Add-ons (Community)
labels 2024-01-23 10:53:50 +01:00
Pratik Borhade added
Status
Needs Information from User
and removed
Interest
User Interface
labels 2024-01-23 10:56:53 +01:00
Author

Yes, the problem still exists. It was not found in the previous months, and I discovered it in my previous version after upgrading to 4.0.1
是的,依旧存在该问题,该问题在前几个月还没有,我是在我之前的版本中发现的该问题 升级至4.0.1之后 发现问题依旧存在的

Yes, the problem still exists. It was not found in the previous months, and I discovered it in my previous version after upgrading to 4.0.1 是的,依旧存在该问题,该问题在前几个月还没有,我是在我之前的版本中发现的该问题 升级至4.0.1之后 发现问题依旧存在的
Author

Yes, the problem still exists. It was not found in the previous months, and I discovered it in my previous version after upgrading to 4.0.1
是的,依旧存在该问题,该问题在前几个月还没有,我是在我之前的版本中发现的该问题 升级至4.0.1之后 发现问题依旧存在的

It seems like I can't watch the video.

> Yes, the problem still exists. It was not found in the previous months, and I discovered it in my previous version after upgrading to 4.0.1 > 是的,依旧存在该问题,该问题在前几个月还没有,我是在我之前的版本中发现的该问题 升级至4.0.1之后 发现问题依旧存在的 It seems like I can't watch the video.
Author

Hi, thanks for the report. Image is exported in selected format (checked in 4.1)
Can you check in recent 4.1 buildbot build: https://builder.blender.org/download/daily/

I have checked in version 4.1 and the issue still exists. @PratikPB2123

> Hi, thanks for the report. Image is exported in selected format (checked in 4.1) > Can you check in recent 4.1 buildbot build: https://builder.blender.org/download/daily/ I have checked in version 4.1 and the issue still exists. @PratikPB2123
Pratik Borhade changed title from Format issue with material image export during GLTF export.(GLTF导出时,材质图像导出格式问题) to Format issue with material image export during GLTF export 2024-01-23 11:37:55 +01:00
Member

Yes, video is not visible. Can you reupload?
Also share simple .blend file where the problem is visible after exporting.

Yes, video is not visible. Can you reupload? Also share simple .blend file where the problem is visible after exporting.
Author
https://projects.blender.org/Wu_Yi_Bin/issue @PratikPB2123
Member

Please provide your .blend file
jpeg file does not have alpha management, so depending on your node setup, we may not be able to export texture has jpeg.
Without the .blend, as requested in issue template, we can't investigate.

Please provide your .blend file jpeg file does not have alpha management, so depending on your node setup, we may not be able to export texture has jpeg. Without the .blend, as requested in issue template, we can't investigate.
Author

The .blend file is too large, and when I tried to upload it, I was prompted with an upload failure. I uploaded a .glb file and a .gltf+. bin+texture file in the repository. @JulienDuroure
The repository address is as follows:https://projects.blender.org/Wu_Yi_Bin/issueModel

The .blend file is too large, and when I tried to upload it, I was prompted with an upload failure. I uploaded a .glb file and a .gltf+. bin+texture file in the repository. @JulienDuroure The repository address is as follows:https://projects.blender.org/Wu_Yi_Bin/issueModel
Member

outputs is not really useful to investigate.
As far as I can see in your file, you probably (once again, can't be sure without your .blend file or any other simple .blend file that shows the issue), have some alpha that prevent exporting to jpeg, forcing to png to be able to manage alpha data

outputs is not really useful to investigate. As far as I can see in your file, you probably (once again, can't be sure without your .blend file or any other simple .blend file that shows the issue), have some alpha that prevent exporting to jpeg, forcing to png to be able to manage alpha data
Author

Okay, I need to coordinate with other departments regarding the source files. Currently, I only have the output files in my possession and will need to wait for a few days before I can continue uploading them. @JulienDuroure

Okay, I need to coordinate with other departments regarding the source files. Currently, I only have the output files in my possession and will need to wait for a few days before I can continue uploading them. @JulienDuroure
Author

I have currently extracted two models from my colleagues and created two cases, one is the source texture material in. jpg format and the other is in. png format. After outputting these two models in. gltf format, I found that the output material is still in. png format. I have tried versions 3.2.2 and 4.1.0, but the issue remains the same.
Modeling links as https://projects.blender.org/Wu_Yi_Bin/issueModel
The models mentioned above are located in the model jpg and model png folders respectively.
I'm not sure if this operation is correct. I am a front-end development engineer, and my understanding of Blender is limited to networking. I am not very clear about the basic operations of 3D model modeling. If it is caused by incorrect operation, can you provide me with the correct operation process? Facilitate me to provide feedback to colleagues. @JulienDuroure

I have currently extracted two models from my colleagues and created two cases, one is the source texture material in. jpg format and the other is in. png format. After outputting these two models in. gltf format, I found that the output material is still in. png format. I have tried versions 3.2.2 and 4.1.0, but the issue remains the same. Modeling links as https://projects.blender.org/Wu_Yi_Bin/issueModel The models mentioned above are located in the model jpg and model png folders respectively. I'm not sure if this operation is correct. I am a front-end development engineer, and my understanding of Blender is limited to networking. I am not very clear about the basic operations of 3D model modeling. If it is caused by incorrect operation, can you provide me with the correct operation process? Facilitate me to provide feedback to colleagues. @JulienDuroure

Disconnect the Image Texture Alpha <-> Principled Node Alpha link in the Shader Editor.

Disconnect the Image Texture Alpha <-> Principled Node Alpha link in the Shader Editor.
Member

Confirmed what I said: You try to export alpha, so exporter automatically switch to png, as jpeg can't handle it.
As said by Scurest, remove alpha linked will solve your issue.
Closing this ticket, as there is no bug.

I opened an enhancement ticket on upstream repository. A possible enhancement is to check if texture is jpeg, in order to ignore the alpha link: https://github.com/KhronosGroup/glTF-Blender-IO/issues/2126

Confirmed what I said: You try to export alpha, so exporter automatically switch to png, as jpeg can't handle it. As said by Scurest, remove alpha linked will solve your issue. Closing this ticket, as there is no bug. I opened an enhancement ticket on upstream repository. A possible enhancement is to check if texture is jpeg, in order to ignore the alpha link: https://github.com/KhronosGroup/glTF-Blender-IO/issues/2126
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2024-01-27 19:13:09 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#105141
No description provided.