Jump to content

Modifying terrain during gameplay


Recommended Posts

Posted

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?

Posted

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?)

Posted

Just to discard what are you looking for, you what something superficial, or something more like red faction?


If you don't know red faction... here is a video. Obviously no too deep :D


o8KeFgzqsPQ

Posted

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.

Posted

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?

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...