Game Development Community

Terrain Holes/Set Empty

by dudeBot · in Torque Game Engine · 08/08/2006 (12:43 pm) · 3 replies

I've looked at a number of posts related to cutting holes into terrain
for underground .dif interiors, but I have not been able to get
things working as I need them too.

I'm making an interior .dif with 3 levels/stories. 2 above ground and one underground.
I have not enclosed the interiors with ceilings, because I want to have the option
of having an observer camera positioned high above for an omniscient point of view.
The "underground" floor is just one room. It is accessed by a cutout in the floor with
a staircase leading down. The size of this access hole is about 1x1 meter.
In my project, when I move the player to the location of the access point, I can see the
terrain, and of course can not move down the stairs into the below ground level.

From my research in the posts, I saw that using the Select Empty function in terrain editing mode would cut holes into the terrain, so I thought that I could just cut a hole
in the terrain where my access point is in the floor and my problem would be solved.

I was able to cut a really big hole, but not a small one. When I set the brush to
any size lower than 9x9, nothing happens. I tried to patch a large hole
with the Clear Empty option using a 1x1 brush, but wasn't able to get a small
hole that way either, it just filled in with a few clicks.

So what I'd like to find out is how, if it is possible to cut small
holes into the terrain.

BTW: I also tried capping the access point with a portal that extended above and
below floor where the opening is, but that didn't work either
(showTerrainInside is set to "0")

Thanks in advance for help with this.

PS - I think that this is my first post here :)

#1
08/08/2006 (5:05 pm)
You can't cut a hole smaller than the density of the terrain grid. In general the best solution is to build your interior such that it has a wide "base" that can cover the hole (which will change shape/size a little bit as terrain LOD occurs when you're far away). This is what they did for Tribes and it worked pretty well.
#2
08/08/2006 (5:40 pm)
Cutting a hole 1x1 using set empty does work, however there is a small bug in that you have to adjust the height of the terrain that has just been set to empty for it to dissappear ?!?
#3
08/11/2006 (3:55 pm)
Thanks for the info. I've got a good hole now and an enterable basement. Thanks Chris
for pointing out the terrain bug, I had alot of holes in my terrain that I didn't even know
about. (I went kind of crazy trying to get the set empty to work on 1x1)
I guess that's why I was falling in the "bottomless pit" even when it looked like
I was on solid ground. :P

I just replaced the emptySquares field in the .mis from a backup,
since I wasn't even sure where the small holes were, which patched everything up.

Thanks again for both of your responses!