Overlays

Tutorial collection, comprehensive listings on main site.

Overlays

Postby Tutorial on Sun Mar 06, 2005 11:51 pm

This tutorial will explain the uses of overlays in Hammer 4.0 and the differences between overlays and decals.

Overlays are much like decals, in that they produce graphics that lay on top of brushes. They can range from rugs to graffiti to blood stains. Overlays, however, are more flexible and customizable than decals.

Firstly, you want to choose a texture that will be the overlay you are making. I recommend searching for 'overlays' or 'decals' in the texture browser. For this tutorial I'll be using 'overlays/rug001a'.

Once you've found a texture you want, click the overlay button in the toolbar, or press Shift+O. Then click where you want the overlay in the 3D view. You should get something like this:

Image


Use the red box in the middle of the overlay to select it.

The first thing you'll notice is that only part of what was shown in the texture browser shows up in Hammer. This makes stuff like graffiti look especially impressive. So play around and see what shows up in Hammer when placing an overlay.

The second thing to notice is that you can resize the overlay just like a regular brush. Go back to the pointer tool and resize the overlay in a 2D view to do this.

Image

You can also distort the overlay. Go back to the overlay tool and click and drag the little white boxes in the 3D view to distort the overlay, just like in vertex manipulation.

Image

If you want to change the texture of the overlay, press Alt+Enter to go into the properties of the overlay, and browse for a new texture in the 'Material' keyvalue.

Other keyvalues to play about with are the U Start, U End, V Start and V End values. Increasing these values will make the texture tile in the same amount of space. Here I've changed the U End and V End values to 2. The overlay now has 4 of the rug textures in it.

Image

Also, increasing the Start values higher than the End values will flip the texture in the overlay.

Another thing is the keyvalue 'Render Order'. This will enable you to overlap overlays and choose which ones to be on top.

You can overlap up to 4 overlays. Here I've put a blood overlay overlapping the rug over lay, and given it a Render Order of 1. In game the blood will be splattered over the rug.

Image

Overlays will also keep their form over displaced terrian, another useful thing to keep in mind.

Image

AcX
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby UberSpeed on Mon Sep 26, 2005 3:56 pm

Overlays > Decals
Image
User avatar
UberSpeed
1337 p0st3r
1337 p0st3r
 
Joined: Sun Sep 04, 2005 6:41 pm
Location: England

Postby Sauce on Fri Dec 09, 2005 1:20 am

some of my overlays dont work?!? WHY???
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby Rick_D on Fri Dec 09, 2005 1:46 am

Because you touch yourself at night.



(and because you don't explain your problem properly)
Rick_D
May Contain Skills
May Contain Skills
 
Joined: Wed Jul 13, 2005 1:41 pm
Location: stockholm

Postby Sauce on Fri Dec 09, 2005 4:46 am

ok sorry for not explaining but i didnt know exactly what the problem was... My overlays show up fine in the editor but when i run the game all that shows up is the alpha layers. eg. i just get the black outline of the decal instead of the actual thing... know what i mean? i'll post some images on imageshack:

What it should look like:
Image

How it appears in-game:
Image

(Note that the one on the left also gets flipped somehow)
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby BeefnCheez on Fri Dec 09, 2005 5:42 am

Search can really be your friend:

http://www.interlopers.net/forum/viewto ... ight=black

http://www.interlopers.net/forum/viewto ... ight=black

http://www.interlopers.net/forum/viewto ... ight=black

http://www.interlopers.net/forum/viewto ... ight=black

http://www.interlopers.net/forum/viewto ... ight=black

zombie@computer wrote:its a bug, either use the beta sdk or wait untill valve fixes this error like the other 6000 they currently have in their software
User avatar
BeefnCheez
Been Here A While
Been Here A While
 
Joined: Wed Aug 03, 2005 10:04 pm
Location: Hungry?

Postby Sauce on Sun Dec 11, 2005 9:16 am

OK, I fixed it now, I didn't have any lights in my map. I did to begin with but that's before Hammer crashed and I went to sleep. Moral: Always back-up your work. :wink:
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby cramoisi21 on Thu Feb 02, 2006 9:01 pm

Search can really be your friend:


So can not being a complete a$$ about posting a couple links to help someone...
-=If you believe everything you read; don't read!=-
cramoisi21
Just Joined
Just Joined
 
Joined: Thu Feb 02, 2006 9:00 pm

Postby nitro_tater on Thu Aug 24, 2006 8:31 pm

But at least he helped him and made a simple point.
Image
nitro_tater
Dumpling
Dumpling
 
Joined: Mon Aug 21, 2006 7:13 pm

Postby Haxel on Thu Aug 24, 2006 9:07 pm

Never test stuff in your map without any lights. Nothing works without lights
User avatar
Haxel
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Fri Oct 08, 2004 4:36 pm
Location: UK

Return to Tutorials

Who is online

Users browsing this forum: No registered users