RE: [info-performer] May I control FLT file with hierarchy struct ure

New Message Reply Date view Thread view Subject view Author view

From: Ong Tze Lin (tzelin++at++sgi.com)
Date: 10/07/2002 00:12:24


Hi Archer,
 
Load the 3D model with
 
     node = pfdLoadFile( "..." );
 
Search for the DOF bead/ pfDCS node. You MUST know the name of the node in
this case:
 
     pfDCS * wheels;
     wheels = (pfDCS*) node->find( "name", pfDCS::getClassType() );
 
Once you check that you have been returned a valid pointer, you can apply
pfDCS calls to modify the rotation, translation, scale.
 
     wheels->makeRot( ... );
 
 
-=-=-
 
You can also install a pre-node app callback (with node->setTravFuncs() ) to
do the same, rather than controlling it from your main loop.
 
Finally, you can write a pfuTraverser function to do the search.
 
Take note of the current transformation matrix when doing the transforms,
and the centre point of the part you intend to transform- if not you may not
get the results you were hoping for.
 
 
 
Cheers,
Tze Lin

-----Original Message-----
From: ChiaSheng [mailto:ccsheng1201++at++yahoo.com.tw]
Sent: Thursday, October 03, 2002 4:50 PM
To: MLM Veraart
Cc: Performer Mailing List
Subject: Re: [info-performer] May I control FLT file with hierarchy
structure

Hi, Mario
 
Um....I try to find the "README" file of the flight loader, but I didn't
understand it.
And how can I get the pointer of the DOF Node to steer the wheels?
Can you tell me more about the loader , please.
I load the flight file by "pfdLoadFile( filename )".
File format is .flt and .pfb!!
 
 
Best Regards,
   Archer Chen

 
----- Original Message -----
From: "MLM Veraart" < veraart++at++fel.tno.nl <mailto:veraart++at++fel.tno.nl> >
To: "(Archer Chen)" < archerc++at++hitrontech.com <mailto:archerc++at++hitrontech.com>
>
Cc: "Performer Mailing List" < info-performer++at++sgi.com
<mailto:info-performer++at++sgi.com> >
Sent: Tuesday, October 01, 2002 9:24 PM
Subject: Re: [info-performer] May I control FLT file with hierarchy
structure

You have to give all the wheels in the flight file a DOF (Degree Of
Freedom). Some wheels can rotate around two axis, steering wheel, the other
around one axis.
In your flight loader callback process the DOF information, see README file
of the flight loader.
At run time: adjust the rotation of the wheels according to the steering
position and adjust the
pfDCS car rotation according to its orientation on the road.

Mario


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 00:07:54 PDT

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