What's wrong with my texture/shader?


(IndyJones) #1

{
	qer_trans 0.85
	qer_editorimage textures/temp/image.tga
	polygonOffset
	surfaceparm pointlight
	surfaceparm nonsolid
	nopicmip
	implicitBlend -
}

the texture has correct alpha.


(Tyrlop) #2

try to add this:
cull front


(IndyJones) #3

i tried with cull disable before… anyway, i’ll recompile now and see.

nope, doesn’t work.

implicitMask solved the problem… so far.


(Zer0Cool) #4

the resolution of your pic is 235px × 414px, length and width has to be power of 2.


(IndyJones) #5

the pic i posted it a in-game screenshot, lol :slight_smile:
the texture is 256x512.


(Pande) #6

Um… that doesn’t look like a shader… it has no image stage or lightstage or alpha values or anything… what are you trying to do?


(FireFly) #7

[QUOTE=IndyJones;183989]

{
	qer_trans 0.85
	qer_editorimage textures/temp/image.tga
	polygonOffset
	surfaceparm pointlight
	surfaceparm nonsolid
	nopicmip
	implicitBlend -
}

the texture has correct alpha.[/QUOTE]

Try this shader instead: I used this shader in one of my previous maps and it worked for me.

textures/yourtexture
{
	cull disable
	nomipmaps
	nopicmip
	surfaceparm nomarks
	surfaceparm alphashadow
	//surfaceparm metalsteps ----> unless it's a metal surface
	surfaceparm pointlight
	surfaceparm trans
	implicitMask -
}

(Pande) #8

if your trying to make a tree… try this:

textures/yourfolder/yourtexture
{
cull none
nomipmaps
nopicmip
surfaceparm nomarks
surfaceparm alphashadow
surfaceparm pointlight
surfaceparm trans
{
map textures/yourfolder/yourtexture.tga
blendfunc blend
// if it’s a .tga, if its a .jpg use:
// alphafunc GE128l
// rgb const ( 0.6 0.6 0.6 )
}
}


(sellwowgold2) #9

eve online isk, [color=#282827]gaia gold, ffxi gil , wow gold flyff penya[/color]