Author Topic: How do you get grayscale?  (Read 4246 times)

0 Members and 1 Guest are viewing this topic.

nerd83+

  • Guest
How do you get grayscale?
« on: June 11, 2009, 12:32:39 am »
Yeah do anybody here know how to get grayscale

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: How do you get grayscale?
« Reply #1 on: June 11, 2009, 02:04:22 am »
This question was already answered in the topic immediately below this one, in fact (as of this writing).

http://ourl.ca/3390

Next time you ask for help, you might want to peruse the first page of the help and support section. I won't suggest the forum's search bar, since I've never gotten anything good from that. If you *must* search yourself, try giving Google a spin. "grayscale TI-83 Plus" is a good start.
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How do you get grayscale?
« Reply #2 on: June 11, 2009, 02:20:57 am »
This question was already answered in the topic immediately below this one, in fact (as of this writing).

http://ourl.ca/3390

Next time you ask for help, you might want to peruse the first page of the help and support section. I won't suggest the forum's search bar, since I've never gotten anything good from that. If you *must* search yourself, try giving Google a spin. "grayscale TI-83 Plus" is a good start.
Actually, there's only one page of help and support XD

But I agree the search engine on the forums is crappy as it is x.x. I can customize it, but I never understood how. It looks so complicated x.x

(also, this question was actually moved from another unrelated topic in the Feedback section, I think I should have merged it with the other grayscale topic, but again, some info might be there, despite the fact it's mostly ASM related)

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: How do you get grayscale?
« Reply #3 on: June 11, 2009, 01:13:17 pm »
Well the screen only supports black and white. Or a pixel is on or off.
But if you make the lcd change between two states and alternate them constantly, and achieve grayscale.
Images in this link:
http://www.junemann.nl/maxcoderz/viewtopic.php?p=64593#p64593

To better gray, exits a technique called interlacing. I won't explain it but the last picture shows it.


This is theory, now welcome to the harsh reality.
In BASIC, to achieve good effect, you definitely have to use a lib such as xLib and master BASIC and stick to 3-level gray. 4 level is doable to title screens and such.
You have to constantly alternate display 2 pictures and have the code for this in the entire game loop...


Even in ASM it is not easy: the way the lcd mapping works sucks. But in ASM as you have much more control and speed, you achieve the best results. But the theory is all the same.

The most update tutorial I know for BASIC:
http://tifreakware.net/tutorials/83p/b/cdi/l3.htm
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How do you get grayscale?
« Reply #4 on: June 11, 2009, 01:36:15 pm »
4 level is fine inside game engines too using xLIB, but only if you make the game only for the Silver Edition or 84+ models, because it's slow

The following shows the speed before adding any collision detection checks. With collision detection it's twice slower. This screenshot is taken on TI-84+, btw, on TI-83+ it's twice slower
« Last Edit: June 11, 2009, 01:51:27 pm by DJ Omnimaga »

Offline nitacku

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 300
  • Rating: +30/-1
  • ni-ta-ku ^_^
    • View Profile
Re: How do you get grayscale?
« Reply #5 on: June 12, 2009, 01:08:43 am »
haha, I can tell that you are using the MLGS editor to generate the 4 level gs. You should create a demo for the the 5 level setting as well :P (j/k, the speed with 5 level makes it only useful for title screens).

Attached and is a demo in 3 level gs using the MLGS editor of a game that everyone will recognize.
<picture of 3 level gs zelda will go here when imageshack starts working>