Re: Transparency and Lighting? Don't work together?
Mario Veraart (rioj7++at++fel.tno.nl)
Fri, 5 Sep 1997 14:19:41 +0200 (MET DST)
> We are having a problem that it is likely others have as well and are
> seeking advice from the wise.
>
> We have a custom pf loader for our data. Some nodes within it are solid
> (no alpha) and some are alpha'd. When I setup the modes with
> pfdBldrStateMode and turn PFSTATE_TRANSPARENCY ON, the objects only show
> transparency when the 'sun' is OFF (not EYE or SUN in perfly).
>
> Now I can live without lighting (if I must) on alpha'd objects so I also
> added PFSTATE_ENLIGHTING to OFF on transparent nodes. This generally
> works except that I occasionally get lighting flashes across the model
> while fly around it (lighting on the whole model - or big parts of it
> turn on or off briefly). These flashes are unacceptable as are solid
> nodes that should be alpha.
I encountered the same effect in my app that builds it's owm geometry.
I found that I needed to attach a material to ALL the geometry.
Try to share the same matrial as much as possible.
Mario
=======================================================================
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 Aug 10 1998 - 17:55:53 PDT