Closed msparkles closed 4 months ago
Forgot to mention: vc_alpha_name
is not None.
mat = get_material_from_idx(material_idx, self.materials, self.export_settings)
mat here is of course None.
Hello, Seems your materials have "OPAQUE" blend_method, so no alpha will be exported.
Can you please upload a test file when you already apply all your modification done by your eporter, just before calling the bpy.ops.export_scene.gltf
?
Edit: Your VC will be exported only when used as base color multiplier of the base color, as described in glTF specification. See #2233 (not merged yet)
Edit2: We should probably chek gather_alpha_info instead of blend_method here...
I'm also experiencing this bug again #2206
Seems your materials have "OPAQUE" blend_method, so no alpha will be exported.
There shouldn't even be a material- not in our case. And indeed there isn't
Can you please upload a test file when you already apply all your modification done by your eporter, just before calling the
bpy.ops.export_scene.gltf
?
Here: a.zip
Your VC will be exported only when used as base color multiplier of the base color, as described in glTF specification.
That's weird- we haven't read the spec, but shouldn't you be able to simply have vertex colors?
@The0Dev
I'm also experiencing this bug again https://github.com/KhronosGroup/glTF-Blender-IO/issues/2206
Will be fixed in #2237
@msparkles
This will be fixed in #2233
Describe the bug
add_alpha = mat is not None and add_alpha and not (mat.blend_method is None or mat.blend_method == 'OPAQUE')
This expression gives False with our pipeline-This pipeline of ours may be a bit of a legacy, but bear with us- because we only use vertex colors in our models, we turn a material on an object with only the base diffuse color into vertex color.
PS: Whether or not we clear the materials and whether or not we assign Alpha Blend does not seem to affect the result.
Expected behavior What we expect is that the alpha component of the vertex colors also get picked up and exported.
.blend file/.gltf (mandatory) prism.zip
Our export scripts are at https://github.com/automancy/automancy
Version