Problem with pfFlux and geosets

New Message Reply Date view Thread view Subject view Author view

Glenn Waldron (gwaldron++at++peril.com)
Fri, 20 Mar 1998 08:56:12 -0500


I have a terrain model loaded, and I'm trying to convert the
coordinate lists in the pfGeoSets into pfFluxes. I'm following
the example in /usr/share/Performer/src/pguide/libpf/C++/morph_engine.C.

After changing the original coordinate lists to pfFluxes, the
terrain appears with all it's coordinates randomly scrambled!
Here's the code for each pfGeoSet found in the tree:

    pfGeoSet* gset;
    pfVec3* coords;
    ushort* icoords;

    ...
    gset = geode->getGSet(i);
    gset->getAttrLists(PFGS_COORD3, (void**)&coords, &icoords);

    pfFlux* flux = new pfFlux(pfGetSize(coords), PFFLUX_DEFAULT_NUM_BUFFERS);
    flux->initData(coords);
    gset->setAttr(PFGS_COORD3, PFGS_PER_VERTEX, flux, icoords);

Any help is appreciated! thanks! -g.

(config: High Impact, 4TRAM, 256M, R4400, IRIX6.2, PF2.2)

-- 
Glenn Waldron * Peril Technologies * voice/page: 703.598.7835 
mailto:gwaldron++at++peril.com * http://www.peril.com
=======================================================================
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:57:03 PDT

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