Svend Tang-Petersen (svend++at++digi.lego.com)
Mon, 23 Feb 1998 17:11:53 +0100
I'm loading a flt file and am attaching it to the internal tree. I'm
trying to use pfNode::find to
locate the geostate so that I can modify the transparency function. What
I'm currently doing is:
--if ((model = pfdLoadFile("sky.flt")) != NULL ) { castle->addChild( model );
if ( pfNode *gstate_node = model->find( "", pfGeoState::getClassType()) ) { printf("\nFound geostate\n\n"); } else { printf("\nDidn't find any geostate\n\n"); }
};
--But the if statement executes the else clause, i.e. no geostate is found. I'm not specifying a node name for the geostate, since I don't know if it has one. Do I need to use some sort of wildcard instead ?
--Svend Tang-Petersen, MSc
LEGO Kloevermarken 120 7190 Billund Denmark
e-mail: svend++at++digi.lego.com
======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:52 PDT