From Eternity Wiki
Jump to navigation
Jump to search
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
fill this in!
[[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. 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. == 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. [[Image:3dmidtex_tut1.jpg]] (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. [[Image:3dmidtex_tut2.jpg]] 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. [[Image:3dmidtex_tut3.jpg]] === 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. [[Image:3dmidtex_tut4.jpg]] 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). [[Category:Tutorials]]
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
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!
(opens in new window)
Retrieved from "
Not logged in
Help about MediaWiki
What links here
About Eternity Wiki