Re: Problem with Spot Lights

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++bitch.reading.sgi.com)
Thu, 31 Aug 1995 19:02:04 -0600


Youre using performer to turn lights on but it seems occasionally
you don't turn them off (can't check this in your posted code). You
could add and remove your light sources to the performer scene graph and let
performer take care of all of this for you. You could also you have your light
source below a pfDCS to move it around the scene instead of positioning it.
The only problem I've had with this is that the lights may be culled with
geometry in the scene graph if you attach them to a populated pfDCS. To avoid
this add a huge bounding volume to the light source:

sph = (pfSphere *)pfCalloc(1, sizeof(pfSphere), pfGetSharedArena());
pfMakeEmptySphere(sph);
sph->radius = PF_HUGEVAL;
pfNodeBSphere(light, sph, PFN_BMODE_STATIC);

Good Luck.

-- 
Angus Dorbie,
Silicon Graphics Ltd, UK
dorbie++at++reading.sgi.com

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:51:51 PDT

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