Modifying GeoState of flt model.

New Message Reply Date view Thread view Subject view Author view

Svend Tang-Petersen (svend++at++digi.lego.com)
Mon, 23 Feb 1998 17:11:53 +0100


Hi Performers.

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


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:52 PDT

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