From: Frederic Marmond (fmarmond++at++eprocess.fr)
Date: 09/18/2002 23:08:25
hum...
There is only one pfNode, controled by many DCS.
I think you have to make clones of this pfNode, and assign a DCS for each.
Clones are very efficient (much more better than making several
pfdLoadFile).
Fred
Terry Welsh wrote:
>Hi,
> I expect the following code fragment to produce a model that has 10 billboard particles in a line. My "particle.flt" files is just one billboard particle. When I load up the new model, "line.pfb", into perfly or any other Performer app I see the model correctly for one frame. Then all the particles relocate to the position of the one particle that is furthest from the camera. But if it draws correctly on the first frame, I would think it could draw correctly every frame. Anybody know why this happens? I'm using Performer 2.2.
>
>Terry
>
>
>
> pfGroup* pgroup = new pfGroup;
> pfNode* particle = pfdLoadFile("particle.flt");
> pfDCS** blobs = new pfDCS*[10];
> int numblobs = 0;
> for(i=0; i<10; i++){
> blobs[numblobs] = new pfDCS;
> blobs[numblobs]->addChild(particle);
> blobs[numblobs]->setTrans(i * 1000, 0, 0);
> pgroup->addChild(blobs[numblobs]);
> numblobs ++;
> }
>
> pfdStoreFile(pgroup, "line.pfb");
>
>_____________________________________________________________
> Get Your Free Email at http://www.totalmail.com
>
>_____________________________________________________________
>Promote your group and strengthen ties to your members with email++at++yourgroup.org by Everyone.net http://www.everyone.net/?btn=tag
>
>-----------------------------------------------------------------------
> 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
>-----------------------------------------------------------------------
>
>
>
>
This archive was generated by hypermail 2b29 : Wed Sep 18 2002 - 23:05:46 PDT