12 added 1593 characters in body; Post Made Community Wiki
source | link

I dont know how technically Sonic 2 bonus stages are done, they could be computed by the cpu/special custom chip (and thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette size as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is running at 30 fps, and contains complex details (eg : not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

 

EDIT : added h264 solutionI recently had a chance to take a look at a Sonic 2 disassembly. 

Here is how special stage is done :

  • there is no realtime rendering, everything has been precalculated and is stored in ROM
  • it run at a very low frame rate : around 8 frames per second
  • the internal resolution of each frame is 128x112 (when in game, it is played double size (256x224)). that's why you have vertical black borders when playing special stage (megadrive resolution is 320x224).
  • it use a 8 colors palette (3 shades of blue, 4 shades of yellow and one transparent color) this mean a single pixel can be stored in only 3 bits.
  • some frames are re-used in a single animation. an animation is stored as an array of frames indexes. eg for turning : 0, 1, 0, 1, 2, 3, 4, 5, 4, 5, 6.
  • it use horizontal flipping for left animations (eg : left turn animation is just a h-flip of right turn)
  • each frame is compressed. compression scheme is unknow (RLE maybe?) but it must use a very simple algorithm to allow megadrive to decompress frames on the fly. there is not enough RAM to store all frames uncompressed.

some stats for special stage :

  • there is 56 frames in total.
  • there is only a few animations : slope up, straight, slope down, curve right, begin curve right. during special stage, the game then play theses in a predefined sequence eg : straight, curve right, straight, curve right (h-flipped), straight, slope up, straight, slope down, etc...
  • all frames (when compressed) take only 72.3 KB (around 1500 bytes per frame). this is pretty small compared to size of ROM (which is 1 MB)

I dont know how technically Sonic 2 bonus stages are done, they could be computed by the cpu/special custom chip (and thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette size as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, and contains complex details (eg : not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

I dont know how technically Sonic 2 bonus stages are done, they could be computed by the cpu/special custom chip (and thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce color palette size as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is running at 30 fps, and contains complex details (eg : not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

 

EDIT : I recently had a chance to take a look at a Sonic 2 disassembly. 

Here is how special stage is done :

  • there is no realtime rendering, everything has been precalculated and is stored in ROM
  • it run at a very low frame rate : around 8 frames per second
  • the internal resolution of each frame is 128x112 (when in game, it is played double size (256x224)). that's why you have vertical black borders when playing special stage (megadrive resolution is 320x224).
  • it use a 8 colors palette (3 shades of blue, 4 shades of yellow and one transparent color) this mean a single pixel can be stored in only 3 bits.
  • some frames are re-used in a single animation. an animation is stored as an array of frames indexes. eg for turning : 0, 1, 0, 1, 2, 3, 4, 5, 4, 5, 6.
  • it use horizontal flipping for left animations (eg : left turn animation is just a h-flip of right turn)
  • each frame is compressed. compression scheme is unknow (RLE maybe?) but it must use a very simple algorithm to allow megadrive to decompress frames on the fly. there is not enough RAM to store all frames uncompressed.

some stats for special stage :

  • there is 56 frames in total.
  • there is only a few animations : slope up, straight, slope down, curve right, begin curve right. during special stage, the game then play theses in a predefined sequence eg : straight, curve right, straight, curve right (h-flipped), straight, slope up, straight, slope down, etc...
  • all frames (when compressed) take only 72.3 KB (around 1500 bytes per frame). this is pretty small compared to size of ROM (which is 1 MB)
11 added 9 characters in body
source | link

I dont know how technically Sonic 2 bonus stages are done, they could be raytracedcomputed by the cpu/a specialspecial custom chip (thusand thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette size as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, big size and contains complex details (noteg : not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

I dont know how technically Sonic 2 bonus stages are done, they could be raytraced by the cpu/a special chip (thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, big size and contains complex details (not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

I dont know how technically Sonic 2 bonus stages are done, they could be computed by the cpu/special custom chip (and thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette size as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, and contains complex details (eg : not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

10 deleted 1 characters in body
source | link

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

I dont know how technically Sonic 2 bonus stages are done, they could be raytraced by the cpu/a special chip (thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, big size and contains complex details (not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those racing laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

I dont know how technically Sonic 2 bonus stages are done, they could be raytraced by the cpu/a special chip (thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, big size and contains complex details (not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those racing laserdisc games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

I dont know how technically Sonic 2 bonus stages are done, they could be raytraced by the cpu/a special chip (thus realtime) or totally precalculated and stored inside cartridge (like a very low resolution movie).

If you are using same color range, resolution and low framerate as sonic example you give, you should be able to get really lower than those 200MBs.

Here is what you could do to help to reduce the size:

  • reduce spreadsheet color palette as much as possible (eg: to 8 bit) (i dont know if its possible in Flex)

  • use vertical/horizontal symmetry to only store the half/quarter.

  • If you look closely at the first animation you provided (the straight tube) : only light yellow parts change, blue/dark yellow regions are static. To show the animation, you could use more than one layer : one that is static, one that is animated, on the top of the first one (this one will compress very well since it contains lot of transparent pixels)

Of course if your animation is 30 fps, big size and contains complex details (not using flat shaded, but textured polygons) it won't help. Maybe you should give a little more information about animation you want to store ?

It your animation looks like a movie (like those laserdisc racing games in the 80's) you should check if its possible to store your animation as a H.264 file movie and play it inside Flex (dont know very well that platform so i dont know if its possible).

EDIT : added h264 solution.

9 added 41 characters in body
source | link
8 added 124 characters in body
source | link
7 added 22 characters in body
source | link
6 added 4 characters in body
source | link
5 edited body
source | link
4 added 12 characters in body
source | link
3 added 205 characters in body
source | link
2 added 205 characters in body
source | link
1
source | link