Game Development Community

More Tunnel Issues

by Cory Anderson · in Game Design and Creative Issues · 05/24/2007 (1:31 am) · 3 replies

Okay so I have spent the last hour reading up on the different techniques for placing tunnels in the terrain. I now understand the set empty thing, but the problem is that it removes large chunks of the terrain. I need to be able to just remove terrain within the interior. Is there some sort of code of code or dynamic field I can set that would set all terrain within the bounds of the interior invisible and non-collidable? Thanks guys.

#1
05/24/2007 (4:09 am)
I have managed this quite successfully in the past by setting the squareSize of the TerrainBlock to a reasonably small size and creating the interiors to match the hole created after the squares are set to empty.

You can also use dts shapes quite effectively to blend the interior into the terrain.
#2
05/24/2007 (8:46 am)
Yeah I see what you mean, and those are good ideas. I only have a couple issues.

1) What if I don't want the whole mission to be that small square size?

2) It seems like quite a lot of work just to put a tunnel in if I were to create DTS shapes to blend the interior into the terrain, or to match the interior to preset squares.

I guess basically (and it shouldn't be too hard) I just need some sort of code that renderes all terrain inside the interior non-existent. I will also post this thread on the programming forum.
#3
12/03/2007 (2:18 pm)
Quote:I guess basically (and it shouldn't be too hard) I just need some sort of code that renderes all terrain inside the interior non-existent

You would have to make some changes to the source code to do that. If you do get it done though, tell me, I'm very interested!