Light Question???

New Message Reply Date view Thread view Subject view Author view

Kim Juh-Han (bluesky++at++chopin.kist.re.kr)
Thu, 17 Oct 1996 18:08:10 +0900


Hi,

I want to use pfLightSource and pfLight together. pfLightSource used for
sun and
pfLight used for local light for geode.

Here is source fragment

--
pfLight 	*light[PF_MAX_LIGHTS] ; 
....
....

lmodel->setlocal(PF_ON); gstate->setAttr(PFSTATE_LIGHTMODEL, lmodel) ;

gstate->setAttr(PFSTATE_LIGHTS, light); gset->setGState(gstate) ; geode->addGSet(gset) ;

--
Also pfLight array is set to NULL initially. 

Problem is

1. pfLightSource doesn't work with pfLight. Only pfLight worked in Scene.

2. If geode is moving, Light Effect is also moving. But I don't want to move pfLight.

Does anyone know how to solve above problem ?? Thanks for reading.

Juh-Han Kim Email : bluesky++at++chopin.kist.re.kr bluesky++at++renoir.sait.samsung.co.kr

Phone : 958-5637 ( KIST CAD/CAM Lab.) Fax : +82-2-958-5639

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++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:53:46 PDT

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