PDA

View Full Version : .shader files



peripheralvision
19-11-2008, 22:39
Ok. As many of you know, I'm a noob in the mapping world, but in the process of "un-noobing" myself, aka attempting to learn how to map. I've figured out lots of stuff, but my .shader files NEVER work. I'm trying to create a decal shader, one that can be placed over another brush and will automatically overlap it (no z-axis fighting). So I've followed about 6 guides.. to no avail. I create the .shader file named after my map and place it in the correct directory in my .pk3.. but only the texture appears. It isnt a shader. The name of my picture is biohaz.jpg and the .shader file for it is:



textures/base1v1/biohaz
{
qer_editorimage textures/base1v1/biohaz
polygonOffset
q3map_nolightmap
q3map_onlyvertexlighting
{
map textures/base1v1/biohaz
blendFunc GL_ONE GL_ONE
}
}


Can anyone tell me why its not appearing? Any help would be appreciated.

PS: It might have something to do with the fact that it's a .jpg and not a .tga but I'm not sure.

Teelos
19-11-2008, 22:42
Decals should be a TGA file with an alpha channel.

http://www.map-craft.com/modules.php?name=DLtoTUT&op=TMCgetit&lid=288

Also have you added your shader file to the shaderlist.txt?

MaceCrusherMadunusus
19-11-2008, 22:52
Decals should be a TGA file with an alpha channel.

http://www.map-craft.com/modules.php?name=DLtoTUT&op=TMCgetit&lid=288

Also have you added your shader file to the shaderlist.txt?

What he said, but decals can also be a PNG file, without an alpha channel (auto-saved in it)

peripheralvision
19-11-2008, 22:53
thanks. But what happens if I dont have photoshop o.0.. I hate Adobe lulz so I use paint.NET and there isnt a "Channel" tool.. so does anyone know the equivalent of the channel tool?

Teelos
19-11-2008, 23:37
I believe GIMP can create them, Although im not 100% sure as I have never used it.

peripheralvision
19-11-2008, 23:39
GIMP? what is? lulz im clueless about this stuff sorry

Frost
20-11-2008, 00:46
It's a free image editing program similar to Photoshop, just not as powerful. Google it :p

Luk
20-11-2008, 16:04
Gimp is excellent , i think even better then Photoshop - all textures which i have made i did with GiMp.

DarthNormaN
20-11-2008, 16:30
just to make one thing clear.. GIMP is NOT better than Photoshop.. hell no!

peripheralvision
20-11-2008, 17:10
well i found it.. but im in school so no downloading lol.. but ill check it out when i get home..

Question: does my shader file look ok? is there anything wrong with it or will it work as long as i get the alpha layer thingy right?

Yzmo
20-11-2008, 18:15
just to make one thing clear.. GIMP is NOT better than Photoshop.. hell no!No, it's not.. It's not as bad some ppl say though.. Just all menus are reordered so PS ppl think it cant do a certain thing.. just cause its in a different menu/has a different name..

GIMPs biggest con atm is that it doesnt support the kind of Layer Effects PS has..

peripheralvision
24-11-2008, 00:10
Luk you said u know how to create an alpha channel with GIMP right? I have it downloaded etc, and I cant get the alpha channel to work the way I need it to. Could you guide me through it please?

Yzmo
24-11-2008, 17:15
Rightclick the layer you want to add the alpha channel to and click "Add Alpha Channel" (or go Layer>Transparency>Add Alpha Channel)

Note the command "Color to Alpha".. It can do something Photoshop cant :D


OR.. if you want to be able to paint where a layer is transparent and where not.. Click "Add layer mask" instead..

peripheralvision
24-11-2008, 23:39
ok im using the wand tool to select based on color.. do i select the part i want to be visible or the part i want to be transparent?