translucent texture

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

translucent texture

Post 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"
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

alpha channel

Post 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.
Tom Trude,

Image
Post Reply