Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - [Coding competition 2017] Bad Apple 3D full length by Gligli

Reply to topic

Rate this entry!

1 (Poor) 0% 0%
2 0% 0%
3 5% 5%
4 0% 0%
5 5% 5%
6 0% 0%
7 11% 11%
8 29% 29%
9 (Excellent) 47% 47%
This poll has expired.
Author Message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 7671
  • Location: Paris, France
Reply with quote
[Coding competition 2017] Bad Apple 3D full length by Gligli
Post Posted: Mon Mar 27, 2017 7:34 pm
http://www.smspower.org/Homebrew/BadApple3DFullLength-SMS



Quote
SMS video player / encoder v7

Project page: https://github.com/gligli/tiler

By GliGli, with help from Maxim and others from http://www.smspower.org/forums/16306-FullscreenVideoPlaybackOnSegaMasterSystem

License is GNU GPL v3
  View user's profile Send private message Visit poster's website
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Mon Mar 27, 2017 10:26 pm
Ah, there was two readme.txt in the archive. I should probably have merged them, sorry!

Here's the one for the entry itself:

************************************
* Bad Apple 3D full length for SMS *
************************************

Code by GliGli, for http://www.smspower.org 2017 coding competition.

Original video: https://www.youtube.com/watch?v=iV5A-VzKWvw

Using SMS Video Player v7 (project page for source code: https://github.com/gligli/tiler )

Plays on a 50Hz Sega Master System with its 3.5Mhz Z80.
Most emulators should be able to play it perfectly (Emulicious, MEKA, Kega Fusion, ...). Make sure to set them to PAL 50Hz.

3'38 video.
2724 palettized frames with 28 unique colors from the palette of 64 running at 12.5 fps.
10.3Khz optimized 4bit PCM sound.

Not really in the competition theme you might say but included is the video encoder so that eg. Bock can encode a video from his wedding to play on his SMS as a souvenir =)

Tools:
======

- WLA-Z80: http://github.com/vhelin/wla-dx/
- pcmenc: http://github.com/maxim-zhao/pcmenc
- Emulicious: http://emulicious.net/
- Lazarus: http://www.lazarus-ide.org/
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 1807
Reply with quote
Post Posted: Tue Mar 28, 2017 8:45 am
YT video somewhere? :|

Also, is it using exclusively slot 1 and slot 2 (SEGA mapper) paging, right?
  View user's profile Send private message Visit poster's website
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Tue Mar 28, 2017 9:15 am
I'm currently working on large capacity microSD-based cartridges for SMS and MD.
Once I get one working I will make a hardware capture of this demo and put it on Youtube (should be in the next days I think :).

Yep, using slot 1/2 standard SEGA mapper.
  View user's profile Send private message
  • Joined: 05 Sep 2013
  • Posts: 1807
Reply with quote
Post Posted: Tue Mar 28, 2017 11:41 am
Supporting 4MB ROMs? Flash based? Neat!! :D
  View user's profile Send private message Visit poster's website
  • Joined: 01 May 2011
  • Posts: 371
Reply with quote
Post Posted: Tue Mar 28, 2017 10:48 pm
Wow, awesome improvements! Great work to up the number of frames enough to cover the whole video, whilst also improving the colour, and still coming in at under 4MB. This is now long enough to cover most music videos, movie trailers etc. I just need to make a 4MB cart ...
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 11774
  • Location: London
Reply with quote
Post Posted: Wed Mar 29, 2017 11:05 am
My first ever attempt at making a video :)

https://www.youtube.com/watch?v=S-7Z23Gq_7Y
  View user's profile Send private message Visit poster's website
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Wed Mar 29, 2017 12:04 pm
BKK> Thanks, I basically rewrote everything to get there and optimized the hell out of the Z80 code to make it run fine. This video compressed very well due to being mostly black or white tho, other 3'30 videos may look worse.

Maxim> Thank you :) Is it from hardware or from an emulator?

I got it working this morning on my MD cartridge in SMS mode, but I don't have any capture card at the moment.
  View user's profile Send private message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 11774
  • Location: London
Reply with quote
Post Posted: Wed Mar 29, 2017 12:41 pm
I used BizHawk, it has good lossless 1:1 video exporting - but crashes on the other Bad Apple demo :)
  View user's profile Send private message Visit poster's website
  • Joined: 27 Feb 2017
  • Posts: 145
  • Location: Northern Ireland
