[Papervision3D] syncing pv3d animation with a flv

Dustin Sparks djsparks at bsu.edu
Wed Oct 10 18:20:00 PDT 2007


i've dont alot with syncing things with video. Try to use FLVPlayback and
use the playheadUpdate event to move through your animation instead of
enterframe. This syncs it to the millisecond i believe.

On 10/10/07, Nathaniel Warner <warner.nathaniel at gmail.com> wrote:
>
> will cue points work for you?  it might be tedious but cue points may be
> the solution you need.
>
> On 10/10/07, hsafeer <h.ksafeer at gmail.com> wrote:
> >
> >
> > Yea i've tried that .. same result its close but its just not exact.
> >
> > Is there a better method then using a enterFrame and converting time to
> > frames to sync animations ?
> >
> >
> >
> >
> > Martin Weiser-3 wrote:
> > >
> > > insteda of Math.round, have you tried Math.floor() ??
> > >
> > > On 10/10/07, hsafeer < h.ksafeer at gmail.com> wrote:
> > >>
> > >>
> > >>
> > >> Hi I'm working on a project that requires me to sync keyframe
> > papervision
> > >> animation of a human face on top of a FLV .. the two have to be
> > perfectly
> > >> in
> > >> sync.
> > >>
> > >> right now I'm using stream.time to calculate current frame of the flv
> > and
> > >> manually changing current frame of the keyframed movie to sync the
> > two
> > >> together on enterframe event.
> > >>
> > >> but i'm finding its not exactly the same, sometimes it goes off sync.
> > >>
> > >> private function videoEnterFrame( e : Event ) : void {
> > >>        var streamTime:Number stream.time;
> > >>        streamFrame = Math.round(streamTime*24);
> > >>        motion.gotoAndStop( streamFrame );
> > >> }
> > >>
> > >> videoEnterFrame is attached to my video objects ENTER_FRAME event.
> > >>
> > >> 24 is the framerate of the flv video.
> > >> I've set the swf frame rate to be the same.
> > >>
> > >> does anyone have another method that they can suggest .
> > >>
> > >> --
> > >> View this message in context:
> > >> http://www.nabble.com/syncing-pv3d-animation-with-a-flv-tf4603421.html#a13144202
> >
> > >> Sent from the Papervision3D mailing list archive at Nabble.com.
> > >>
> > >>
> > >> _______________________________________________
> > >> Papervision3D mailing list
> > >> Papervision3D at osflash.org
> > >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >>
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> >
> > --
> > View this message in context: http://www.nabble.com/syncing-pv3d-animation-with-a-flv-tf4603421.html#a13146583
> >
> > Sent from the Papervision3D mailing list archive at Nabble.com.
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
>


-- 
[ Dustin Sparks ]
Interactive Developer / Creative Technologist
p. (765) 273-4793
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20071010/34e3e0be/attachment-0001.html 


More information about the Papervision3D mailing list