Okay. I just submitted this change, checking the number of children in
~Group(), which works. Is it still okay to do what I need to do in the
destructor, or should I change it so that this functionality is in the
popLevel() method?
   -Paul


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Brede Johansen
> Sent: Friday, September 29, 2006 3:08 PM
> To: osg users
> Subject: Re: [osg-users] OpenFlight flipbook animation node options
> 
> Hi Paul,
> 
> In my last submission for the "billboardCenter" option not 
> yet in CVS I have added two virtual functions for 
> PrimaryRecords, pushLevel() and popLevel().
> 
> By the time popLevel() is called for the Group record the 
> children are added so you can calculate the duration.
> 
> 
> Regards,
> Brede
> 
> 
> On 9/29/06, Paul Martz <[EMAIL PROTECTED]> wrote:
> > Yes, you're right about the loop duration. This might be a more 
> > complex change than I originally thought, as the code can't specify 
> > the per-frame duration in the osg::Sequence until it knows how many 
> > children the Group record has. Let me spend some more time on this.
> >    -Paul
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Thom 
> > > DeCarlo
> > > Sent: Friday, September 29, 2006 1:38 PM
> > > To: 'osg users'
> > > Subject: RE: [osg-users] OpenFlight flipbook animation 
> node options
> > >
> > > Oh, rats. I figured that would be the case.
> > >
> > > I'll look forward to seeing your submission. However, I 
> don't think 
> > > that I interpret the loop duration the same way you do.
> > > I would expect the duration to be the total time to complete the 
> > > whole loop, regardless of the number of subnodes in the 
> animation, 
> > > not the time to display each of the subnodes.
> > >
> > > Thanks,
> > > Thom
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Paul 
> > > Martz
> > > Sent: Friday, September 29, 2006 3:19 PM
> > > To: 'osg users'
> > > Subject: RE: [osg-users] OpenFlight flipbook animation 
> node options
> > >
> > > Hi Thom -- The current OpenFlight loader ignores the duration 
> > > fields. I've modified it to pay attention to the 
> loopDuration field, 
> > > but there is no obvious way (that I can see) to make the 
> final frame 
> > > have a unique duration.
> > > So, all frames will be 2.5 seconds with my change.
> > >
> > > I'll post it to osg-submissions shortly.
> > >    -Paul
> > >
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of Thom 
> > > > DeCarlo
> > > > Sent: Friday, September 29, 2006 12:52 PM
> > > > To: OSG-user
> > > > Subject: [osg-users] OpenFlight flipbook animation node options
> > > >
> > > > I've set the loop parameters on my openflight file. I have the 
> > > > loop
> > > > duration=2.5 sec, and last frame duration=1.0 sec. However, the 
> > > > animation flips at a constant frame rate.
> > > >
> > > > I guess my question is, does the OSG understand these
> > > settings and is
> > > > there some way to turn them on?
> > > >
> > > > Thanks,
> > > > Thom
> > > >
> > > >
> > >
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > [email protected]
> > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > http://www.openscenegraph.org/
> >
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to