Re: Need help to get projected textures to work !!!

New Message Reply Date view Thread view Subject view Author view

Allan Schaffer (allan)
Mon, 8 Dec 1997 10:00:09 -0800


On Dec 7, 7:20pm, Hugo Eide Gunnarsen wrote:
> pf_spot=new pfLightSource();
> pf_spot->setMode(PFLS_PROJTEX_ENABLE,PF_ON);
> pf_spot->setAttr(PFLS_PROJ_TEX,pf_tex);
> pf_spot->setAttr(PFLS_PROJ_FRUST,pf_frust);
>
> pf_spot->setVal(PFLS_INTENSITY,.5f);
> pf_spot->setAtten(1,0,0);
> pf_spot->setPos(0,-0.75,0,1);

It's only a guess, but I think this setPos call might be the
problem. Comment it out and control the light's position with a
pfDCS, and see if that helps..

Allan

-- 
Allan Schaffer                                                allan++at++sgi.com
Silicon Graphics                               http://reality.sgi.com/allan
=======================================================================
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:56:21 PDT

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