Re: pfGsetAttr

New Message Reply Date view Thread view Subject view Author view

Veraart (rioj7++at++fel.tno.nl)
Tue, 6 Aug 1996 11:28:07 +0200 (MET DST)


>
> Hi to Everyone there,
>
> I am working with pfGeoSets and I managed to change some of their
> characteristics
> (such as Coords, norms, even norms indexes and coords indexes), but it seems
> impossible to change in real-time the number of primitives between two=
> frames.
>
> What I do is te following :
>
> - 1. I add some vertices
> - 2. I assemble them into primitives with the index table
> - 3. I compute the normals
> - 4. then I set the number of Prims with gset->setNumPrims();
>
> On the next frame, the GeoSet look fairly wrong !! (sometimes with
> Core).
>
>
> If someone know if it is possible (and how!) to modify GeoSet in real-time,
> I will be very happy to hear from him (some king of God ?)..

You can control the number of primitives in realtime by using the transparency
of the primitives by using a separate color for each primitive.
In the Geostate you must set the Alpharef to say 0.05 and the Alphafunc to
GEQUAL. Then set the transparency to 0.0 for the primitives that you don't
want to see.
If you use multi process be sure to use pfCycleBuffers to keep frame
synchronisation.

Mario
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:53:19 PDT

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