Game Development Community

In Game Terrain Excavation

by Gary Rigg · in Torque Game Engine · 11/20/2008 (12:01 pm) · 2 replies

Hi all,

I'm trying to achieve some sort of earthquake effect over here - part of which involves a crack forming in the ground, in front of the player, moving from left to right.

First, I found the terrain deformer here...

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13884

....which I'm tempted to try.... but I don't see the need to modify the game engine in this instance because the World Editor already has a "terrain excavate" feature.

I presume/assume/hope(!) I can use something similar directly in torque script during the game (without including the entire creator mod - which would be bad for production releases!). Does anyone have any idea how to do this? I've looked through the creator code but being a complete "noob" I'm not making that much sense of it yet.

In short.... I want to pick a point on the terrain, with a certain brush size, and begin excavation moving from left to right..... thus giving the effect of a large crack appearing in the ground. Add to that some camera shaking (yet to figure out that one too!) and some appropriate sound it should give an earthquake-ish effect.....

Or.... am I missing the point and do I need to modify/rebuild the engine as per the deformer example above?

Many thanks for any hints, tips, suggestions!

Regards,
Gary

#1
11/20/2008 (12:58 pm)
I stand corrected... the deformer example works like a charm. (and I'm guessing using the terrain editor in creator doesn't work over network play?).

Anywho.... all works. Feeling slightly less noobish!

Cheers,
~G
#2
11/21/2008 (10:36 am)
Yes... the terrain editor is not networked.