I have a major problem.
I use a skybox as background (standard/tropical) and reflective water. In the editor everything looks beautiful, while the build presents the background skybox as corrupted. Compare the two images attached. I have rebuilt the project and switched the skybox without any difference.
Anyone have any idea what’s going on?
Thanks in advance!
In an effort to isolate the problem, I increased the clip distance of the camera, which helped. It seems like what was corrupted was the skybox which was visible behind the reflective water. Anyway, that introduced a new problem.
I can now see what appears to be the menubar reflected in the very low part of the game screen. Take a look at the enclosed pic.
This is very weird, and quite worrying. I thought there were no major differences between the build and the editor output in terms of graphics…?
RadeonX1600, in a MacBook Pro which drives the internal display as well as an external 22" Cinema Display. I’m about to disconnect the Cinema Display to see if that helps. But regardless, it shouldn’t lead to rendering errors. I’ve run plenty of games using this setup without problems - I want that to apply to my title as well.
It looks like I can eliminate the problem by making sure the main camera and the reflection camera uses the exact far clip plane. Increasing the difference makes the problem worse. If this relationship is documented somewhere I definitely missed it.
Is this a logical explanation, or is there something else going on here…?
[oh, and the external display didn’t have anything to do with the problem. It behaved exactly the same with/without the cinema display plugged in]
Think I might have narrowed it down some more.
It seems this occurs when the camera clip plane is clipping the reflective water (and this goes for both the main camera and the reflection camera AFAIK). The solution is to increase the clip plane distance (in my case quite a lot).
Still not sure why this problem only occurs in the build though…?
This problem occured for me when I did not have any cameras using Skybox culling. As soon as I made it so the skybox was visible, that other stuff would disappear behind it. Otherwise, I would get a psychedelic mess of background bits everywhere.