Re: Color Intensity with No Lights

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Tue, 06 Apr 1999 15:55:23 -0700


Bryan Fricke wrote:
>
> Hello -- I am new to Performer and have a basic question.
>
> When I run Perfly with any given database file loaded and I *turn off*
> lighting, I see an image that has a reasonable intensity. However, when I
> modify one of the sample programs (e.g., simple.c) so that no light source
> is added to the scene, a given database will look much darker than it did in
> Perfly.
>
> To correct this problem, I have tried to "disable" lighting. I did so by
> issuing the following command:
>
> pfDisable(PFEN_LIGHTING);

You need to do this in the draw then pfOverride(PFEN_LIGHTING, PF_ON);

>
> I put this command in several places in the program, but it didn't seem to
> help.
>
> So my question is as follows - How do I display a scene with the intensity
> set to a reasonable level(i.e., the color intensity actually specified for a
> given polygon or vertex in the database file) when no light source is
> present?
>
> Thanks in advance,
> Bryan Fricke
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Microsoft's system was like a forest that hadn't had a controlled
 burn in decades, just waiting for one person with a match to turn
 it into a disaster. Melissa was Microsoft's fault. They left their
 system wide open to this sort of abuse, they knew it could happen
 and did nothing." -- Bruce Perens

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Apr 06 1999 - 15:55:27 PDT

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