Re: [info-performer] Node Names

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 01/25/2006 07:41:37


Hi Christian,

After loading the .flt model into Performer, If your
intention is to change the name of the node which is
currently called "car1" into (say) "car2", you should
call pfNode::setName on the pfNode pointer returned by
pfNode::find.

somthing like:

   pfNode* model = pfdLoadFile("car.flt");
   pfNode* node = model->find("car1", pfNode::getClassType());
   node->setName("car2");

Hope this helps,
Regards,
Paolo

> Hi there
>
> I have a small problem again:
>
> as written some days ago I search for node-names. We load .flt-Files
> into the Performer, who are named in the
> Object-Node (named with multigen) and plugged in over pfDCS-Nodes. Is
> there a way to change this Object name while
> loading the .flt-Files in? (We have about 40 cars on the screen and it's
> quite stupid if they are all called "car1" or
> "car2")
>
> I tried the setName-Function, but it seems to rename something else,
> which is nearer to the root of the scene graph and
> not reached by the function who searchs the name of the hitten object.
>
> Any clues?
>
> Christian
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------
>

-- 
Paolo Farinelli <paolo++at++sgi.com>
OpenGL|Performer - Silicon Graphics Inc.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jan 25 2006 - 07:35:11 PST