Page 1 of 1

Why?! Grr.

Posted: Wed Nov 09, 2005 5:03 am
by Hipshot
Why is it that my brush, with a single 'add' texture, WONT add on a brush behind that uses the 'blend' func?! You wont belive how stupid this looks, it adds to the sky texture, but when I move so that the blend brush comes behind It won't add any more. I've been sitting the entire night with this, since like 21, to well now its soon 06, and I can't solve it. Its just so stupid, and I really need this to work, badly.

The blend shader.

Code: Select all

textures/hipshot_is/head
{
	qer_trans 0.5
	surfaceparm nonsolid
	surfaceparm trans
	{
		clampmap textures/hipshot_is/head.tga
		blendFunc blend
		tcMod stretch  sin 1 .05 0 .1
		tcMod rotate -7
		rgbGen identityLighting
	}
}
the add shader

Code: Select all

textures/hipshot_is/rayban
{
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.5
	{
		map textures/hipshot_is/rayban.jpg
		blendFunc add
		rgbGen identityLighting
	}
}
I think I've tried everything, but I just wont work. Im sure its something stupid and easy but I can't figure out what it is. I also think it worked once, but I'm not sure, I've tried various different textures, blend modes, new maps, even tried mixin' my own blend modes, which obiously didn't work.

Posted: Wed Nov 09, 2005 10:58 am
by $NulL
Sort order, give the 'add' shader a higher sort value than he 'blend' texture. Try 9 for blend and 10(or higher but less than 16) for add.

Heres a link to the section in the shader manual that explains it.


The amended blend shader.

Code: Select all

textures/hipshot_is/head
{
	qer_trans 0.5
	surfaceparm nonsolid
	surfaceparm trans
	sort 9
	{
		clampmap textures/hipshot_is/head.tga
		blendFunc blend
		tcMod stretch  sin 1 .05 0 .1
		tcMod rotate -7
		rgbGen identityLighting
	}
}
the amended add shader

Code: Select all

textures/hipshot_is/rayban
{
	surfaceparm nonsolid
	surfaceparm trans
	qer_trans 0.5
	sort 10
	{
		map textures/hipshot_is/rayban.jpg
		blendFunc add
		rgbGen identityLighting
	}
}

Posted: Wed Nov 09, 2005 11:12 am
by Hipshot
Worked great. Thanks. So simple. :cry: