pfLightPoint API question

New Message Reply Date view Thread view Subject view Author view

Jean Daigle (jaydee++at++thor.ats.qc.ca)
Thu, 21 Jul 1994 12:22:39 -0400


Greetings,

I have a question about pfLightPoints in Performer 1.2. The man page
says the individual points in the object share all attributes (e.g.
shape) except position and colour. However, this intriguing snippet
from pf.h suggests the possibility of a global binding for colour:

/* pfLPointColor() */
#define PFLP_OVERALL -1

Indeed, the a certain well-known 3D database file loader seems to
make this assumption, viz.:

        /* Set overall color if possible */
        if(!colorDiff)
            pfLPointColor(lp, PFLP_OVERALL, lc);

Our experience with pfLightPoints created thus is that an attempt
to access individual colours dumps core:

        pfGetLPointColor((pfLightPoint), 0, (pfVec4));

Is the overall binding for the colour attribute valid and useful?
If so, how might one determine whether this binding applies to a
given pfLightPoint other than by a post-mortem on the resulting
core file?

Another observation: The pfLightPoint(3pf) man page makes no apparent
mention of the rather useful function

extern long pfGetNumLPoints(pfLightPoint* _lpoint);

Regards,
Jean Daigle.

 -----------------------------------------------------------------
| Jean Daigle ATS AeroTechnologies Inc. |
| Software Designer 1250 Boul Marie-Victorin |
| St. Bruno, QC J3V 6B8 |
| jaydee++at++ats.qc.ca Tel: (514) 441-9000 Fax: (514) 441-6789 |
 -----------------------------------------------------------------


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:50:23 PDT

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