Closed nunodonato closed 7 years ago
Not sure if is the same but when starting the project manager and editor I get
ERROR: add_property: Invalid Setter: Environment::set_ssr_accel for property: ss_reflections_accel At: core/class_db.cpp:763.
Then, the environment (a default one with procedural skybox) seems to be ignored when running:
I found (part) of the problem.
If I assign the material inside the PrimitiveMesh properties, it will work ok. But if I assign in the MeshInstance, it wont be used at all.
Upon more testing I realized that the Material Override in Geometry Instance seems to work fine. So it's just the Material in the MeshInstance that seems to be ignored by these Primitives
Thats weird, I was indeed under the impression Godot takes care of this inside of the Mesh base class. I've basically using the same approach as ArrayMesh is so it may be that ArrayMesh suffers from the same issue.
@reduz any ideas where I should start looking?
edit I can certainly reproduce this. From what I can tell, in the editor it works correctly, in game it always uses the material set on the resource. My guess is that this is caused by us deferring the update of the object and it overwriting the material set on the MeshInstance by the material set on the resource.
I noticed that GIProbes don't consider the light emitted from PrimitiveMeshes (no matter if the material is set on the node or the resource), and maybe it is a consequence of this.
I´m confident that both these things should be fixed now, so closing. In any case test if you want and reopen.
Still not working for me ... amterials are loaded in editor but not in game. Exported as obj from TinkerCAD online. godot 3.2
Operating system or device - Godot version: Godot 3, Linux
Issue description: Material looks ok in editor, but totally white when in game. I tried changing alpha, metallic and roughness but no difference at all. Using a directional light. The material is on Mesh (Plane)
game:
editor: