Re: [info-performer] Can I control the flash rate of animation in FLT file

New Message Reply Date view Thread view Subject view Author view

From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 11/06/2002 02:56:54


(Archer Chen) wrote:
>
> Dear Mario,
> I had try the way you say and I got some conclusions,
> Please direct me if there is something wrong. Thanks.
>
> First, I put the code "pfdConverterVal(".flt", PFFLT_FRAMERATE, speed);"
> before I load my FLT file, and it slow down if I set speed a samll value. I think
> it was right reation.^__^
>
> Second, I change the speed value in my APP(or Draw) process and it is useless for
> changing the rate, was it right ???
> How should I do to effect that the speed while running ?
> Thanks.

For a check you can save the scene graph of your loaded flt file with the example program
complex.C with the option -w.
I think the scene graph will contain a pfSequence node that the flight loader uses to
make the animation. At load time it sets the animation rate of this pfSequence based on the
PFFLT_FRAMERATE settings.
If you want to change the rate you have to find the pfSequence node and change the settings
yourself. Find the node name or the node type.

Mario

P.S. Is it possible to remove the 'strange characters' in your email 'From:' line.
     I use a plain text based mail tool.
     Maybe you can do it for the performer mailing list only.

>
> Best Regards,
> Archer Chen
> =============================================================
> Hitron Technology Inc.
>
> E-mail : archerc++at++hitrontech.com
> =============================================================
>
> ----- Original Message -----
> From: "MLM Veraart" <veraart++at++fel.tno.nl>
> To: "³¯®a¥Í (Archer Chen)" <archerc++at++hitrontech.com>
> Cc: "Performer List" <info-performer++at++sgi.com>
> Sent: Tuesday, November 05, 2002 11:30 PM
> Subject: Re: [info-performer] Can I control the flash rate of animation in FLT file
>
> > (Archer Chen) wrote:
> > > Can I change the rate of the propellers revolving and
> > > please give me some suggestion for how to do that?
> > > Thanks.
> > >
> > > Best Regards,
> > > Archer Chen
> >
> > From the pfflt.h file
> >
> > float val;
> > pfdConverterVal_flt(PFFLT_FRAMERATE, val);
> >
> > or use the pfdConverterVal() function.
> >
> > Mario


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 06 2002 - 02:58:05 PST

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