From: Alexandre Naaman (naaman++at++laplace.engr.sgi.com)
Date: 11/06/2001 16:43:56
On Tue, 6 Nov 2001, Dimi wrote:
Hi Dimi,
Well, in order to load the models from Inventor we use a
SoCallbackAction. From this, we get a polygon soup and it's up to us to
create something useful from it. The geometry we retrieve is eventually
passed along to the pfdGeoBuilder routines.
So, if you want to avoid the creation of trip strips, you will need to
modify the pfd routines. If you comment out the last few lines of the
routine makeTriGSets() in pfdGeoBuilder.c (from
/usr/share/Performer/src/lib/libpfdu/) you will be able to achieve this
effect (see the comment 'perform triangle strip generation'). Recompile
libpfdu and set your LD_LIBRARY_PATH appropriately et voila!
A+,
Alex.
> Hi, I am trying to do some geometry morphing. The code I currently
> have needs the 2 objects to have the same amount and structure of
> geometry. To test some models which I have in .iv format I load them
> in using pfdLoadFile (name). The problem is that although the models
> have triangle primitives and exactly match in the structure of the
> geometry, when they are loaded into performer using the above
> mentioned routine (or if see them in perfly) they are converted into
> objects with tristrips and they also differ in their amount of
> primitives (triangles change groups) screwing up my morphing code. Is
> there a way to tell performer to load the models as they are (triangle
> primitives)? As I said the iv files are OK, but during the conversion
> the loader changes them.
>
> Thanks
> Dimi
>
> --
> Dimi Christopoulos {christop++at++fhw.gr}
> VR Software Engineer
> Foundation of the Hellenic World
> Athens - Greece
>
>
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>
A+,
Alexandre.
-- Alexandre Naaman - naaman++at++sgi.com
This archive was generated by hypermail 2b29 : Tue Nov 06 2001 - 16:44:03 PST