[info-performer] overlapping pfDCS nodes

New Message Reply Date view Thread view Subject view Author view

From: Terry Welsh (mogumbo++at++totalmail.com)
Date: 09/18/2002 17:03:28


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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Sep 18 2002 - 17:03:51 PDT

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