- Home /
Objects are visible through terrain
Hello !
I hope you can understand my problem. I have two Scenes in my project. The first scene is the MainMenue and the other one the game scene. When I build and Run the game, Iam first in the main menue of course. When I now click on the "Play" Button, the gamescene is loading. No problem till now. But in the game, all objects are visible through the terrain.
http://www.directupload.net/file/d/3927/pkteveaf_png.htm
The trees are behind the hill!
However when I go back in the menue (with ESC) and than click on "Play" again, the Bug is away. I really need help !
I used: Application.LoadLevel (1); and Application.LoadLevel (0); But it looks like a graphic Bug ;(
I'm sorry that I can't help, but I have the exact same problem. I just wanted to bump your thread in hopes that someone might be able to offer some insight?
$$anonymous$$y description:
I have a game object with only a Scene$$anonymous$$anager script attached, which is loaded in my first scene and has DontDestroyOnLoad(gameObject) invoked. Then, I load my second scene directly from that script, which has a garage model and a few car models to select from. After you choose a vehicle, the last scene is loaded, which has several vehicles and a terrain race track. If I run the scenes in the editor, all is well. However, when I actually build a player and test it, I can see the shadow map through the terrain, as in your screen shot. Also, the vehicles will not cast shadows on the terrain in the player, only in the editor.
I am having the same problem. I've narrowed it down to the Planar Reflection script on Unity's standard Water4 prefabs.
Answer by Dr_D · Apr 14, 2015 at 10:15 PM
I seem to have resolved the issue by switching shaders on the terrain. I switched from the default shader to legacy diffuse and the problem is gone. I haven't gotten to the point of writing any shaders for this yet, so this is ok. At least I know what the problem is now.
I also got this with latest version of unity 5.1.2 and fixed it by selecting the Terrain, then look at the Terrain Settings -> Base Terrain -> $$anonymous$$aterial dropdown. Select "Built In Legacy Diffuce" and it should hopefully help you out with the transparent terrain. Worked for me.
Answer by JamesL98 · Apr 14, 2015 at 07:08 AM
If it is just the trees?? try going into your terrain settings and changing the billboard and tree distance, or you could place use objects with LOD that instead of simply bill boarding they decrease poly count as the camera moves away. If it is EVERY object in the game, make sure you have the correct terrain substance in the terrain settings. hope i helped.
yes, this works thank you for your help And for others, I am having the problem only with trees.
Answer by videon · Sep 20, 2015 at 08:29 PM
I had the same issue and fixed it by just rebuilding the project. Hope this helps.
Your answer
Follow this Question
Related Questions
Standalone Build Issues 0 Answers
Unity is lagging 1 Answer
Tree colliders not working?!? 1 Answer
Create object inside a game 1 Answer
terrain texture is blurry 8 Answers