|Reported by:||SF/roever||Owned by:||SF/ender|
|Cc:||Game:||Broken Sword 2|
I've done some work on the Broken Sword 2 Animations.
The current code works as following: the animations are compressed to mp2 elementary streams. Additionally I've generated palette files that assign 256 color paletted to images sequances. These palettes were taken from the original animations. The player does now take the output of the mp2lib and reduces these to a palette index using a lookup table. This is relatively fast and gives satisfying results except for areas that are extremely comic like. Here we get artefacts.
The lookup table for the color reduction process is calculated while playing.
The appended patch includes the player. You still have to modify the config.mak to include the path to the mpeg2.h include and the lib. The 2 new files I added are extra.
The patch will make scummvm play the intro as long as the speech is going. The music of the animation is missing for the music to work we need more features in the mixer. We need to find out how far a sample has been played. I could not find the necessary functions.
I've prepared all animations. All together they are about 34 Mb. If someone wants to test the patch he only needs the intro files which are about 10 Mb.
All right I hope I've written enough to make you decide on wether you want to go this way or not.
Ticket imported from: #874510. Ticket imported from: patches/415.