Author Topic: What does x-level grayscale look like?  (Read 4024 times)

0 Members and 1 Guest are viewing this topic.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
What does x-level grayscale look like?
« on: November 28, 2011, 05:54:19 pm »
This is a question people ask a lot, will x-level grayscale look good? or will it flicker? Well, now you can decide for yourself. I spent all day not doing my thanksgiving break homework and instead working on this program. It displays all levels of grayscale from 1-8 so you can see what looks good and what doesn't.

Controls:
  • Left / right - swap levels
  • / / * - adjust lcd frequency
  • + / - - adjust contrast
  • 2nd - report lcd frequency
  • Clear - quit


Send this to your real calculator and tell me what you think. This can serve as your model for what is possible because I believe I did this the best that I could.

Also, if you need some grayscale routines, I'm including the source. Just be warned the 7-level one is a piece of crap.

Edit:
   j/k on the messed up, it was good from the start
« Last Edit: November 28, 2011, 05:58:18 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: What does x-level grayscale look like?
« Reply #1 on: November 28, 2011, 07:19:02 pm »
I remember messing with 5 level grayscale in xLIB before, but Nitacku's ditherer was not out yet and making sprites was a major PITA, since most softwares only allowed 4 level conversion. It didn't flicker incredibly bad, but it was 15 MHz only, due to the nature of TI-BASIC.

I never saw any 5 level grayscale game on calcs, though. The issue with 4 level grayscale and higher is that on the regular 83+ the contrast is so weird that we barely see one of the shades of gray.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: What does x-level grayscale look like?
« Reply #2 on: November 29, 2011, 03:24:53 am »
Anything higher than 6 levels (in the screen shot) appears to get a bit rough. Is this program 15 Mhz models only?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: What does x-level grayscale look like?
« Reply #3 on: November 29, 2011, 02:50:46 pm »
Well, the screenshot isn't a good example because I had wabbitemu set for 12 shades of gray. So when you try to distribute that over 8, 7, or 5 colors, you run into problems.

And yes, it's only for 15MHz models because I used the crystal timers to make the grayscale perfect.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: What does x-level grayscale look like?
« Reply #4 on: November 29, 2011, 05:12:01 pm »
You should write a program that can display an arbitrary amount of shades :D

*Builderboy hides*

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: What does x-level grayscale look like?
« Reply #5 on: November 29, 2011, 06:35:45 pm »
Btw 5 level grayscale in BASIC with xLIB is insanely huge, because each interlaced sprite frame has to be pre-rendered then stored into 8xi files separately, and it takes 4 pictures for one sprite sheet.  The same is true about other grayscale levels but the size difference with ASM is much more signifiant than at 4 level.