You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
When exporting an object from blender, the diffuse color value is set from the intensity viewport display color instead of the material base color, and the emission color is set from the viewport display color instead of the material emission color.
OS/Platform
Windows 10 Pro 1909 + Blender 2.8 + Godot 3.1.1.stable.official
# TODO: More accurate coloring, if possible
self.writel(S_FX, 6, "<color>{}</color>".format(
numarr_alpha(material.diffuse_color, material.emit)))
self.writel(S_FX, 5, "</emission>")
Click the default cube, and then click the material tab
Set base color to Red, and Viewport display color to blue.
Export the scene with the Better Collada exporter.
Import to godot, and see the material albedo color is set to blue but with slightly lower intensity, and the emission color is set to blue .
Suggestion to fix
I think the more correct export would be to set the diffuse color to the Base color of the material, and not set emission color to diffuse color from viewport display color, but instead to the emission color from the material.
The text was updated successfully, but these errors were encountered:
I experienced the emission issue as well, which is why I wanted to open an issue, but you already did.
In fact, since emission was completely white, when I used a monochrome material, at first I thought that no material was applied at all (Godot also does not show applied materials when instantiating a Collada object), so I was asking around in Godot's discord why materials are not applied.
Is there any solution to this? The default Collada exporter works fine in this regard.
EDIT: In fact, I just tried changing the viewport display color and it didn't affect the emission color later in Godot. It was simply always RGB #cccccc .
Issue
When exporting an object from blender, the diffuse color value is set from the intensity viewport display color instead of the material base color, and the emission color is set from the viewport display color instead of the material emission color.
OS/Platform
Windows 10 Pro 1909 + Blender 2.8 + Godot 3.1.1.stable.official
Problem
as seen in: https://github.com/godotengine/collada-exporter/blob/master/io_scene_dae/export_dae.py
Emission color set to diffuse:
line 295
Diffuse color set to diffuse_intensity
line 311
Steps to reproduce
Suggestion to fix
I think the more correct export would be to set the diffuse color to the Base color of the material, and not set emission color to diffuse color from viewport display color, but instead to the emission color from the material.
The text was updated successfully, but these errors were encountered: