Jump to content

Modifying terrain during gameplay


Recommended Posts

The editors all run in-game... they don't seem to be a separate application or have any kind of baking/processing code. So, in theory, it's possible to create a weapon (or vehicle, or anything else for that matter) that can modify the terrain during gameplay, right? I'm asking this because i'm interested in having explosions that affect the environment.


Also, would it be possible to have a weapon that creates structures, like the polygon editor?

Link to post
Share on other sites

may be is not the answering what you are expecting, but try to use t3d and do something first then come to that ;)


btw check this link maybe is useful https://www.garagegames.com/community/forums/viewthread/1670 https://www.garagegames.com/community/forums/viewthread/9293/2


so it is possible. You need to dig more in the subject.


Try to search about Deformable 3D Environment or Voxels

Link to post
Share on other sites

I did saw the research and demos by Bill Vee on T3D and Polyvox, but since the engine already has terrain manipulation built-in, without voxels, i wanted to experiment doing those modifications instead. (which probably is just vertex displacement on a mesh, but where is it persisted to?)

Link to post
Share on other sites

There was a resource to do this back in the TGE days. I don't remember the specifics how how you had to modify terrain, but one significant part of it was the fact that Players cache collision information. So if you modified the terrain underneath a Player, then the Player wouldn't notice until they walked a little way, refreshed their collision cache, then fell to their untimely end. Actually I've just realised it was an exact implementation of Wile E. Coyote.


So yeah, if you end up doing something like this, remember to check for Players near your modification and nuke their working collision set or something.

Link to post
Share on other sites

The core of it (and terrain has undergone several revisions, so the older resources won't work. make sure if you find one it's tagged for t3d) is terrains are (short version) a grid. If I recall correctly, prior resources added a second, ghosted grid as opposed to a straight file lookup which contained alterations which were then applied over the non-ghosted ones. An analogy would be taking a rigged model and applying vertex transforms to animate it. (somewhat simpler though, since you only have the Z value to manipulate, with the x/y being fixed points on the grid). That help any regarding conceptualization, at least?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...