Please or Register to create posts and topics.

Custom Overlay???

Page 1 of 2Next

I have two requests.

1) Can someone tell me how to create a custom overlay???
2) If someone does, can you please explain it well, I don't think I'm too good with the stuff that I've looked up for this. topic.

Also, I should mention*, I have tried, but it ended up black in the game. Purple and black in the hammer editor.

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:

First, you will need an application that can save images with transparency. If you have photoshop, great. Otherwise, try GIMP. It's free, and is very powerful.

Link to GIMP:
http://www.gimp.org/

Next, open VTFedit and then open your image. Form there, save it as a VTF file in the folder C:/program files (sometimes 'program files (86)')/steam/steamapps/common/Portal 2/portal2/materials/(custom folder name).

Finally, in VTFedit, click File>New and then you should see some text area. replace whatever's in there with
"LightmappedGeneric"

Code: Select all
{
   "$basetexture" "[Folder][overlayname]"
   "$decal" 1
   "$decalscale" 0.25
   "$translucent" 1
}

(I probably screwed something up in that code because I copy/pasted that from a Counter-Strike forum. It works for me, though.)

Under $basetexture, change [folder] to the folder you created and [overlayname] to the name of the .VTF. Save that as a .VMT in the same folder as your texture and you should be good to go! Be sure to Pack your texture into the BSP before releasing the map, though.

EDIT: Oops, Need to put a link to VTFedit. http://nemesis.thewavelength.net/index.php?c=178

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

If I have transparency in my picture, should it be coming up black (the transparent parts) in VTFedit?

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:
JoeyGuy917 wrote:
If I have transparency in my picture, should it be coming up black (the transparent parts) in VTFedit?

yep

Okay, now in hammer it shows up white, but in game it is still black. Any help?

Edit: I should say, in the hammer 3d view it shows up white. In the texture selection window it has the actual texture, and in game it is still black.

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:

What about the LightMap generic? Aren't you meant to add that to the VMT too?

How/where would I add it into the vmt?

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:
JoeyGuy917 wrote:
How/where would I add it into the vmt?

before the {

Should this be what I have in the VMF

Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "[CustomFolder][Pig]"
   "$decal" 1
   "$decalscale" 0.25
   "$translucent" 1
}

Should I have the quotes around "LightmappedGeneric? Or should I have something else there?

This... sentence... is... false.... dontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutdontthinkaboutit
MLIA
Thanks in advance :thumbup:

The problem is probably the fact I copied a decal tutorial from a Counter Strike forum. Maybe, because why not, set $translucent to 0 instead of 1

Image

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb
Page 1 of 2Next