pfClone

New Message Reply Date view Thread view Subject view Author view

Peter Oslej (peterO++at++vrm.sk)
Mon, 20 Dec 1999 14:18:36 +0100


Hello ,

I am new in performer list, so excuse me if this problem was answered.

I have node 'root' loaded from database file and node 'clone' cloned from the 'root'.
Both are attached to the same scene.(see snipcode bellow)
When I set the DRAW travMask to 0x0 for root only (or for clone only ) both objects are
not drawn. Can somebody tell me why ? I expect the only node with zero mask is not drawn .
When the 'clone' node is loaded from the data file, the appropriate node is not drawn only.

Here is my snip code:

   pfNode *root = pfdLoadFile(argv[1]);

   pfNode *clone = root->clone(0);
 //pfNode *clone = pfdLoadFile(argv[1]);

  // root->setTravMask(PFTRAV_DRAW,0x00,PFTRAV_SELF | PFTRAV_DESCEND,PF_SET);
     clone->setTravMask(PFTRAV_DRAW,0x00,PFTRAV_SELF | PFTRAV_DESCEND,PF_SET);

    // Attach loaded file to a new pfScene
    pfScene *scene = new pfScene;
    scene->addChild(root);

        pfMatrix mat ( 1.0f, 0.0f,0.0f,0.0f,
                         0.0f, 1.0f,0.0f,0.0f,
                         0.0f, 0.0f,1.0f,0.0f,
                          10.0f, 0.0f,0.0f,1.0f ) ;
      pfSCS *scs = new pfSCS(mat);

      scs->addChild(clone);
     scene->addChild(scs);
......

Please help me, I need to restrict from draw the cloned nodes separatelly..

Thanks forward.
Peter

----------------------------------------------------------------------------------------------
PeterOslej VRM Lld. Soblahovska 2050
                                         911 01 Trencin SLOVAKIA
Graphics Software mail:peterO++at++vrm.sk
Developer tel.++421-831-6518 302
                                                  fax.++421-831-6518 222
-----------------------------------------------------------------------------------------------



New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Dec 20 1999 - 22:58:56 PST

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