Game Development Community

Interactive Terrain

by Santiago Rosario · in Torque 3D Beginner · 07/20/2011 (1:37 pm) · 8 replies

What I mean by interactive terrain would be to create a terrain layer that players can dig and it actually lowers the height of the map giving the player random objects like diamonds and other treasures. If this is achievable with this engine I would buy it right away but I would like to know first if it is possible. The game itself would be something to amuse myself and would be something like Motherload game from MiniClip but in 3d.

Here's the game if you want to try it out.

http://www.miniclip.com/games/motherload/en/

#1
07/20/2011 (2:00 pm)
Not sure if its possible, but wouldn't you rather use the terrain layer as the absolute bottom, and just stack blocks on top. Each block could hold a different material that you want or just be blank, and create a script to randomize the blocks every time. just a thought ;)
#2
07/20/2011 (3:07 pm)
It would take some coding effort to interactively deform the terrain, and once done it would not be true digging since you would only be able to adjust an area surrounding a point to a given height/depth with a resultant slope to neighboring points. Great for explosions though.
#3
07/20/2011 (4:48 pm)
Thanks for the replies!

Michael that sounds like exactly the thing I would like. Each action would give you an item in your inventory. Would that be possible.

Jon the idea would be something like that in the way that the top layer would be made of dirt requiring different machinery to dig than for example the second or third layer made out of rock or lava respectively.

Would Michael's approach be too difficult to create? How much $$$ would someone ask to implement this?

Thanks again and please reply I'm ready to buy the engine but would like more advice into this matter.
#4
07/20/2011 (7:16 pm)
It would look something like this (something I made up in sketch up to get my idea thru).

img192.imageshack.us/img192/5791/terraform.png
#5
07/20/2011 (10:14 pm)
Quote:
Would Michael's approach be too difficult to create? How much $$$ would someone ask to implement this?
Depends. A good place to start from would be the terrain editor code. Feeding in your own location to be deformed instead of a brush is relatively easy. The trick is to have it networked if multiplayer is a concern.

Quote:
Each action would give you an item in your inventory. Would that be possible.
Yes. You would have to implement some terrainOnAltered() callbacks which in turn would pop an item into existence or go straight to player inventory.
#6
07/21/2011 (8:24 am)
Yeah, I will start there what I would like is to implement it in a way that I can use the terrain editor and the terrain ends up with this property.

Thanks for the advice if any more ideas come to mind please let me know.
#7
07/21/2011 (4:08 pm)
@Santiago Rosario: Check out what Vladimir Piskunov did in his game in this thread here
#8
07/21/2011 (6:04 pm)
Oh! Well it is doable then I just need to figure out how. Would be awesome if he could point me out in the right direction :P

I feel encouraged. Now I know it is possible thanks Chris.