Jump to content

Welcome to Obsidian Forum Community
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!




Photo
- - - - -

Walkmesh Helper

Posted by Feargus Urquhart , 15 March 2007 · 4427 views

Toolset
Zarathustra217’s Placeable Walkmesh Helper

Scott Everts, Designer Extrodinaire, checked out the Placeable Walkmesh Helper made by Zarathustra217. Since ScottE checked it out we did make a couple changes to the object and are including it in the 1.05 Update to the game. This is what ScottE had to say about the Walkmesh Helper:

Zarathustra217 has created a wonderful placeable element in the form of a solid invisible square that cuts out the walkmesh. I was asked to check it out and I’m very happy to say it works great and makes complex walkmesh issues much easier to deal with. It also allows you to make flat placeables walkable that weren’t originally intended to be!

I’m going to show an example of a complex walkmesh issue in the editor that this placeable made much easier to deal with.



In this example we have a bridge in three parts. Two ends and a plank connecting them. Normally this would be a problem of mind bending complexity!

First Turn on “C2 Data” under the Collision pull down menu so you can see it.

After making sure both bridge ends are the exact same height I put down one of the new Walkmesh helpers.



Using the Scale option in the Placeable Properties I adjusted the length and width until I got it to match up with the top of the bridge. I then raised it up just a hair above the bridge sections. Use the green selection box as a guide since all those boxes can get confusing!



One issue you need to be careful of is the walkmesh helper will completely override the terrain walkmesh. So the edge of the bridge should be flush with the terrain or as close as possible. If the terrain slopes over the bridge end your character will walk into the terrain until they leave the helper’s area.

Now that we have our rectangle sized, placed, and positioned we have to deal with that joining plank in the middle. Currently we have two issues to deal with. The plank is above the bridge level and the open air on either side is walkable. To deal with the first issue lets place another Walkmesh Helper. This one we will size to the plank and raise/rotate to match.



The nice thing about the helper is you can stack them on top of each other. Your character will snap up to the highest one so works well for uneven terrain. Though you should take care not to go nuts with these. If you layer a ton of these the pathing might not work well and might not bake correctly.

Our next problem is the open sides. This is easily taken care of by placing Walkmesh Cutters. These are listed in the Triggers section under “Empty”. You place them like a trigger and they will etch out the walkmesh exactly like they are shaped. They always override all other walkmesh cutting so they are good for your final fine tuning.



Getting these lined up will take a few tries since triggers conform to the ground terrain while your bridge is way up in the air. I did a few quick level bakes to fine tune them.

So we appear to be done and a quick bake and jump in the game shows all is working great! But there appears to be a few issues.

The bridge sides are open to the terrain below so our character walks off the sides and pops down to the chasm below! Ops! Easy enough to fix. Just put some Walkmesh Cutters on either side of the bridge to block it off.



Also the bridge sections have their own walkmesh which we replaced but is still cutting out and doing strange things. So I flagged the two bridge ends and plank as Environmental Objects so only our Walkmesh Helper & Walkmesh Cutters are doing all the work. No sense making the engine more confused!

Here’s our level walkmesh after being baked.



A quick jump into the game shows that my character walks perfectly from land to bridge. And properly walks up the plank. Not bad and pretty fast to layout.




That's a real great thing. Really! wink.gif

But now that you stated to implement custom content, you could add also a good waterfall effect, not? original.gif
It doesn't work if it doesn't touch ground.
Example: I tryied to use near stairs PLC and the bake doesn't links them.
We need something that links walkable PLCs each other... or better to upgrade the bake system to support that.
Could be possible to add wedge-shaped versions in next patch(es)?
So would be easier to link a side with the ground...

However the need to be able to link various "stand-alone"* (or not) walkable PLC will be yet valid!
Expecially to link more Walkmesh Helper, if you include wedge-shaped versions.

* for stand-alone I mean that don't touch the ground as walkpath surface.
Photo
Selene Moonsong
Apr 21 2007 04:30 AM
I'v tried the Wlakmesh Helper in a couple of rather simple places and found that it works pretty well, and ha saved me a lot of frustration with trying to make a simple dock a walkable area. I'm going to give it a try on a few other things as well to see just what I can get away with.

March 2017

S M T W T F S
   1234
567891011
12131415161718
19202122232425
26 2728293031 

Recent Entries

Recent Comments