Re: Problem with pfFlux and geosets

New Message Reply Date view Thread view Subject view Author view

Daniel Weiskopf (weiskopf++at++tat.physik.uni-tuebingen.de)
Wed, 01 Apr 1998 19:08:19 +0200


Glenn Waldron wrote:
>
> 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.

I have the same problem; since no one has given an answer, I'd
like to repost the problem.

Interestingly, the scrambled behavior depends on the kind of
multiprocessor mode used, e.g. there is different output with
pfMultiprocess(PFMP_APP_CULL_DRAW) and pfMultiprocess(PFMP_APPCULLDRAW),
respectively.

TIA

-- 
Daniel Weiskopf
weiskopf++at++tat.physik.uni-tuebingen.de
=======================================================================
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:11 PDT

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