From: Bo Cordes Petersen (bcp++at++vision.auc.dk)
Date: 07/19/2000 03:31:01
Hi there,
Im currently playing around with pfLightSource's and trying to decipher
through the man-pages how to create a local, distance culled light with
attenuation..
The effect I'm looking for is for an avatar inside a big cave, holding a
lantern, and thus illuminating some of the closest objects (rocks, etc.).
However, Im finding it difficult to get it to work as planned - it wont
cull the light.
What I have is roughly the following:
LightSource = new pfLightSource();
LightSource->setPos(Position.vec[0],Position.vec[1],Position.vec[2],1);
tmpBoundingSphere.center.set(parX,parY,parZ);
tmpBoundingSphere.radius = parR;
LightSource->setBound(&tmpBoundingSphere,PFBOUND_DYNAMIC);
LightSource->setAtten(parA,parB,parC);
LightSource->on();
....
Any suggestions of why it won't cull the light although its 10 times the
distance to the radius of the bounding box???
Cheers,
/Bo
------------------------------------------------------------------------------
Bo Cordes Petersen Phone: +45 9635 9787
3D-Programmer of Virtual Environments Fax: +45 9815 4008
Computer Vision and Media Technology WWW: http://www.intermedia.auc.dk/~bcp
Institute of Electronic Systems Email: bcp++at++intermedia.auc.dk
Aalborg University
------------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 03:31:30 PDT