thanks to Re: pfGsetAttr but not solving any pb.

New Message Reply Date view Thread view Subject view Author view

by way of (couvet++at++pobox.oleane.com)
Sat, 03 Aug 1996 14:44:58 +0200


At 11:21 06/08/1996 +0100, you wrote:
>I think the original technique should work.
>
>As Veraart pointed out you need to have multiple copies of the geometry and
>maintain frame synchronisation.
>
>If you are lucky enopugh to avoid a core dump then you shouldn't get
>garbage once the pointers & numbers have been assigned. This suggests
>that the geometry youre building is incorrect.
>
>To avoid any synchronisation problems without buffering you could try
>setting the draw mode PFGS_COMPILE_GL to PF_ON for the geoset and whenever
>you make a modification call pfGSetDrawMode( gset, PFGS_COMPILE_GL, PF_ON);
>again. So you use the GL to cache the geoset for drawing and use
>pfGSetDrawMode as a write through operation from your host data.
>
>This won't work for animating the object every frame but it should work for
>occasional modifications. You may have to deffer the call to pfGSetDrawMode
>for a couple of frames, it depends on whether the PFGS_COMPILE_GL token is
>buffered or not in the performer library.
>
>
>Rgds,
>Angus.
>

Hi, and many thanks for your fast answer, but I still have the problem.

Transparency is not applyable because of the overhead resulting. Multiple copies
of the geometry is impossible also because I can't foresee where and when I
need
the new vertices and primitives.

Typically, I need to have an objet "breathing", and when I touch it with a
tools, I need
to refine the mesh of the object.

I check that the variables are in the shared arena, and it is OK. The
vertice index table
is OK in the Main memory and so does the coord table, but the ::pfPrint
shows me
that some of the primitivesin the pfGeoSet (ie the last 3 ones) are
completely wrong !

Is there a bug when refreshing the structure of a pfGeoSet dynamically ?

How can I wait till the geoSet is completely update, if it is the bug ?

Or do you know a safe (and fast) way of modifying the number of primitives
of a pfGeoSet between two frames?

Sincerely,

Cyril ZEKSER TT&S

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