Game Development Community

Terrain Holes Programatically

by Demolishun · in Torque Game Engine · 10/07/2005 (12:27 pm) · 5 replies

I have read in the past about tearing a hole in the terrain to allow a portal to be placed for interiors. Has anyone done dynamic terrain holes with dynamic portals rising out of the ground? I was thinking of a racer game that uses the terrain and the players can shoot a weapon to create portals that they can use or trick opponents to fly into.

Thanks,
Frank

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
10/07/2005 (1:03 pm)
I don't see why you would need to tear a whole into the terrain if you were going to portal someone else where. From my understanding tearing a hole in the terrain is so that you could put an interior underneath the terrain, so that you could get to say a cave of some sort.
#2
10/07/2005 (2:51 pm)
Well that is kind of what I was thinking. That the interior would "grow" out of the ground for an underground area.
#3
11/11/2005 (8:22 am)
Actually I'm going to kind of need this too. I want the player to be able to bomb a rock wall to unlock a cave entrance. Maybe a trigger can be used to call 'set-empty' on the correct terrain tile, revealing the interior beneith?

I could cover over the entrances with dts rocks, but then it would be kind of obvious wehre to bomb and where not to...
#4
11/11/2005 (9:20 am)
You could also save yourself lots of trouble by not having to dig a hole in the terrain to begin with. Model your cave entrance and make it work as a teleport device: as soon as the play steps in the cave entrance (that is dark and stuff), it's sent to the actual cave, somewhere else far away in the mission file (or maybe in another mission).
#5
11/11/2005 (9:40 am)
The TerrainDeformer resource will do what you need.