Problem with Directional Light and imported object

Hi everyone, I tried to import a level for my game in .obj format and if I look at the imported object with the camera the directional light seems to stop working.
This also happens when trying to play the game. During the import I also disabled the import of lights. I leave a short video where you can see the problem. Thank you for your help!
I use Unity Editor with version 2021.3.8f1 and HDRP (DX12).
Video link: https://1drv.ms/v/s!AtLsur-Ing99fA3VoxP5u3Wv9zo
Have a good day!

I’m not clicking on a link like that. :slight_smile: Do you have a youtube account? Or just add an image to the forum post.

Is it perhaps backface culling you’re seeing? Or just scaling? Start with a basic cube, get that working.

Hi, sorry for the link, it’s OneDrive :slight_smile:
But if you feel safer I’ll leave you also for YouTube.
As you will see the problem is only there when this object is rendered, I also tried scaling it.
Could it be a problem with the .obj format?
YT:

That kinda looks like maybe the bounds computation is wrong. The bounds SHOULD be properly handled at the import stage. You could get a reference to the Mesh using the MeshFilter and recompute the bounds, just to eliminate that possibility. On the object in question it would be (in Start() ):

var filter = GetComponent<MeshFilter>();
var mesh = filter.mesh;
mesh.RecalculateBounds();
filter.mesh = mesh;

and see if maybe something changes?

What exactly is the object in question? Is it a giant sky dome or sphere with that white outline on it? What if you set the scale really small, like (0.01, 0.01, 0.01)?

Eventually I wanted to try using the same object in FBX format and it gave a positive result. Probably the problem with the .obj is what you described. I still thank you for the help!