Juan Saenz-Diez (jrsdm++at++hotmail.com)
Tue, 21 Dec 1999 14:24:27 GMT
pfClone will clone everything down the tree except geodes (and billboards
and lightpoints, I think). These will be shared ('root' and 'clone' will be
trying to render the same geomery leafs), and since the travmask method
belongs to pfNodes, it will affect every node including geodes from root
down the tree if you PFTRAV_DESCEND. So I think what you want to do is
PFTRAV_SELF but not PFTRAV_DESCEND. See the manpage for pfNode.
Regards,
Yuri.
----
Juan R. "Yuri" Sáenz-Diez
YuriX -- VizSim Consultant
+34 630 815 772
jrsdm++at++acm.org
Peter Oslej wrote:
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
-------------------------------------------------------------------
----------------------------
------------------------------------------------------------------------
Part 1.2 Type: application/ms-tnef
Encoding: base64
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
This archive was generated by hypermail 2.0b2 on Tue Dec 21 1999 - 06:24:36 PST