Reply with quote
Post Posted: Wed Mar 29, 2017 1:33 pm
Maxim wrote
My first ever attempt at making a video :)

https://www.youtube.com/watch?v=S-7Z23Gq_7Y


Thanks for the video Maxim.


Seriously guys , what da...????!?!?!?!?


Are we talking about a master system here??
This is totally insane!!!
Psg chip playing audio and with video at the same time!!
I've nothing else to say really , get this video and go fool your friends into thinking this is a full motion video on the Saturn or something ....
Then see their faces when you tell them this is an actual 8bit master system doing the job...

Superb work.
Love it.
  View user's profile Send private message
  • Joined: 01 Jan 2014
  • Posts: 280
Reply with quote
Post Posted: Wed Mar 29, 2017 4:23 pm
Crazy good. I hope you do a write up on the improvements you made to get this to fit. The inclusion of streamed audio takes this to the next level.

Awesome stuff!
  View user's profile Send private message
  • Joined: 25 Feb 2006
  • Posts: 443
  • Location: Belo Horizonte, MG, Brazil
Reply with quote
Post Posted: Wed Mar 29, 2017 8:37 pm
Both Bad Apples are quite nice achievements on their own way. ;)
  View user's profile Send private message Visit poster's website
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Thu Mar 30, 2017 1:16 pm
psidum wrote
Crazy good. I hope you do a write up on the improvements you made to get this to fit. The inclusion of streamed audio takes this to the next level.
Awesome stuff!

Thanks =)
I just wrote http://www.smspower.org/forums/post97208#97208 , it's pretty technical and maybe not that interesting tho...
  View user's profile Send private message
  • Joined: 23 Mar 2013
  • Posts: 515
  • Location: Copenhagen, Denmark
Reply with quote
Post Posted: Thu Mar 30, 2017 8:16 pm
Amazing work! I watched the video on YT, and afterwards I had to load the program into an emulator, in order to really believe that it actually runs on a Master System. Crazy, system-limit-pushing Bad Apple stuff going on this year in the compo!
  View user's profile Send private message Visit poster's website
  • Joined: 01 May 2011
  • Posts: 371
Reply with quote
Post Posted: Thu Mar 30, 2017 11:07 pm
gligli wrote
psidum wrote
Crazy good. I hope you do a write up on the improvements you made to get this to fit. The inclusion of streamed audio takes this to the next level.
Awesome stuff!

Thanks =)
I just wrote http://www.smspower.org/forums/post97208#97208 , it's pretty technical and maybe not that interesting tho...


I found it interesting, even if I don't fully understand everything :p Thanks for the write up.
  View user's profile Send private message
  • Joined: 01 May 2011
  • Posts: 371
Reply with quote
Post Posted: Fri Mar 31, 2017 11:37 pm
Side by side comparison with the original.
  View user's profile Send private message
  • Joined: 28 Jan 2017
  • Posts: 157
  • Location: Málaga, Spain
Reply with quote
Post Posted: Sun Apr 02, 2017 2:28 pm
How good and large video! shame it does seems to render garbage in some tiles in emulicious with vdp limits on, but it is pretty nice.
  View user's profile Send private message
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Sun Apr 02, 2017 4:23 pm
You had me doubting for a second since there was a new emulicious release but it stills runs fine with VDP constaints emulated :) You just have to set the emulator to 50Hz.
At 60Hz you would also get wrong speed since it would play the video at 12fps instead of 12.5fps.
  View user's profile Send private message
  • Joined: 04 Apr 2017
  • Posts: 3
Reply with quote
Post Posted: Tue Apr 04, 2017 5:10 pm
gligli wrote
You had me doubting for a second since there was a new emulicious release but it stills runs fine with VDP constaints emulated :) You just have to set the emulator to 50Hz.
At 60Hz you would also get wrong speed since it would play the video at 12fps instead of 12.5fps.


Hi, I tried to use it in a Megadrive PAL with a flashcard, but it gives error. Would it have a solution? I am trying to make a video about the possibilities of this flashcard and I would like to include your demo. Thank you!
  View user's profile Send private message Visit poster's website
  • Joined: 29 Mar 2012
  • Posts: 289
  • Location: Spain
