Tutorials

Iris Door



Ever wanted to make a door that opened and closed like an iris? Well now you can. It's a simple but long process. Do not attempt this tutorial if you do not yet understand how to make doors open using triggers.

Lets start off by using the arch tool. If you don't know how to use it yet then refer to THIS tutorial.

Create your arch to start off. It does not matter how many sides it has as long as the "Arc" is set to 360 degrees.

Then create a cylinder that will fit inside the arch. Make sure the cylinder is not wider than the arch and that it has as many sides as the arch. Once created fit it inside the arch.

Then use the "Clip Tool" and cut the cylinder going from each corner, through the center, to the opposite corner of the cylinder. Do this for all the corners.

Once done make a brush that is covered on all faces with the "origin" texture. Take this brush and center it at each corner of the cylinder. You will have to clone the brush several times.

This is how the door should look like at this point.

news post image

Now select one of the triangles cut from the cylinder and an adjacent origin brush using Ctrl+left click.

news post image

Once both are selected click on "toEntity" and select the class of the new entity as a "func_door_rotating". Do this for all the triangles and origin brushes. (All the triangles should be paired up with one origin brush.)

Now go to the "Flags" tab for the entity properties of each triangle.
If the door is sitting vertically like a regular door then the "X-axis" box should be checked.

This next part is very important. Look at the 2-D view in hammer that shows the front of your iris-door. If each triangle is paired up with the origin brush to the right of it then the "Reverse Dir" box should be checked. If each triangle is paired up with the origin brush to the left of it then leave the box unchecked.

Now click on the "Class Info" tab in the entitie's properties, and scroll down to "Distance". This option should be set to 90. This specifies how many degrees the door will rotate.

Once this is done for all the "func_door_rotating" entities you need to make a trigger that will open and close the iris-door. This can be a "func_button" if you like. You need to have it trigger each of the triangles at the same time. To do this simply give all the "func_door_rotating" entities the same Name.

Once this is done, compile your map to see if you have succesfully created your iris-door.

This is how the door should look closed.

news post image

And this is how it should look when opening.

news post image

Example Map

Spartan 34

View comments ( 48 )

Back to top