• Register
Post tutorial Report RSS Hammer Beginners Tutorial Part 2

This tutorial is an addition to Beginners Tutorial Part 1. I suggest you follow that one first before doing this one. In this tutorial we will be covering, doors, windows, and skyboxes.

Posted by on - Basic Mapping/Technical

I am writing another tutorial to expand on the first tutorial I made about creating a room.

Ok so in this tutorial we will be giving our room:

  • A Window
  • A Door
  • and a skybox

Ok lets get started then. Were going to add the door first. Using the Block tool User Posted Image drag a brush that's 56 units wide 4 units thick and 112 units in height.

Your brush should look like this:

User Posted Image

With your brush selected, click the Toggle Texture Application tool User Posted Image

Click "Browse..." and in the filter type in "dev/dev_measuredoor01"

You will get an orange door texture this is so we can line up our brush and make the correct cuts to have a nice frame.

Click "Apply"

You might notice your texture is not aligned with the brush properly, this is an easy fix. Click the Toggle Texture Application tool User Posted Image again and just play around with the "Texture Shift" part of it until you got it right.

User Posted Image

Ok now we have the dev texture lined up we can start cutting out the frame. Select your door brush and select the Clipping tool User Posted Image

User Posted Image

Make sure your grid is on the smallest grip possible. Adjust it by pressing "[" or "]"

Now make a cut 4 units into the frame like seen above. Your brush has to be all white. If it has any red it will cut the piece off rather then just making a cut into it. For example see below.

User Posted Image

to get rid of that read press Shift+X until its gone and then press enter to make the cut.

Repeat this step on the other side of the brush and in the side view make a cut 4 units down from the top. Now we have a door frame. Using the Selection tool User Posted Image select the brush in the middle and delete it.

You should now have a door frame that looks like this:

User Posted Image

Select a wall on the room, you will notice the entire room gets selected we don't want that. Press ctrl+U (control+U) to ungroup it and now you should be able to select individual walls.

Ok now we need to make the cut on the wall for the door, using the Selection tool User Posted Image

Select the wall the frame is on, using the frame as a guideline make 2 cuts where the inside of the frame would be (See example below)

User Posted Image

ok now is the side view make a cut beside the cut you made for the frame (see below)

User Posted Image

Now, using the Selection tool User Posted Image select the middle brush again and delete it. Now you have a doorway.

User Posted Image

Select all three parts of your door frame. Hold shift and drag a new one and put on the other side of the wall.

User Posted Image

Make the outsides of each frame skinnier so that the door will fit properly. (See below for example)

User Posted Image

Connect the insides on the 2 frames so that there isn't a gap (See above)

Ok now we need to change the texture on this door. Select all parts of the door frames and click the Toggle Texture Application tool User Posted Image Click "Browse..." and you should in the filter search "door" find the door you want to use and double click it. Click "Apply" and your texture will now be on your frame. The texture I used was metal/metaldoor008a

Ok now we need a door to go in the frame. Using the Block tool User Posted Image drag a brush that's 48 units wide 4 units thick and 112 units in height. This should fit in the door frame perfectly. click the Toggle Texture Application tool User Posted Image and use the texture shift settings to line it up right. (see below for both examples)

User Posted Image

Ok now we need to make this door open able. So with your door selected go to "Tools>Tie to entity"

User Posted Image

the window above will appear (For some reason it is transparent when I take a SS but in editor it isn't)

Where it says "Class" change that to a "func_door_rotating" and click "Apply"

You will now get a blue sphere on your door and that is what we just created it allows the door to open.

User Posted Image

The blue sphere we created acts as a hinge. Wherever we put that sphere is where the door will rotate from, so n this case we want to put it on the opposite side on the handle. That will look like the picture below.

User Posted Image

Ok if we compiled right now our door would open and everything would work so lets move on to the window.

Ok using the using the Block tool User Posted Image drag a brush to whatever size you want your window to be. For my window I used 48 width 8 thickness and 40 height.

Using the Clipping tool User Posted Image cut a square out of the middle by making cuts 4 units away from each side.

User Posted Image

ok now select the piece in the middle and delete it.

Now we need to select the wall behind it and cut out the window opening like we did with the door

User Posted Image

Ok now delete the middle and you have a untextured window.

So we need to give this a texture. Select the Toggle Texture Application tool User Posted Image and click "Browse..." search wood in the filter and find one you like. (you can use any texture you want, go ahead and search concrete or tile and see what you can get looking good on your window)

Ok now we got a textured window. And we need to add a skybox.

Make a big box that goes over your whole map.

My box was 1200x1200x1200

Press ctrl+H to hollow, set it to -4 again.

Select the Toggle Texture Application tool User Posted Image and click "Browse..."

In the filter type in "tools/toolsskybox" apply this to the box and it should now be tiles blue texture.

User Posted Image

Compile map the same way we did it in part 1 and go ahead and run it. Thanks for reading this tutorial.

Post comment Comments
razorb
razorb

nice to see people doing these tutorials :) good job

