pfLightSource Question

New Message Reply Date view Thread view Subject view Author view

Steven W. Truxal (trux++at++rock.csd.sgi.com)
Tue, 27 Oct 1998 08:33:58 -0800


Hello, I have a customer asking the following question. Can anyone
help?

I'd like to restrict the influence of several projected texture
pfLightSources to a small portion of my scene graph in Performer2.2.
The manual page for pfLightSource says:

    If you want light sources to affect only portions of the scene,
    then set one or more pfLights on the pfGeoStates which are
    attached to the pfGeoSets that you wish to illuminate (see
    pfGeoState::setAttr and PFSTATE_LIGHTS for further details).

The manual page for pfGeoState says:

    If attr is PFSTATE_LIGHTS, a should be an array of pfLight* of
    length PF_MAX_LIGHTS which specifies which pfLights should be used
    by the pfGeoState. Empty entries in the light array should be NULL.

It doesn't seem that this advice applies to projected textures (nor
indeed to pfLightSources in general, unless one subclasses
pfLightSource and adds a method to return the protected pfLight*
member; it's talking about pfLights and I have pfLightSources.)

I believe that the documentation is in error; probably a cut-and-paste
error from the pfLight manual page.

Is there a way to get what I want, short of coding my own version of
Performer's multipass algorithm?

Any help would be greatly appreciated,

-- 
Steve Truxal
Silicon Graphics
trux++at++csd.sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Tue Oct 27 1998 - 08:34:02 PST

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