- Home /
Terrain trough floor.
Okey, so I posted this before, but I think I was not clear enough. The problem here is that I can see the terrain trough the floor of my houses. I tried multiple ways:
I tried to use texture offset, did not completely fix it. Still glitching, and floor can sometimes be seen trough the floor.
I tried using multiple camera's and render the buildings on a serparate layer. This did however, not work. You couldn't see the texture trough the floor. But you could se buildings trough terrains, like hills, tree's. So that did not work either.
Here is a picture, to see what I mean.
Any idea's on how to fix it?
Answer by Kiloblargh · Oct 01, 2012 at 07:10 PM
A. Switch the renderQueue of the house to draw on top of the terrain when the player enters the doorway and back when they leave.
B. Raise your houses up a bit, give them a foundation and crawlspace.
Thanks! I will try it. I guess i have to do it with the foundation.
Just for realism's sake, houses should be modeled with elevated floors and front steps- if the house is going to be on a hillside, make a custom foundation that's higher on one side. There's no easy way to make holes in terrains, so you would have to do the render order trick if you want a house to have a basement or cellar area that goes down below the terrain level.
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
Flickering issue when objects touch terrain. 1 Answer
Why are my terrain textures pixelated? 1 Answer
Light Glitch 1 Answer