From: Paolo Farinelli (paolo++at++sgi.com)
Date: 07/22/2003 14:58:13
Hi Leonardo,
All lights in Performer are pfLight (or pfLightSource) objects.
Basically, a pfLight encapsulates an OpenGL light, and a
pfLightSource is a scene-graph node that represents a single
pfLight.
Take a look at the documentation for pfLight (man pfLight on
IRIX or linux, or look in %PFROOT%\Doc on Win32). Also
look at the documentation for glLight for a list of the
corresponding OpenGL parameters.
Directional lights (infinitely distant) are specified by assigning
a 0.0 value to the fourth parameter in pfLight::setPos. Non zero
values specify local lights. Spot light paramters are specified
through pfLight::setSpotCone and ::setSpotDir().
In order to control light intensity, you may either multiply your
color values by some intensity value, or set appropriate
attenuation parameters through pfLight::setAtten()
Let me know if you need further assistance.
Ciao,
Paolo
Leonardo Massei wrote:
>Hi,
>i've some problem to make Point, Direct or Spot
>lights in Performer. In Inventor there are, for example,
>SoDirectLight, SoPointLight, etc: how to create a Point,
>Direct or Spot lights in Performer ?
>Where is the "Intensity" channel in pfLightSource ?
>
>
>thank in advance
>Leonardo
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Tue Jul 22 2003 - 14:58:26 PDT