Author Topic: Noob question, creating decals  (Read 2810 times)

vputz

  • Posts: 11
  • Turrets: +0/-0
Noob question, creating decals
« on: February 26, 2007, 08:11:05 pm »
I've got a fairly rough surface that i'd like to try projecting decals on.  I understand I'm supposed to make a _decal entity out of a patch mesh, cover it in the texture, and target it toward an info_null on the other side of my wall.  So far so good...

Only I can't create the _decal entity directly.  If I create a patch mesh, it comes out as a worldspawn object.  If I select it (and only it) and bring up the key/value pair list and change "classname" to "_decal", it changes the classname of EVERY worldspawn entity (all my walls and brushes!).  This is very annoying!

Since it's a rough surface, just creating a patch mesh near the wall is problematic.  Any good ideas?  What horribly obvious fact am I missing?

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Noob question, creating decals
« Reply #1 on: February 26, 2007, 09:04:05 pm »
shader. put it on a brush which is on an equal plane

Code: [Select]

textures/MAPNAME/TEXTURENAME
{
surfaceparm noimpact
surfaceparm nonsolid
surfaceparm trans
polygonoffset //offsets one luxel? so that it appears in front of the texture plane
{
map textures/MAPNAME/TEXTURENAME.jpg
blendfunc filter // Filters out pure white from the .jpg
}
}
I’m busy. I’ll ignore you later.

gareth

  • Posts: 710
  • Turrets: +38/-89
Noob question, creating decals
« Reply #2 on: February 26, 2007, 09:45:05 pm »
Quote from: "Survivor"
shader. put it on a brush which is on an equal plane


read the post before replying...

you maybe need to make the patches into a func_group then change that to _decal

vputz

  • Posts: 11
  • Turrets: +0/-0
Noob question, creating decals
« Reply #3 on: February 26, 2007, 09:53:46 pm »
Thanks, both--

Survivor--for the flat areas, I do use that process (patch mesh with decal shader).  For the really rough areas I wanted to try the projection.

Gareth--sounds good; I'll give it a go to see if it works.

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Noob question, creating decals
« Reply #4 on: February 26, 2007, 09:54:50 pm »
Quote from: "gareth"
Quote from: "Survivor"
shader. put it on a brush which is on an equal plane


read the post before replying...

you maybe need to make the patches into a func_group then change that to _decal


Ah yes, it's late and i'm still a bit tired. Sorry. As he ^^^ said
I’m busy. I’ll ignore you later.