Using PFSTATE_LIGHTS and pfLightSource

New Message Reply Date view Thread view Subject view Author view

Mario Veraart (rioj7++at++fel.tno.nl)
Wed, 13 Jan 1999 18:14:14 +0100 (MET)


Hello pfAll,

I want to use certain lights for certain geometry.
In the man page of pfGeoState I read that I can set an array of lights
to use for the geometry that uses this pfGeoState
(attribute PFSTATE_LIGHTS).

If I use pfLightSource lights I get the following error every frame

ERROR #91 lmbind - index 195 for target 1100 not found: ERR_USERERROR

The notes in the pfLightSource man page tell something about using
this option but it also mentions pfLights

     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).

When I use pfLight lights the objects in the scene are dark.

If I don't set the light array at the geostate then the scene is
lighted as expected, in both cases (pfLightSource and pfLight).

Can anybody give me a clue what is the cause of the dark scenes or the
error?

Mario Veraart


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Jan 13 1999 - 09:24:31 PST

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