hrm. it used to work fine for me when i used the internal particles before
scrapping em and writing my own particle engine.
lemme take a gander at my old code.
hmm. yup. mines the same. heh.
 p->color =  gEngfuncs.pEfxAPI->R_LookupColor( 173, 112, 220 );
 gEngfuncs.pEfxAPI->R_GetPackedColor( &p->packedColor, p->color );

oh well, make a particle engine (whoever it was that asked in the first
place) =)



-omega
Blackened Interactive
http://www.nofadz.com/blackened
IRC: irc.gamesnet.net channel: #blackened-interactive
Assistant Coder, Underhive (http://www.underhive.com)

----- Original Message -----
From: "Matthew Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 15, 2001 1:42 AM
Subject: [hlcoders] Particle Colors?


> I don't think the color functions from the TriAPI are going to work with
the
> particle system. It really does look like the particles are using a fixed
> palette from somewhere. These are the sample engine calls that supposedly
> set the particle color:
>
> // make a particle
>   particle_t *p;
>   p = gEngfuncs.pEfxAPI->R_AllocParticle( ParticleCallback );
>
> // set its color
>   p->color =  gEngfuncs.pEfxAPI->R_LookupColor( r, g, b );
>   gEngfuncs.pEfxAPI->R_GetPackedColor( &p->packedColor, p->color );
>
>
> You can try to set r,g,b to some desired color, but what comes out is
> basically a crap shoot. There has to be a better way. (Anyone know where
the
> palette is stored or how to view it so that the colors might be set
> directly?)
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to