Re: pfLightSource

New Message Reply Date view Thread view Subject view Author view

John Rohlf (jrohlf++at++tubes)
Wed, 25 Jan 95 17:43:22 PST


>
> I've been trying to get a spot light to work in a modified perfly, the
> code goes like this:
>
> light = pfNewLSource( );
> pfLightPos( light, x, y, z, w );
> pfLightColor( light, r, g, b );
> pfSpotLightDir( light, dx, dy, dz );
> pfSpotLightCone( light, 1.0f, ang );
> pfAddChild( node, light );
>
> but no spotlight (I'm sure x,y,z,dx,dy,dz are correct).
> when I add pfLightAmbient( light, r, g, b ); their
> is ambient light all around but I can't seem to get
> a spot light to work.
>
> Thanks for any help,
> Darin
> (darin++at++chaos.idec.sdl.usu.edu)
>
>

        Make sure that w is 1.0 since spotlights require that the light
be local.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:54 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.