Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: hsh3826 on May 10, 2017, 11:44:47 PM

Title: there's a slight lag between two Movie textures(states)
Post by: hsh3826 on May 10, 2017, 11:44:47 PM
HI all!

I made a simple FSM to play
two different movie textures without lag
but there's a slight lag between states (about 1 frame)

how can i fix this
Title: Re: there's a slight lag between two Movie textures(states)
Post by: jeanfabre on May 11, 2017, 04:09:52 AM
Hi,

You likely need two textures, and you switch between them, if you load two different movie, you will always have the lag due to Unity loading, decompressing, etc etc.

I did recently a project where I had to switch between several videos without lag, and the only way was to indeed have two players that you just load before you need to do the switch, else you will have lags, the other solution is to stay ont he last frame of the first video, watch for the second video ready state and only switch then. but you then need a proper video system. I used AVPro, it's expensive, but man, this is powerful yet simple... It's coming with full PlayMaker support very soon as well :)

 Bye,

 Jean
Bye,

 Jean
Title: Re: there's a slight lag between two Movie textures(states)
Post by: hsh3826 on May 11, 2017, 09:32:04 AM

hi jean!

thank you for your reply
but how can i load two players using playmaker?
i'm newbie actually ;D
Title: Re: there's a slight lag between two Movie textures(states)
Post by: jeanfabre on May 15, 2017, 04:50:26 AM
Hi,

 you simply have two GameObjects each with the movie Texture and you switch between the two. they both overlap perfectly, and so you can enable/disable them in turn, but you make sure that movies are loaded first ( with a time delay for example if you can estimate the time it takes to load your movies).

Does that make sense?

 Bye,

 Jean
Title: Re: there's a slight lag between two Movie textures(states)
Post by: hsh3826 on May 17, 2017, 06:02:10 AM
Thank you very much Jean!

it really helped !!!

but i have one last question..

is there a custom action for AVpro?
to play and stop videos just like movietexture action.  :)

cheers!!  ;D
Title: Re: there's a slight lag between two Movie textures(states)
Post by: jeanfabre on May 23, 2017, 02:44:59 AM
Hi,

 Official actions are on their ways and should make it for the next release on the Asset store :)

 Bye,

 Jean
Title: Re: there's a slight lag between two Movie textures(states)
Post by: edufurla on May 07, 2021, 06:59:16 AM
Unfortunately, the last version has lots of improvements, but they removed Playmaker support/actions.