Iris Doorways
--------------------------------------------------------------------------------
 
Tomasz 'Millennium' Jachimczak
tomasz@planetunreal.com

Forward:
This Tutorial was Requested by Lance (lance@houston.crosswinds.net). The question was how to create Iris Doors. Well, here is the tutorial... :) 


Abstract:
Iris Doorways are actually quite easy to create, but take some time and effort to make nicely (Attension to detail and exact measures are VITAL!). This tutorial will however explain the trick to it... It is a long tutorial with heaps of screenshots as it has to be done PERFECTLY otherwise it will look HOPELESS! 

Assumptions:
I have placed this tutorial in the "Advanced" section because I assume that you know how to create a mover (and Make it work) and I am also assuming that you have a pretty good understanding of UnrealED. 

Tutorial:
Introduction:
I will create a simple room, then build a wall to "cut" it in half. This will then allow a doorway to be made. The doorway will be edited, then finally the "Iris Door" will be placed into the doorway and made to move... :) 

The room:
I will only say that the room I have created this door in is 256x512x512. The textures are up to you, although with doors like this one, a futuristic theme certainly adds atmosphere. The wall placed to "cut" the room in half is 32 thick (Note this as, it !!HAS!! to be otherwise the doorway will look horrible). 

Creating the Doorway:
 
The hole for the door is simply a "Cylinder" on it's side, (Height 32, Radius 128 - This will make it "touch" the floor and ceiling.) Make sure that the hole sits either on the floor and ceiling, or has a "ledge" within the wall for it to "touch". (This is a little hard to explain, but I think most of you get the drift.) 


The doorway:
I think a little explaining is needed here, so I will give away trade secrets and tell you guys how these doors work. It is simply made up of multiple movers that respond to one trigger on each side of the door. Now for the next step, you will need to create the same cylinder (only this time make it 16 tall - which should make it narrower then the doorway you created earlier) either off to the side (or best of all - just outside your level). When you have created the Cylinder (textures are not important at this point) move on to the next phase... 

"Cutting" a segment:
 
Now that we have our doorway cut out, we need to create some movers to fill it back up again... Create a "Cube" brush (Make it about 256x256 but make it 8 wide) and place it over the "fake" doorway you created off to the side. Now align it so that you get a quarter of the doorway and "intersect" it. 
 Now place this new brush NEAR the doorway, but make sure it floats freely (ie - make sure that it doesn't touch the floor, walls or ceiling) and "add" it to the level. You should see a little segment of your doorway there now. Make sure that the correct texture (scaling, alignment ect) is applied to the segment, and finally "intersect" the segment (Once again with a brush that is larger than the whole segment to ensure it is done correctly (This is why you had to make sure the segment doesn't touch the walls, floor or ceiling ect earlier). When you have your new brush, move on. 


Creating a mover:
Now that you have a nice little segment of the doorway, place it inside the doorway (Inside the actual level) and align it to sit just touching the walls. Make sure the innermost point is in the middle of your doorway. 

 This image is the "Side On" view of the segment being placed. 
When you have placed it just right, click the mover button. Don't change any setting yet, but rotate the ORIGINAL brush 90 degrees, and move it so that one side touches the mover you just created and the other sides line up with the walls around it. 

 When you have done this, create another mover and repeat this process until you have all four quarters of the door made into movers. 


Cutting another segment:
When all four Segments are in place, go back to the "Cylinder" that you created off to the side, and "Cut" another "Segment" from it, but this time make it at a 45 degree angle to the first segment that you made. (If you are not sure what the heck I mean, Have a close look at the Images supplied) When you have cut another quarter of the doorway, 

 repeat the process above and create the second layer of movers in the doorway. These should be placed to just touch the original set, but not sit inside them (Once again, look closely at the images). When you have placed all four - once again, 90 degrees rotated each time - move on to the next section. 



Setting the movers:
When you have the eight mover placed nicely in the doorway, select ALL of them at the same time, and bring up the advanced properties (Right Click - but you should already know that) and select the "Events" section. Name them to something like "IrisDoor". 

Then select the "Object" section and change the "Initial State" from "Bump Open Timed" to "Trigger Open Timed". 

You should also change the time that your door takes to open (After all this work, you want people to admire it - don't you?). This is done in the "Mover" Section and the entry to change is (Suprisingly... :) "MoveTime" Change it to about 5. You can add sounds to these if you like (Check out the Intermediate Tutorials - under Doors and Movers - if you aren't sure how), but we still need to add in a trigger. Select "Trigger" from the classes menu (Nothing special - just a plain old trigger) and place one in front of your door (The 3D view is probably the easiest). Select the trigger (Only the trigger) and go to the "Events" section and change the "Event" entry to "IrisDoor". Don't Forget to place one on each side of the doorway... 


Setting the Trigger:
 
Select "Trigger" from the classes menu (Nothing special - just a plain old trigger) and place one in front of your door (The 3D view is probably the easiest). Select the trigger (Only the trigger) and go to the "Events" section and change the "Event" entry to "IrisDoor". Don't Forget to place one on each side of the doorway... 


Last but not least:
Now that you have done all the hard work, it is simply a matter of creating a cube (512x512 and 16 Wide) and placing it directly in the middle of you doorway and "Subracting" it to allow your segments a place to move to... Rebuild, and enjoy... 

