Who can help with shaders for this 2 alpha textures


(Kic) #1

Who can help me with shaders for this 2 alpha textures.
I have custom textures for my new map Mystery of jungle, but I try copy some alpha shaders for this 2 alpha textures, but don’t work, there are in format .jpg.
( They must be in format .tga???)
please help


it’s ok I make them RGB-alpha, 256x256 tga
but donť work properly

here is a shader

textures/alpha/zaun_alpha
{
cull disable
nomipmaps
nopicmip
surfaceparm nomarks
surfaceparm alphashadow
surfaceparm metalsteps
surfaceparm pointlight
surfaceparm trans
implicitMask -
}

// This is more or less similiar to clipmissile
// The other five faces of the brush should be clipmissle
textures/alpha/zaun_alpha_clipmissle
{
qer_trans 0.85
qer_editorimage textures/alpha/zaun_alpha.tga
cull disable
nomipmaps
nopicmip

surfaceparm clipmissile
surfaceparm nomarks
surfaceparm alphashadow
surfaceparm playerclip
surfaceparm metalsteps
surfaceparm pointlight
surfaceparm trans

implicitMask textures/alpha/zaun_alpha.tga

}


(kamikazee) #2

Yes, you actually need to combine them into 1 tga. (Or that’s at least one way to make it work)

The coloured image is just inserted as you would do with any other image, the b/w would need to be placed in an alpha channel. Then you’d save the new image as a 32bit (RGBA) TGA.

Now all we still need to know is how you want to do this. (Image editor, that is.)


(Kic) #3

I use Gimp


(CrazyGuy) #4

Doesn’t ufo_2 have an fence texture.


(leifhv) #5

The Gimp will save in TGA format if you give the file a ‘tga’ extension…or you can manually save as a TGA in the ‘Save as…’ dialog.

Google for ‘Gimp alpha channel’ and you’ll finds lots of tutorials for adding alpha channels to images.


(sodsm live) #6

an easy way to do it in the gimp:

open both images in the gimp

on alpha image(the black and white) right click>edit>copy

on color image right click>layer>mask>add layer mask>white(full opacity)>OK
right click(the mask is still active)>edit>paste
right click>layer> anchor layer
right click>layer>mask>apply layer mask

it’s done

to save as .tga, use save as and just change the extension to .tga and the gimp will run the tga save dialog.

you need to resize this image to a power of 2 to use this in ET/wolf. something like 256x256[edit]now that i think about it 128x128 should work since it will be fairly small[/edit] would be good for this.

it should now work with a standard transparent shader applied to it.