carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
11.11k stars 3.58k forks source link

Abnormal Dark Areas on Imported Car Paint #8044

Open GoodarzMehr opened 1 month ago

GoodarzMehr commented 1 month ago

Hi,

For an imported vehicle, I'm applying the car paint material as instructed in the tutorial, and the static mesh view looks something like this: Screenshot from 2024-08-09 02-51-16

However, when running the simulation, dark areas appear on the car's body, as seen below: Screenshot from 2024-08-09 02-55-08

Here are the properties of the car paint material instance that I'm using: Screenshot from 2024-08-09 03-01-41

Is there a step to the process that I've perhaps missed?

gsmario commented 1 month ago

Hello! I'm assuming that you have glasses or some other meshes beside the skeletal mesh of the car. You should disable the mesh distance field of those meshes, because from the images, I think thats the problem. Probably the glass mesh, because the dark areas appears around them. Also, you can check this going into unlit mode in editor. If there is no dark areas, then is the mesh distance field. Try it and tell me if it works!

GoodarzMehr commented 1 month ago

Thanks for your help! That was the case, and unchecking Affect Distance Field Lighting for those meshes in the blueprint resolved the issue.

One question though, I checked the blueprint of other cars and this field is checked for those, so why doesn't this seem to be an issue for those cars?