godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.17k stars 21.2k forks source link

VehicleWheel material not rendered correctly at runtime #43410

Open Cevantime opened 4 years ago

Cevantime commented 4 years ago

**Godot version: 3.2.***

OS/device: Linux Mint 19 cinnamon, GLES 3, Nvidia GeForce GTX 1060 6GB

Issue description: Materials on imported mesh that are children of VehicleWheel are not rendered correctly when the scene is lauchned. While they do render while editing the scene in the editor, they don't at runtime. I'm using materials that are built in the surfaces of the Mesh. Interestingly, the same mesh renders perfectly if not parented inside a VehicleWheel (ie put directly as child of the VehicleBody). Even more interestingly, if a mesh is the target of a RemoteTransform, the problem occurs again (even if not inside a vehicle wheel). Another interestig thing : the problem is not present in the 3.1.2 build

Steps to reproduce: Maybe this has something to do with the model I imported, maybe not. To reproduce, just import a 3D model as a VehicleBody and 3D wheels as VehicleWheel.

Minimal reproduction project:

ImportVehicle.zip

Calinou commented 4 years ago

Another interesting thing : the problem is not present in the 3.1.2 build

Could you try to bisect the regression, specifically by trying to reproduce this bug on 3.2 alphas, betas and RCs first? This would greatly speed up troubleshooting.

Cevantime commented 4 years ago

okay ! So the bad commit seems to be this one cd40154890ba9791b219d66beaf187a7d8dcdba5

b7g commented 3 years ago

We have the same issue

Calinou commented 3 years ago

We have the same issue

Which Godot version and rendering backend are you using?

b7g commented 3 years ago

oops, I missed this. I made something for the eyes:

VehicleWheel shading

I use 3.3.2.stable on linux my fellow is on Windows using 3.2.3 both GLES3

same issue for both

clayjohn commented 3 years ago

Related: https://github.com/godotengine/godot/issues/21018