Game Development Community

Interiors Disappear

by Howard Dortch · in Torque Game Engine · 06/08/2005 (10:18 am) · 6 replies

I have some buildings that penetrate the land so you can go under the terrain. I'm having trouble with the buildings not rendering at certain angles or positions. The player walks to a building and at certain spots the building does not render, all I see is a hole in the landscape. I tried changing the angle of the building, changing the angle of the hill, changed the width of the building entrance moved the land up and down...etc... All I manage to do is make it disappear from a different location.

1. why.... does this happen?
2. how can I make it not do that?

#1
06/08/2005 (10:25 am)
Is it a .dts or a .dif? Dts shapes automatically cull the entire shape from the render if the center of the object (IIRC) isn't visible.
#2
06/08/2005 (10:27 am)
It's a dif...
#3
06/08/2005 (10:31 am)
Out of curiosity (not that I'll be able to help you much) ... does TGE give you any errors, in the console ?
#4
06/08/2005 (10:46 am)
No errors... I have 2 other buildings that penetrate the land and I finally wiggled the land/dif up/down left/right in/out until I got them to render all the time. One item of note here I set the square size to 4 on the land. I know that has caused problems in the past for water blocks so that may be an issue.
#5
06/08/2005 (11:16 am)
Yeah, had this happening too if a large chunck of the building is under the terrain. The engine "thinks" you can't see it, and doesn't render it.
#6
06/08/2005 (1:15 pm)
@Ward my entire level (mine) is underground only the opening penetrates. I looked in the C++ code where it might be doing the think on that but can't find exactly where. The puzzle part to me is I have two other interiors burried and managed to find the right combination of hole size, angle, flange size so it's totally do able just like to know the rules of engagement....