light shader transition problem


(huah) #1

Hi

So here is what im trying to do. Im trying to make two different light shaders fade fluidly into each other, this is how it looks like in Radiant:

http://img685.imageshack.us/i/aaagq.jpg/

these are the textures I use:

http://img691.imageshack.us/i/bbbg.jpg/

heres the shader I use for all three textures:

textures/zz/cyan
{
qer_editorimage textures/zz/cyan.tga
q3map_lightimage textures/zz/cyan.tga
surfaceparm nodamage
surfaceparm nomarks
surfaceparm nonsolid
surfaceparm trans
qer_trans 0.5
q3map_surfacelight 250
{
map $lightmap
rgbGen identity
tcGen lightmap
}
{
map textures/zz/cyan.tga
blendfunc filter
rgbGen identity
}
{
map textures/zz/cyan.tga
blendfunc add
}
}

and heres what it looks like compiled:

http://img16.imageshack.us/i/ppppplightjan2720101354.jpg/

So if anyone knows where the problem is please help me.

thx in advance


(pazur) #2

Try replacing “blendfunc add” by “blendfunc filter” and see if that works for you.


(huah) #3

hmmm

no didnt help everything still looks the same:(


(stealth6) #4

textures/zz/cyan
{
	qer_editorimage textures/zz/cyan.tga
	q3map_lightimage textures/zz/cyan.tga
	surfaceparm nodamage
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.5
	q3map_surfacelight 1000
	{
		map $lightmap 
		rgbGen identity
		tcGen lightmap 
	}
	{
		map textures/zz/cyan.tga
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/zz/cyan.tga
		blendfunc add
	}
}

textures/zz/purple
{
	qer_editorimage textures/zz/purple.tga
	q3map_lightimage textures/zz/purple.tga
	surfaceparm nodamage
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.5
	q3map_surfacelight 1000
	{
		map $lightmap 
		rgbGen identity
		tcGen lightmap 
	}
	{
		map textures/zz/purple.tga
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/zz/purple.tga
		blendfunc add
	}
}

textures/zz/trans1
{
	qer_editorimage textures/zz/trans1.tga
	q3map_lightimage textures/zz/trans1.tga
	surfaceparm nodamage
	surfaceparm nomarks
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.5
	q3map_surfacelight 1000
	{
		map $lightmap 
		rgbGen identity
		tcGen lightmap 
	}
	{
		map textures/zz/trans1.tga
		blendfunc filter
		rgbGen identity
	}
	{
		map textures/zz/trans1.tga
		blendfunc add
	}
}

Works for me?


(huah) #5

yeah got it to work too, dunno what the problem was I just made all the textures once again and it worked.

thx anyway