Page 1 of 1

translucent texture

Posted: Wed May 12, 2004 11:42 pm
by agentmad007
hi ,

i took a big pic to explain hehe better than words :p

Image

1) this the glas_rad.tga
2)glas.tga

1 et 2 are from a custom and basic glas texture

3) this the texture i want to make translucent like a window with the symbol inside

4) this the the glas_rad.tga resized and i incrusted inside the symbol i want (called it glas_rad_room.tga)

5)the glas.tga resized with the symbol (called it glas_room.tga)

shader........i took it from the glas.shader

Code: Select all

textures/test/mytest
{
	qer_editorimage textures/test/glas_rad_room.tga
	qer_keyword window
	qer_keyword glass
	qer_trans .4
	surfaceparm glass
	{
		map textures/mohcommon/envnormndy_day.tga
		tcgen environment
		alphagen const .2
		blendFunc blend
	}
	{
		map textures/test/glas_room.tga
		depthWrite
		alphaFunc GE128
	nextbundle
		map $lightmap
	}
}
in radiant i setted the 5 others brush side with no_draw texture and applied my custom texture in one face only like i do with the custom glas texture .......

But in game nothing is translucent and in other side where the no_draw texture stand i see nothing like there were a hole !

thanks if someone as a solution,

i even tried the to select translucent via "s"

alpha channel

Posted: Wed May 12, 2004 11:52 pm
by tltrude
A TGA image has 4 channels: red, green, blue, and alpha. The alpha channel is the mask (black and white). Send your image to me if you don't have photoshop or something that works with the alpha channel.