Liu Xiaoyan (liuxy++at++ihpc.nus.edu.sg)
Tue, 29 Sep 1998 18:48:57 +0800
I'm trying to implement VRML-like Spotlight with Performer 2.2, i.e.
no projected texturing, just plain color with fading off along the spot
cone. What I did was commenting out this 2 lines from sample code
"shadow.c":
pfLSourceMode(proj, PFLS_PROJTEX_ENABLE, 1);
pfLSourceAttr(proj, PFLS_PROJ_TEX, tex);
and add in lines to control the Spotcone:
pfSpotLSourceCone(proj, 2.0f, 2.0f);
pfSpotLSourceDir(proj, ..........);
However, I cannot see the spotlight in effect, the geometry looks flat
and is not lightened.
What else should I do?
Regards,
Liu
***********************************************************************
Liu Xiaoyan Institute of High Performance Computing
Research Engineer National University of Singapore
Data Visualisation Group http://www.ihpc.nus.edu.sg Tel:(65)7709267
***********************************************************************
This archive was generated by hypermail 2.0b2 on Tue Sep 29 1998 - 03:52:58 PDT