Game Development Community

Trenches?

by Thomas Fluff Harris · in General Discussion · 09/08/2011 (10:19 am) · 4 replies

Hello another possibly easily answered question for you great people :) is there any way to create a dynamic trench system? if i said that correctly you should by now have something in mind of the road editor in the torque sdk but it can be used in game to create trenches?

Its the last thing i need to finish my game off :) hopefully lol

About the author

3 Years developing under Torque 3D and soon going to release a number of products over steam. Sure there has been problems but what development doesn't.


#1
09/08/2011 (11:06 am)
Not that I'm aware of, but it's a cool idea. I'm not sure where I'd start on that one - maybe derive a class from the road editor and swap out the road painting section with something that lowers the terrain under the path by a set amount within a set width. Have to research how to access the terrain height - probably look at the terrain editor source and scripts.
#2
09/08/2011 (11:47 am)
it was something that just struck me as kinda a new cool feature that you dont get in many games. If i figure it out i will surely share it hear but ur idea is better than my original thought, i was thinkin i was going to haveta replace the road paint function with one that created lik a kind of hole on the terrain and then replace it with a model of a trench that fits the hole, is there a way of getting the road editor to paint displacement maps that edit the terrain?
#3
09/09/2011 (7:29 am)
That sounds a lot like the set terrain height tool, except a square brush + some kind of decal system. Or am I over simplifying things ?
#4
09/09/2011 (9:53 am)
i already programmed it to work with set terrain height tool but it really wasnt giving me good results, i need summit that can take in the mesh of the trench cos i need to have ladders and things in it if you get me? so it looks realistic wen units climb out of the trench and stuff, mounted guns too, kinda like the road mesh tool that Richard Ranft said about only one that will allow modifying the terrain into being pulled down to the same sort of details as the mesh and then have it place ladders every so often and mounted guns