Reply with quote
Post Posted: Tue Apr 04, 2017 5:42 pm
just some messages up, it's discussed why it doesn't work in Sega Megadrive VDP
  View user's profile Send private message
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Tue Apr 04, 2017 5:47 pm
SuperPadLand> Hello, what kind of error do you get?

I got it to work on my own MD flash cart in 50Hz SMS mode. Nothing special required besides 4MB mapper support.
It even works in 60Hz because the MD VDP is way more forgiving than the SMS one on active display timings.

kusfo> That's the other Bad Apple, mine works fine on the MD :)
  View user's profile Send private message
  • Joined: 04 Apr 2017
  • Posts: 3
Reply with quote
Post Posted: Tue Apr 04, 2017 5:56 pm
gligli wrote
SuperPadLand> Hello, what kind of error do you get?

I got it to work on my own MD flash cart in 50Hz SMS mode. Nothing special required besides 4MB mapper support.
It even works in 60Hz because the MD VDP is way more forgiving than the SMS one on active display timings.

kusfo> That's the other Bad Apple, mine works fine on the MD :)


The error is: "prog error 140"

The flashcard is a chinese cheap version and the max size rom is 6MB and works fine with Tectoy games like Street Fighter II or Virtua Fighting for example.



kusfo wrote
just some messages up, it's discussed why it doesn't work in Sega Megadrive VDP


Veo que eres de España, puedes explicarme que significa VDP y cual es el problema?
  View user's profile Send private message Visit poster's website
  • Joined: 14 Sep 2016
  • Posts: 71
  • Location: Lyon, France
Reply with quote
Post Posted: Tue Apr 04, 2017 6:23 pm
SuperPadLand wrote
The error is: "prog error 140"
The flashcard is a chinese cheap version and the max size rom is 6MB and works fine with Tectoy games like Street Fighter II or Virtua Fighting for example.

Sounds like the cart doesn't support 4MB roms in SMS mode...
  View user's profile Send private message
  • Joined: 29 Mar 2012
  • Posts: 289
  • Location: Spain
Reply with quote
Post Posted: Tue Apr 04, 2017 6:54 pm
SuperPadLand wrote


kusfo wrote
just some messages up, it's discussed why it doesn't work in Sega Megadrive VDP


Veo que eres de España, puedes explicarme que significa VDP y cual es el problema?

Me he equivocado, es la otra demo de Bad Apple (la de blanco y negro), la que no funciona en la megadrive. El VDP es el chip gráfico tanto de la master como de la mega (uno es la evolución del otro). El de Mega no acaba de ser exactamente igual que el de Master, con lo que algunos juegos (Y's o los de Codemasters) o demos, a veces dan problemas.
  View user's profile Send private message
  • Joined: 04 Apr 2017
  • Posts: 3
Reply with quote
Post Posted: Tue Apr 04, 2017 6:59 pm
gligli wrote
SuperPadLand wrote
The error is: "prog error 140"
The flashcard is a chinese cheap version and the max size rom is 6MB and works fine with Tectoy games like Street Fighter II or Virtua Fighting for example.

Sounds like the cart doesn't support 4MB roms in SMS mode...


Ups! :( but thanks!

kusfo wrote

Me he equivocado, es la otra demo de Bad Apple (la de blanco y negro), la que no funciona en la megadrive. El VDP es el chip gráfico tanto de la master como de la mega (uno es la evolución del otro). El de Mega no acaba de ser exactamente igual que el de Master, con lo que algunos juegos (Y's o los de Codemasters) o demos, a veces dan problemas.


Ok, pues muchas gracias. Era por probar suerte que a lo mejor había alguna forma de hacerlo funcionar. Más adelante a ver si pillo el flashcard de Master System que también me interesa jugar lo de SG-1000.

Saludos!
  View user's profile Send private message Visit poster's website
  • Joined: 29 Mar 2012
  • Posts: 289
  • Location: Spain
Reply with quote
Post Posted: Tue Apr 04, 2017 7:10 pm
At the end I also get the Master Everdrive to be able to play all the roms available :-)
  View user's profile Send private message
  • Joined: 31 Oct 2007
  • Posts: 788
  • Location: Estonia, Rapla city
Reply with quote
Post Posted: Sun Apr 23, 2017 12:22 pm
Oh wow, even PCM music !
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!