Hey coders, hope you can help me out--
I'm trying to get a model to render with additive blending. I've tried it
with two ways, the first with giving my model a VMT with something like:
"VertexLitGeneric"
{
"$basetexture" "models/tracemodels/trace_map"
"$model" 1
"$alpha" .5
"$additive" 1
"$selfillum" 1
}
This shows up as semi-transparent and additive in the model viewer but
doesn't show up in-game at all. I've tried a dozen varieties of settings as
well.
The second method is to do it via code like so:
void CBladeTracer::PreThink( void ){
SetRenderColorA( 170 );
SetRenderMode(kRenderTransAdd);
}
The same thing results, the model is no longer visible although its shadow
still remains.
Is there some particular flag that I must set to enable rendermode changes?
Seems like all the examples I can find apply to sprites, and never to
setting rendermodes to models.
Thanks in advance.
~M
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders