Editing 3DMidTex tutorial

From Eternity Wiki
Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
[[Eternity]] provides the possibility of using the middle textures of linedefs as solid objects that can be walked over or under, and can block map object passage. Monsters can walk across them, and they can even be moved (with the assistance of some linedef specials) to create lifts, doors, anything you like. They are quite useful and easy to implement.  
[[Eternity]] allows level editors make the middle textures of linedefs into solid objects that can be walked over or under, and can block map object passage. Monsters can walk across them, and they can even be moved (with the assistance of some linedef specials) to create lifts, doors, anything you like. They are quite useful and easy to implement.
This feature is called [[3DMidTex]], and this tutorial covers the basics of how to use it. Once you are finished with here, you may want to read [[3DMidTex advanced topics]] to learn about the use of 3DMidTex lines with switches, doors, and lifts.
This feature is called [[3DMidTex]], and this tutorial will explain how to use it.
Note: this is obviously unfinished. Check back later.
== Your first 3D bridge ==
For the purposes of this tutorial, I'll assume you are familiar with Doom editing and your level editor, and with the use of middle textures. You will need to use an editor that either has support for Eternity features (e.g. [[Doom wiki:Doom Builder|Doom Builder]]) or an editor that allows you to manually change the flags value for linedefs.
First, open up a new Doom 2 level for editing, and create a simple room with a pit running through it.
(I added cool, ultra-hurty lava to mine)
Now you need to create the structure the player will eventually be able to cross to get to safety. Again, I assume you know how to create two sided lines and place and align middle textures in them.
If you run this map, the player obviously falls down through your middle texture bridge. So we perform the final step: setting the lindef flag. The flag is 1024 (0x400 in HEX), so if you are editing the flags yourself, just add 1024 to your flag value; if you are using Doom Builder, and you don't see the lindef flag called "3dMidTex", press F2 and make sure you are editing your map as an Eternity map. Once your flags are set for your linedefs, run the map, and the player should now be able to cross the bridge as if the middle textures were solid objects.
== Some things to watch out for ==
=== Holes in your structures ===
Each structure needs to be closed enough to support the objects running over it. That is, the lines need to be close enough together so that an object can't slip through the gaps.
=== Clipping ===
It is important to note that clipping is determined by the '''front side''' offset and texture height, so if both sides of the 3DMidTex aren't aligned to be in the same spot or the textures are different heights, the solid part of the line will be where the front side texture is. 3DMidTex lines will only block objects and not bullets. So a 3DMidTex will stop a rocket but not a shotgun blast.
Also, please note that the entire height of the texture is considered solid regardless of the transparency of the texture. So the player can't pass through a 64x32 unit hole in a texture.
=== Monsters crossing ===
Because of the way monster AI in Doom works, it can be VERY tricky to get monsters to cross a 3D bridge. When a monster contacts a line in a map with a drop that's too far for it, the monster will not cross that line, because the engine assumes there is nothing on the other side for the monster to step on. Here are some tips to help you overcome this.
When a monster comes in contact with a 3DMidTex line that it can stand on (i.e., is not under or high above) the monster will ignore all lines with big drop-offs that it would otherwise not cross. The easiest way is to ensure that the monster will not cross any big dropoff lines before stepping on a 3DMidTex line. One way to do this is to create stair steps on either side of your bridge that drop 16 units down, and place a 3DMidTex line inside the niche you just created.
Now monsters are much more likely to cross your bridge. Another thing to note is that monsters have no idea which line is the edge of the 3D bridge, and will hang off the edges. They won't fall down, so don't worry, but it just looks bad. One remedy is to make the outer edges monster impassible. When the 3DMidTex flag and this are used in conjunction, monsters will be blocked when they try to cross on top of that 3DMidTex; however, they won't be blocked by going under it.
Now that you've mastered the art of the 3D bridge, you should give [[3DMidTex advanced topics]] a try.
==See also==
*[[3DMidTex advanced topics]]
*[[Linked portal]] (see also "Edge portals" and "Attached portals" for solid-looking 3D bridges).

Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)