drawing a texture over everything else?


(zl1corvette) #1

I am trying to recreate the functionality of the corona with an autosprite, the trouble I am having is if I place my sprite right above a brush it will go into that brush and the unvisible part of the sprite won’t be drawn. With a corona as long as the corona is visible it draws the whole corona. Is there anyway to duplicate that? Here’s what I have so far.


textures/calculus/red_flare
{
	deformvertexes autosprite
	surfaceparm trans
    	surfaceparm nomarks
    	surfaceparm nolightmap
	cull none
	
        {
        clampmap textures/calculus/red_flare.tga
	rgbgen wave sin .5 .5 0 .5
	blendFunc add
	}
	
}


(Shaderman) #2

if I place my sprite right above a brush it will go into that brush and the unvisible part of the sprite won’t be drawn.

I was trying to do make custom coronas too and had the same problem with my corona brush going into a lamp model. Depending on the angle of view it looked ok or parts of the corona haven’t been visible. I tried to solve this with the sort keyword but had no success :confused: Please let me know if you know a solution.

[EDIT] I read this some minutes ago in the Q3map2 forum:

I think i know now why I had no success with the sort function :confused: [/EDIT]