Re: Unknown color token for pfLightColor in Performer 2.0

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Tue, 30 Jan 1996 11:16:29 -0800


+>---- On Jan 30, 5:03pm, Daniela Rainer wrote:
> Subject: Unknown color token for pfLightColor in Performer 2.0
->From guest++at++holodeck Tue Jan 30 09:20:34 1996
->From: "Daniela Rainer" <zrgr0390++at++visin2.rus.uni-stuttgart.de>
->Date: Tue, 30 Jan 1996 17:03:54 +0100
->Reply-To: rainer++at++rus.uni-stuttgart.de
->X-Mailer: Z-Mail (3.2.1 6apr95 MediaMail)
->To: info-performer++at++sgi.sgi.com
->Subject: Unknown color token for pfLightColor in Performer 2.0
->
->Hi,
->
->I have a problem with pfLightColor:
->
->if I use
->
->pfLightColor(lt, PFLT_DIFFUSE, 1.0f, 1.0f, 1.0f);
->pfLightColor(lt, PFLT_AMBIENT, 0.4f, 0.4f, 0.4f);
->
->I get the following warning at runtime
->
->PF Warning/Usage: pfLightColor() Unknown color token 4609.
->PF Warning/Usage: pfLightColor() Unknown color token 4608.

The values of these tokens is dependent on which GL you are
compiling for. The default is OpenGL.
By any chance are you running IRIS GL but not
compiling the file with -DIRISGL ? In which case you would
be passing OpenGL tokens to the IRIS GL library.
The GL dependent tokens are defined in /usr/include/Performer/
        irisgl.h and opengl.h.
pr.h includes the proper header file based on whether IRISGL is defined.

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

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:52:18 PDT

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