`Bwana' Bob Buckley (bbuckley++at++ctaeng.com)
Thu, 20 Apr 1995 10:32:55 -0600
On Apr 19, 1:10pm, Simon Bennett wrote:
> Subject: Re: pfLightPoint Color Binding?
> On Tue, 18 Apr 1995, `Bwana' Bob Buckley wrote:
>
> > How can I determine the color binding of a pfLightPoint?
>
> Do you mean per vertex as opposed to overall?
>
> If so, I believe that under Performer 1.2 you cannot (except by perusing
> pfPrint output). I've asked this question on a number of occasions and never
> gotten any response. The 14.1f version of the Multigen flight loader will
> always use a per vertex colour binding. Contact multigen technical support
> if you need this (they are very helpful). Of course this only helps if you
> are using Multigen!
>
As you say 'by perusing pfPrint', then there must be a way to query for the
binding. I have no idea how they do it because when I query the using the wrong
index (PFLP_OVERALL -vs- a whole number) I get a seg fault. We do use MultiGen
14.0 with the 14.1 loader. Marcus only binds per vertex when there are
differing colors, tolerance dependent.
>
> The only other help I can give is that pfLightpoints are created with an
> overall colour binding, and remain with it until you change the colour of
> an *individual point* within the pfLightpoint. If you want to keep an
> overall colour binding then use pfLPointColor() with PFLP_OVERALL in the
> index parameter. The same with pfGetLPointColor(). (I don't think that
> PFLP_OVERALL is documented anywhere)
>
Well, I'm modifying pfLightPoints after the scene graph is completely loaded.
Since it seg faults when I try to find out the binding I have no way of making
modifications. I did find out one thing. When I create light points they
automatically get created as non-omnidirectional. This is MultiGen V14.0. I
have to manually go in and force lights to be omni-directional. This causes
light strings to be bound as PFLP_OVERALL. Hence, no seg faults.
>
> BTW - I've been led to believe that the entire pfLightpoint API is
> changing in Performer 2.0 - something about the pfLightpoint Node being
> scrapped. Instead you apply a pfLightPointState to a pfGeoSet....
>
That's what I need they query capability for. To post convert a pfLightPoint to
a pfGeoSet.
===========================================================================
'Bwana' Bob Buckley CTA, Inc.
Sr. Software Engineer 5670 Greenwood Plaza Blvd
Visual Systems Englewood, CO 80111
(303) 889-1207 (303) 889-1200
bbuckley++at++ctaeng.com (303) 889-1398 Fax
===========================================================================
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:24 PDT