03-26-2012, 01:19 AM | #16 |
Zealot
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
|
Can only run via telnet with kite installed
Hi,
This is a great SW. I did not JB my K3G, but installed kite. I was able to run the fbgnuboy via kite usbnet and telnet. However, when I unplug the USB, the program froze. Likewise, I tried to use a sh script using kite and it does not run. Do you know why this is the case? Thanks, James |
03-26-2012, 06:02 AM | #17 |
Groupie
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
|
Very cool. Thanks for sharing this! The emulator seems to play most games/roms tried so far.
Until I feel like making specific scripts for Launchpad shortcut use, I just run this in a Kindle terminator, such as myts. If you do it my way, you have to go to the home page for the buttons to work, and not in myts. But when you are finish you can merely go back into it and then turn off fbgnuboy. I do have do questions/comments: 1. I know the smaller screen size is to boost the refresh rate and make it more usable, but for games such as othello, boggle, and etc, I think you can stretch the screen just fine to at least a square resolution the width of the Kindle. As such, is it possible to set some sort of variable to change the window size...if not to just test? 2. Anybody know of a nes emulator that could work in much the same way as this? Or perhaps a game gear one? Just random ideas I'd love to do. |
03-26-2012, 07:47 AM | #18 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Well, thanks a lot for the friendly feedback so far.
As geekmaster already mentioned: This application will eat your battery fast. On the one hand, constantly updating the display is expensive in terms of power. And then the CPU is running at 90-100%, too. Although the CPU is very efficient, this will eat battery, too. I did not really intend to present this as a useful application. However, it was evolved far enough to justify publishing it - it's a nice show case. And I was reading about raster image interpolation and doing experiments with it. So I implemented a simple, 4bpp-optimized ordered dither - and thought of a use case. I played with gnuboy before, so I knew its code structure which is easily extensible. What I also didn't mention before: It should do not only GameBoy ROMs, but also GameBoy Color (GBC) ones. Well, don't expect color to show up on your e-ink screen :-) inameiname: regarding your first question: The current implementation is highly optimized in some regards. E.g., each GameBoy pixel is exactly doubled in both dimensions (2x2 e-ink pixels represent one GB pixel). It is somewhat harder to settle on fractional multiplication here since this would introduce some multiplication/division operands that are really slow on our CPU. Doing 3x3 pixels might be an option, the problem however is that the 4bpp framebuffer needs a very clever algorithm for that in order to deal with the "half bytes" that represent a pixel. Using only even factors (as opposed to odd numbers) is just much easier. That said, I have an algorithm in mind that would always look at two source pixels and create a factor-6 dither out of them. That would increase the resulting display to 480x432. Going to a 4x4 factor, the screen wouldn't be big enough. We would get a width of 640px, where the K3 only has 600px. Also, the update speed would suffer a lot. As for the second question: There are lots of NES emus out there. However, the harder part is to find one that isn't optimized specifically for i386. I played once with InfoNES, it's not all that good in terms of compatibility, though. And most NES emulators are very timing critical, e.g. sync'ing on VRefresh and stuff like that. That's not going to work so well on e-ink. What I thought about and would like to see, however, is a ScummVM port :-) |
03-26-2012, 11:37 AM | #19 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Yeah, no color because the black and white eink is too slow.
You need a much faster refresh rate to see color on a black and white display: EDIT: Back when color TV was very rare, Coca Cola showed a flickery advertisement during a Superbowl game (extremely popular televised American Football game), that was filmed using the Benham illusion, and so many people were shocked to see color video on their black and white TVs that it overloaded the long distance telephone networks with people calling the TV networks. This illusion is also sometimes called "subjective color" because the amount of color seen varies greatly between individual people. Some people can see bright colors, and others none at all. Personally, I see Dark-Blue, Brown-Red, and a Tan (dark yellow) color. P.S. Although the applet at the above link lets you adjust the speed, the "standard" speed for subjective color is 10 Hz (which is also the blink frequency that can trigger seizures in people with epilepsy, so please do not try this if you have epilepsy. Thanks. Last edited by geekmaster; 03-26-2012 at 12:08 PM. |
03-26-2012, 05:27 PM | #20 | |
Member
Posts: 14
Karma: 10
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 WiFi + 3G
|
Quote:
It's strange. If I run fbgnuboy like this: Code:
#!/bin/sh cd /mnt/us/fbgnuboy ./fbgnuboy --help > gnuboy.log Code:
#!/bin/sh cd /mnt/us/fbgnuboy ./fbgnuboy tetris.gb 2> gnuboy.log cannot access /: Read-only file system |
|
03-26-2012, 05:34 PM | #21 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Ah, I think I know what's going on. Gnuboy tries to store some configuration somewhere, I think after looking at the sources. I did not even notice this.
Well, the trick is to set a proper HOME. Since this stored data isn't important anyway (I think), I suggest to run it like Code:
HOME=/tmp ./fbgnuboy tetris.gb 2>gnuboy.log |
03-26-2012, 05:49 PM | #22 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
As in: http://www.imdb.com/title/tt0072267/plotsummary (That plot summary is a bit lacking, google the book title.) But that was a late 20th century device that had a hard-wired connection to the brain and a basement filling (super for its day) computer. Maybe a standard USB jack behind the left ear and a matching cable to the Kindle's USB connection? For the KT - just use these smilies on the right of this edit box as the buttons for the mood (not mode, mood) selection. |
|
03-26-2012, 06:33 PM | #23 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
(Off topic) This space reserved...
(Just a discussion about references to "The Terminal Man" movie and book). Last edited by geekmaster; 03-27-2012 at 09:31 AM. |
03-26-2012, 06:47 PM | #24 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
In addition to the 10Hz siezure testing, there is another "flicker rate" that impresses itself on the mind. I don't recall what the specifics are, I do know that it was tried (and out-lawed for use as advertisements) on early US television networks. Probably around the same time as the "false color" test broadcasts that you mentioned. |
|
03-26-2012, 07:41 PM | #25 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
(Off topic) This space reserved...
Last edited by geekmaster; 03-26-2012 at 08:14 PM. |
03-27-2012, 02:41 AM | #26 | |
Zealot
Posts: 130
Karma: 10000
Join Date: Mar 2012
Device: Kindle 3G, Kindle Touch 3G, iRiver Story HD, Sony Reader
|
Quote:
Thanks, James |
|
03-27-2012, 07:15 AM | #27 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
03-27-2012, 07:22 AM | #28 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Nah. Those posts might be chatty, but they add to nice atmosphere here in the forums :-)
|
03-27-2012, 08:32 AM | #29 | |
Groupie
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
|
Quote:
|
|
03-28-2012, 01:24 PM | #30 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
To see how fast a video game can update the eink screen using ordered dither, check out this video of a kindle touch playing an old black and white movie clip:
https://www.mobileread.com/forums/sho....php?p=2020810 We should be able to borrow code from that video player when it is published to use in video games. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle VNC viewer (native app, GPLv2) | hawhill | Kindle Developer's Corner | 531 | 12-11-2020 02:55 PM |
Gameboy emulator on PE | bunodosoma | enTourage eDGe | 2 | 11-16-2011 08:19 PM |
Gameboy screen | bookmeal | General Discussions | 7 | 10-03-2011 02:40 PM |
software suggestion: virtualboy(gameboy emulator) | arfarf624 | Kindle Developer's Corner | 3 | 07-27-2011 05:06 AM |
Free (GPLv2) Translation Dictionaries | Elleo | Amazon Kindle | 3 | 01-11-2011 10:57 PM |