Reply Good karma Bad karma+2 votes
holloweddarkness
holloweddarkness

i want to see optimization of a complex map. there isnt enough about it out there

Reply Good karma Bad karma+2 votes
Tyrantar
Tyrantar

See here: Student.ru.nl

Reply Good karma Bad karma+2 votes
Mrksmt9
Mrksmt9

Brilliant, look forward to your lighting and optimization tutorial

Reply Good karma Bad karma+2 votes
BeginnersMod Author
BeginnersMod

Ya I def could do lighting next

Reply Good karma+2 votes
General_Atrox
General_Atrox

Great Stuff... the more tutorials the more great mods we can get out there ;)

Reply Good karma Bad karma+3 votes
canned
canned

I have always read that using the clipping tool is a bad idea, and in general, a sloppy way to map. It makes a mess out of simple geometry. I recommend just using simple brushes to make the doorway. Many experienced mappers believe that using simple brushes in addition to the Vertex Manipulation tool is the preferable method to using the Clipping tool.

Reply Good karma Bad karma+2 votes
IZaNaGI
IZaNaGI

Depends on the mappers ability's. Skilled level designers that know how the engine works (optimisation wise) are able to use the clipping tool without a problem. It only becomes an issue if somebody who doesn't know anything about visleaves and the such, start clipping absolutely everything and generally not func_detailing odd shaped geometry.

Nice tutorials mate, should help a lot of people out!

Reply Good karma Bad karma+2 votes
slicksd
slicksd

the door function does not work. help?

Reply Good karma Bad karma+2 votes
Dippeggs
Dippeggs

I too can't get the door to work

Reply Good karma Bad karma+2 votes
westsidazrhidaz
westsidazrhidaz

Developer.valvesoftware.com

you have to toggle show helpers to see the origin, then you may have to change the axis in flags section, or reverse dir may do the trick as well.

Reply Good karma Bad karma+2 votes
Stevic
Stevic

Hi super BeginnersMod!
A rather short and simple tutorial.
I feel like that I've just dipped my big toe in the ocean, the first simple step to swimming with whales.
Thanks!

Reply Good karma Bad karma+2 votes
Aebonka
Aebonka

I found the first part of this tutorial direct and informative, but I'm feeling like I have to guess what to do in this second part, especially when it says "Make the outsides of each frame skinnier so that the door will fit properly. (See below for example)"
and then the image and

"Connect the insides on the 2 frames so that there isn't a gap (See above)"

How do I connect these? Am I using the cutting tool for the first part on the side view? I'm not getting the same screenshots but the connect part was unexplained so I can't progress any further :[

Reply Good karma Bad karma+3 votes
ZaneLear
ZaneLear

You need to work on your tuts some more man, this is kinda hard to understand, like how do I know where to cut and what windows ur in, like you should redo your guide/guides.

I like how you're trying to help out and etc but if I can't understand the door section then I will not understand the rest, I had to guess on how in your last guide to fix my textures since you said them either wrong and or never mentioned about the "Fit" button in some parts.

Reply Good karma Bad karma+2 votes
orex
orex

I like this tutorial alot it helped me very much but here is something i figured out the hard way. For the door when you are making it a func_door_rotating go to flags and select open on use/touch or the door will not work.

Reply Good karma Bad karma+2 votes
Johny11fingers
Johny11fingers

Nice tutorial but i used the carve function to create a door frame. It's easier for me.

Reply Good karma Bad karma+2 votes
splater116
splater116

when ever i create the door (the first step) and hit enter it just disapperes.... Help please? :)

Reply Good karma Bad karma+2 votes
JK4ever
JK4ever

Argh, now i did make my door open able :) by using "New func_door + USE rules" or "use open" in "flags". doesn't matter wich one thats doing it, but it works with both on :)

Reply Good karma Bad karma+3 votes
felixninja
felixninja

my door didn't work! nooooo!

Reply Good karma Bad karma+2 votes
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: