Re: Suppressing Shading

New Message Reply Date view Thread view Subject view Author view

Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Mon, 27 Mar 1995 12:52:05 -0500 (EST)


On Sat, 25 Mar 1995, Kent Miller wrote:

>
> >>On Fri, 24 Mar 1995, Henrik Lind wrote:
>
> >> I want to display a texture map which is always bright, even when the
> >> surroundings are dark. That is, I want it to ignore surrounding
> >> lighting and be `self-luminous'.
> >>
> >> How do I do this?
>
> >Turn off lighting for the geostate:
> > pfGStateMode( gstate, PFSTATE_ENLIGHTING, PF_OFF );
>
> Or, you can set the texture environment to DECAL mode (I think I got
> that right - I'm at home and my code is at work - Lance can correct me
> if that's slightly off) :)

It also depends on the desired visualization. I sometimes use modulation of
the material colors on a grayscale camouflage texture. Using DECAL mode will
mess things up for that case.

>
> I use lighting when I want to turn the texture on and off during
> run-time; decal-mode if the texture is always on. I don't know if there
> is a performance difference.

I think it is a small difference, but I would hazard a guess that switching
texture environment mode is slower than switching between lighting and
non-lighting.

______________________________________________________________________________
           /\ ______ /\____ ______ ______ E-mail: marrou++at++vsl.ist.ucf.edu
Visual / / / _ / / __ // ____// ____/ VSL: (407)658-5073
Systems / /__ / /_/ / / / / // /___ / __/_ R. Marrou Fax: (407)658-5059
Lab /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind." "We don't need no thought control."


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:51:08 PDT

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