Ambient icon indicating copy to clipboard operation
Ambient copied to clipboard

Models occasionally render as black

Open SK83RJOSH opened this issue 2 years ago • 6 comments

While making models for the golf game mode I've come across a lot of instances where objects render totally black. It appears like the material is not correctly applied or similar, as they have identical materials: image

In game, the ball, arrow, and the line all use the same material; but are separate models to avoid needing to setup complex hierarchies. Despite this, the triangular indicator is rendered as black: image

I've had this happen with other models as well, and at times, without clearing the cache or making any changes at all, it would have the correct material the next run.

SK83RJOSH avatar Feb 19 '23 13:02 SK83RJOSH

Can you try turning on the various rendering debug views and seeing if there's anything amiss? Wondering if it's a normal issue

philpax avatar Feb 20 '23 09:02 philpax

Disable Shading: image

Normals: image

Metallic Roughness: image

SK83RJOSH avatar Feb 20 '23 09:02 SK83RJOSH

After recreating the mesh, was this still an issue?

philpax avatar Feb 20 '23 23:02 philpax

After recreating the mesh, was this still an issue?

Nope, but I still think this issue is relevant given the mesh having correct normals and materials when imported into blender. ^^

SK83RJOSH avatar Feb 20 '23 23:02 SK83RJOSH

I am having a similar issue, where the third_person_example is black on debug but randomly colored on release

Not sure if it is only a Linux issue

ten3roberts avatar Feb 23 '23 09:02 ten3roberts