window texture help please =(

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

window texture help please =(

Post by Splaetos »

ok im no photoshop expert... I jsut learn new stuff it can do as I go along =(

Im tryign to make a stained glass window texture... Ive looked through lots of threads, and i just get more confused =)

first, I made the base layer the color I want the glass to be.

next, I made a new layer, and added a layer mask/reveal all.

so now I have two layers, one that has a mask which is mostly black and some blurring/glassfiltering done to highlights of gray.

But now I am unclear as to how to proceed... The mask has to be in an apha channel? right? I dont thoroughly understand alpha channels... should I just merge my two layers, and then pick one color to duplicate and make an alpha out of it? do I apply the mask to my previous colored layer?

sorry if these are obvious, but to me its very confusing....

edit-

ok... my mask was selected, and i created a channel from that.... this is still confusing... lemme see what happens tho...
When I am king, you will be first against the wall~
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Make your window normally the way you want it . This is for photoshop not paintshop pro . When you have your picture use the icon on the channels toolbox

Image

when the alpha channels is selected what ever is black is filtered out and what ever is white is transparent . Any thing gray will be translucent or semi transparent depending on what shade of grey you use . To see your picture and the alpha channel at the same time use the eye icon box on the other channels but make sure you have your alpha channel selected when you are editing it .
Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

thanks, wacko jsut sent me another method as well...

I had the alpha channel... but the problem was the how to keep that saved as a TGA, since it doesnt save more then just the three(4) main channels right?
When I am king, you will be first against the wall~
Image
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post by agentmad007 »

If you save it in Tga 32 bit with photoshop your alpha channel will be include.
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

oh lol~

thanks,

now that i tihnk on it, I may have read that in a post somewhere... gyess it jsut never stuck in my head?
When I am king, you will be first against the wall~
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

shader

Post by tltrude »

The shader for your glass texture is important too. Here is one I did.

Code: Select all

textures/custom/tglassyellow
{
	qer_editorimage textures/custom/tglassyellow.tga
	qer_keyword window
	qer_keyword glass
	qer_trans .95
	surfaceparm glass
	cull none
	{
		map textures/mohcommon/environ_puddle.tga
		tcgen environment
		alphagen const .4
		blendFunc blend
	}
	{
		map textures/custom/tglassyellow.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
	}
	{
		map $lightmap
		rgbGen Identity
		blendFunc GL_DST_COLOR GL_ZERO
	}
}
That "environ_puddle.tga" is the reflection layer, and there are different ones you can use.
Tom Trude,

Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post by Splaetos »

yea i already stole that from another thread tom, been using it to test =)
When I am king, you will be first against the wall~
Image
Post Reply