Re: Shadows with pfLightSource

New Message Reply Date view Thread view Subject view Author view

Bernard Leclerc (bleclerc++at++cae.ca)
Fri, 16 May 1997 19:39:26 -0400


> Working with Performer and VEGA, we tried to modify shadow intensity by
> setting the PFLS_INTENSITY token of a pfLightSource to a specified value.
> The idea was to get some "grey" shadow (instead of black) when the
> intensity is reduced.
> But the effect we get is not the expected one: shadows remain black and
> it is just the lighting of the scene that is modified.
> Did I understand it wrong, or is there any side effect ?

The effect you observed is perfectly normal. PFLS_INTENSITY is used to
normalize the intensity of multipole light sources. If you want to change
the color of the shadow casted by the light source, you must specify the
ambient alpha with pfEarthSky:setColor() as mentioned on page 5 of the
pfLightSource man page. Refer to example 3 to setup a light source casting
semi-transparent shadows.

Bernard Leclerc, Technical Leader, 3-D Graphics Applications
CAE Electronics Ltd. (http://www.cae.ca)
8585 Cote De Liesse, Saint-Laurent, Quebec, Canada, H4L-4X4
tel: +1 514 341 2000 extension 2275, fax: +1 514 340 5496
              
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:55:15 PDT

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