Daniel Williams (dwilliams++at++sarnoff.com)
Mon, 12 Oct 1998 09:48:33 -0400
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.) Is the documentation in error?
Has anyone been successful at this, short of coding their own version
of Performer's multipass algorithm?
Thanks,
Dan
-- Daniel Williams, Systems & Scientific Software Voice: (215) 885-1573 Email: sass++at++acm.com Independent Consultant to: Sarnoff Corporation Voice: (609) 734-2153 Email: dwilliams++at++sarnoff.com
This archive was generated by hypermail 2.0b2 on Mon Oct 12 1998 - 06:48:38 PDT