I have an issue with the sky suddenly going dark only when the camera transform goes below -0.43 on the Y axis only. I don’t really know how else to describe it and so I have included a video to show the issue.
The issue is no longer present when I deactivate the Visual environment component from my GameObject that is set to be the post processing layer. However so does everything else such as sky, fog etc.
The issue is also no longer present when I keep the component active but change from a physically based sky to something else.
Naturally I then think it must be the physically based sky component and try to deactivate it and nothing. the problem is still there. Changing the settings and options on the physically based sky does not resolve it and neither does deactivating it.
I’m rather lost here and was wondering if anyone would kindly be able to point me in the right direction.
These are my physically based sky settings in-case it helps.
To test it further, I’ve placed a new camera onto the scene. Its the same issue, as soon as I set the Volume Layer Mask to my post processing layer and bring the camera down to below -0.43 it all goes grey.
I’m running out of tests here to diagnose the issue
Okay So I’m not going insane. I think this may be a Unity issue rather than something I’ve done. I’ve created a new volume profile. Added a new Visual environment and physically based sky component and left all settings as default. Obviously I’ve change the visual environment to PBS and selected the new Volume profile on the GameObjects volume component.
The results are exactly the same. When the camera goes low the entire environment turns to a darker colour. its not a transition, its a switch.
Video below.
I would appreciate if someone from Unity could advise me on how to resolve this or tell me if it’s a bug that cannot be resolved so I can find other means to get my desired effects.
So another test I’ve done is to create new scene (in-case something else on the scene was causing the issue) and create a new global volume/Gameobject set to post processing layer/new camera etc. and I’ve just added the Visual environment component and set it to Physically based sky and it still gives me the same results. I’m really starting to think this is a Unity issue.
any one know how I can get the attention of someone from Unity to try and help me resolve this?
Imagine that … it wasn’t checked and when I did turn it on the environment went pitch black. So I played around with the Y value. it seems to be fine now (although the lighting looks a little different) but I’ve had to set the Y value to something really high so it’s currently at 90000000 - I dont understand how this affects things or how it will in the long run.
On unity docs it doesn’t really say much about what this is doing in the background
I will do some more digging to make sure I’m not making things worse in the long run.
Either way thank you so much - I really can’t show enough gratitude as this has been driving me insane lol.
Most probably what’s happening with your case is you are basically inside the dimensions of the said planet, so basically to prevent this you should keep the y value of the planet’s position to -ve(radius+whatever distance you want to go down till from the origin in your game), if it’s positive you won’t get any sunlight as you are basically below the planet.
Although it shouldn’t be black maybe fog was disabled or something as well
thank you so much. just that piece of knowledge has now enabled me to understand what I am doing on that component lol. I’ve got a much better understanding of it. Although I must say that I thought being inside the planet would be the best place but that’s where it goes dark. As long as my level is outside of the planet the lighting is okay.
Also, not related to this topic but seeing the video you posted, I suggest you should limit the min and max of exposure through the volume framework, otherwise the exposure will be all over the place when you zoom on a dark object or a bright object. Also, try changing the speed variable to better suit your needs