Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: finalholylight on January 19, 2013, 11:24:57 am

Title: Need a script make movie run as background
Post by: finalholylight on January 19, 2013, 11:24:57 am
If you play final fantasy 7,8,9 you will know this
I want a movie file run as background, then it will below character, and movie run parallel with game, that's mean actor can be control when movie is running.

Like this:

actor in game with no movie:
Spoiler: ShowHide
(http://i663.photobucket.com/albums/uu358/finalholylight/RMXP_ingame_zpsd8e0999b.png)


play movie:
Spoiler: ShowHide
(http://i663.photobucket.com/albums/uu358/finalholylight/RMXP_movie_zps1d947e28.png)


and I want this when movie are playing:
Spoiler: ShowHide
(http://i663.photobucket.com/albums/uu358/finalholylight/RMXP_movie_fusion_ingame_zpsb1dd1883.png)
Title: Re: Need a script make movie run as background
Post by: Blizzard on January 19, 2013, 12:27:34 pm
Why don't you just use animated panorama backgrounds?
Title: Re: Need a script make movie run as background
Post by: finalholylight on January 19, 2013, 12:43:32 pm
If I use animated panorama, there are too many animation frames, for a movie scene with 15s, then I will use 400 pictures or more, omg ~.~!
in this case, create a movie easier than create 400 pictures.
Title: Re: Need a script make movie run as background
Post by: G_G on January 19, 2013, 01:10:52 pm
Yeah but playing a movie is a lot harder than displaying a bunch of pictures in quick succession. First of all, the script would require an outside library to actually decode the video file since Ruby would be far too slow to actually do it on it's own. Then you have to worry about trying to pass each frame from the library to the RGSS engine. Since the library can't just decode it and automatically convert it to a ruby bitmap, you'd have to write your own conversion process for that. And if you don't want to do that, the other route I could think of is having the outside library render on top of the RGSS window using a window handler. But the problem arises when the video would get rendered on top and not behind like you would want. See how complicated this would be?

I'm not trying to be a dick or anything, but this is a lot of work for a scripter to do. Your best bet is to use the Picture Movie add-on from ToA and use 400+ images. I'm not being mean, but no ones probably going to fulfill this request.
Title: Re: Need a script make movie run as background
Post by: Blizzard on January 19, 2013, 02:52:21 pm
Well, to be honest, we're using the Theora Player Library (which my boss made) that depends on the Theora Video Library and it works more or less well in C++. The advantage is that you don't have to play have any special codecs installed, but because of that the number of formats you can use for videos is limited to only Theora's format. So using something like that and making/having a generic script for movie playback has its ups and downs.