Raoul Becke (rbecke++at++iiic.ethz.ch)
Mon, 12 Oct 1998 16:34:53 +0200 (MET DST)
/*****************************************************************************/
/*Raoul Becke $$$'`$$$$$$$$$$$$$$$$$$$$ */
/*Baltenschwilerstr. 52 $$$$ $$$$$$$$$$$$$$$$$$$ */
/*8962 Bergdietikon $$$$. `$' \' \'`\$$$$$$$$ */
/*Tel. 01/740 17 94 $$$$$. !\ i i i$$$$$$$ */
/*Fax 01/740 17 49 $$$$$$ `-'`-'`-'$$$$^^$ */
/*e-mail rbecke++at++datacomm.ch (at home) $$$$$$L `""~ $$ */
/*e-mail rbecke++at++iiic.ethz.ch (at the ETH Zuerich) $$$$$$$. .' .$$$ */
/* $$$$$$$ $$$$$$$by$RB$ */
/*****************************************************************************/
On Thu, 8 Oct 1998, Sylvain Mayer wrote:
> Javier Muņoz Lagaron wrote:
>
> > Hello,
> > We are developing a Performer application, and we were using a
> > lightsource. But now, we want to view the textures without any light,
> > with their real colors. How can we turn off lighting? We tried removing
> > the lightsource, but we saw the scene very dark. The effect we want to
> > reach is the same as Perfly with the lighting off option. Can anyone
> > give us any clue?
>
> If perfly is what you want, then look at its source code !!
>
> if (ViewState->lighting == LIGHTING_OFF)
> {
> pfOverride(PFSTATE_ENLIGHTING | PFSTATE_FRONTMTL, 0);
> pfDisable(PFEN_LIGHTING);
> pfOverride(PFSTATE_ENLIGHTING | PFSTATE_FRONTMTL, 1);
> }
> else
> pfOverride(PFSTATE_ENLIGHTING | PFSTATE_FRONTMTL, 0);
>
>
> --
> Sylvain Mayer, 3D Graphics Developer
> Graphics Simulation Technology
> Display Eng. & Special Projects
> CAE Electronics Ltd. (http://www.cae.ca)
> mailto:mayer++at++cae.ca
> Tel: (514) 341-6780 Ext: 3065
> Fax: (514) 734-5618
>
>
> ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2.0b2 on Mon Oct 12 1998 - 07:36:16 PDT