Open kitaedesigns opened 11 months ago
The gltf/glb fails to be exported if there are textures with different formats, i.e. jpg and png textures in the same material.
I can't reproduce. Please provide a .blend file with all needed textures, and with saved export parameters
Exporting this:
Using this option:
Does not crash, and generate some WebP images:
I am testing exporting textures at 16K that are all jpeg and they fail to export
Please provide a .blend file with all needed textures, and with saved export parameters. Did you have any error displayed? Did you check you have enough RAM on your computer to handle it?
Also, models with webp textures in blender seem unable to be exported with the image format set to "Automatic" as well
I can't reproduce. Please provide a .blend file with all needed textures, and with saved export parameters
Exporting this:
With this option:
Does not crash, and generate some WebP images:
Here's a link to the file I was working with mismatched textures filetypes. I have 128GB of RAM.
This is a file with 16K textures.
Your first case is a duplicate of #2081 : Problem comes from a B&W texture
For the 16K textures: It looks like a bug on Blender Api side. The following code creates the file for a random texture file, but not for your 16K texture (without any crash). Investigation still in progress, and I may have to contact Blender dev to investigate
import bpy src_image = bpy.data.images['Image_0.png'] new_image = src_image.copy() new_image.update() new_image.filepath_raw = "/tmp/test_save_image" new_image.file_format = "WEBP" new_image.save()
16k textures cannot be converted to WebP. The maximum width and height allowed by WebP is 16383 pixels.
Ah thank you @julienduroure and @scurest for hunting down the true errors. I think we can mark this closed now.
16k textures cannot be converted to WebP. The maximum width and height allowed by WebP is 16383 pixels.
I tried 16383x16383 and that also gives me an error
Reported the issue on blender side: https://projects.blender.org/blender/blender/issues/128183
I tried 16383x16383 and that also gives me an error
I can't reproduce, the image is generated on my side with 16383x16383
Describe the bug The gltf/glb fails to be exported if there are textures with different formats, i.e. jpg and png textures in the same material. It also fails to export if the resolution of the textures is too high. I am testing exporting textures at 16K that are all jpeg and they fail to export. Also, models with webp textures in blender seem unable to be exported with the image format set to "Automatic" as well.
To Reproduce Steps to reproduce the behavior: Create a cube with a material. Use jpg in Diffuse and png in Roughness, and try to export with WebP textures.
Expected behavior Expected for model to be exported with all textures now WebP.
Version
Additional context Add any other context about the problem here.