Re: setColor for pfMaterial

New Message Reply Date view Thread view Subject view Author view

Jean-Luc Dery (dery++at++atlantis.discreet.qc.ca)
Tue, 10 Dec 1996 17:05:22 -0500


On Dec 10, 4:24pm, Prakash Mahesh wrote:
> Subject: setColor for pfMaterial
> I was doing something like this:
>
> pfMaterial *mtl=new pfMaterial;
>
> mtl->setColor(PFMTL_DIFFUSE, 0.8f, 0.8f, 0.2f);
> mtl->setColor(PFMTL_SPECULAR, 0.0f, 0.0f, 0.0f);
> mtl->setColor(PFMTL_AMBIENT, 1.0f, 1.0f, 1.0f);
> mtl->setColor(PFMTL_EMISSION, 1.0f, 1.0f, 1.0f);
> .....
> I get a Performer warning saying : Unknown color token x (where x is 1,
> 2, 3 or 4 above)
>
> Am I doing something wrong?
> Thanks for any help.
> --
> Prakash Mahesh
> prakash++at++drawcomp.com
>-- End of excerpt from Prakash Mahesh

The IRISGL token must be defined during compilation. This determines whether
the irisgl.h or the opengl.h file is used.

Try adding -DIRISGL to your compilation line.

Hope this helps.

Jean-Luc

-- 
_____________________________________________________________________________

Jean-Luc Dery Discreet Logic System Engineer 5505 boul. St-Laurent, bureau 5200 3-D Graphics Technology Montreal (Quebec), Canada, H2T 1S6 Tel: (514) 272-0525 #394 Email: dery++at++discreet.com Fax: (514) 272-0585 _____________________________________________________________________________ ======================================================================= 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:54:08 PDT

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