Author Topic: 160x240 resolution possible on CSE  (Read 19442 times)

0 Members and 1 Guest are viewing this topic.

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: 160x240 resolution possible on CSE
« Reply #15 on: March 18, 2013, 01:16:34 am »
Cool to hear :D. 20x14 sprites will be handy :D (or of course in the case of text sprites any size, but won't take as long to render).

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #16 on: March 18, 2013, 01:32:29 am »
So, basically you're still using the full 320 horizontal resolution(with interlacing I mean), you're just updating half of it at once.
« Last Edit: March 18, 2013, 04:42:11 am by Art_of_camelot »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 160x240 resolution possible on CSE
« Reply #17 on: March 18, 2013, 04:47:34 am »
2 wide pixels? commodore 64 emulator, anyone?
If you like my work: why not give me an internet?








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: 160x240 resolution possible on CSE
« Reply #18 on: March 19, 2013, 01:28:46 pm »
I just checked Google and the Atari 2600 resolution for NTSC systems appears to be 160x192. So basically with a 160x240 or 160x165 resolution we'll most likely have games that looks similar to the Commodore 64 :P

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: 160x240 resolution possible on CSE
« Reply #19 on: March 23, 2013, 10:27:39 am »
Calc84maniac, do you think you could release a 8xp program for BASIC programmers allowing them to change the screen position and resolution directly from BASIC programs? You could put the program in Omni archives along with ticalc.org ASM misc programs:

If X=1, it would change resolution to 160x240.
If X=Anything else, it would change resolution to 320x240.

Ans would contain the screen position (which I assume would be 0 to 319 in 320x240 mode and 0 to 159 in 160x240 mode). So basically the syntax would be something like this (kinda like other libraries):

1->X:159:Asm(prgmZSCRNRES

Offline Ranman

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1354
  • Rating: +83/-0
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #20 on: March 23, 2013, 11:54:41 am »
I just checked Google and the Atari 2600 resolution for NTSC systems appears to be 160x192. So basically with a 160x240 or 160x165 resolution we'll most likely have games that looks similar to the Commodore 64 :P

Yeah... C64 had 2 modes: 320x200 & 160x200.   ;)
Ranman
Bringing Randy Glover's Jumpman to the TI-89 calculator. Download available at Ticalc.

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: 160x240 resolution possible on CSE
« Reply #21 on: March 25, 2013, 07:46:41 pm »
Just did a quick mockup of what a game could look like at 160x240 resolution using the full color depth of the calculator and it definitively doesn't look bad:



And of course for side scrollers, you just have to make the HUD as minimal as possible then shift the screen starting position to scroll around. There might be some shaking occuring during scrolling for the HUD before it gets updated to its appropriate position, but it would be much faster to display 8x16 sprites than 16x16.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #22 on: March 25, 2013, 11:54:20 pm »
Tile by tile scrolling wouldn't be that bad, either.

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: 160x240 resolution possible on CSE
« Reply #23 on: March 25, 2013, 11:56:21 pm »
True, although for a Mario game this might be annoying to play D:

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #24 on: April 03, 2013, 08:26:39 am »
Not all action games need smooth scrolling, though. You could make a pretty decent platformer on one screen if you were willing to go for a smaller character.

What kind of LCD controller does the CSE use, anyway? I'm curious now.

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: 160x240 resolution possible on CSE
« Reply #25 on: April 03, 2013, 03:32:33 pm »
True. Although I think a lot of action games based on platformers might require smooth movements to prevent hindering gameplay. For example, try to play Sonic the Hedgehog at 4-8 frames per second while still being able to control Sonic properly. :P

Also besides 160x240 resolution, since the speed bottleneck is really drawing to the LCD, you could sacrifice display quality further by using 160x120 mode instead. In 160x120 mode, however, you would need to only update every 2 line of pixels on the screen to gain speed at all:



It may not look super nice, but since pixels are kinda small, it might not be that bad either. Some graphics might sometimes need to have higher contrast so it's not too dark, but this would not be the first time that such technique is used in games, since some old computers did as well.

In the example above, you could go further by using interlacing as well, alternating between odd and even line rows every frame.

In the case where someone would still want to use 160x240 with such technique, interlacing or moving scanlines would be necessary.

So basically, to update the entire game area for vertical scrolling, speed would max out at the following values:

320x240: 4 FPS
320x240 interlaced: 8 FPS
320x120: 4 FPS
320x120 drawing every 2 line: 8 FPS
160x240: 8 FPS
160x240 interlaced: 16 FPS
160x240 scanlines: 16 FPS (might be annoying for the eyes)
160x120: 8 FPS
160x120 drawing every 2 line: 16 FPS

Scanline mode would be kinda useless because it would require shifting the LCD position back and forth between 0 and 160, so you might as well go with interlaced mode. Plus I am unsure if many people would like if their games looked like this:

On a Nspire CX it would be so fast that it would look smoother but on the slower 84+CSE that's how fast the scanlines would alternate.

Then there is also the Starwing/Star Fox and Stunt Race FX trick on the SNES: Not using the entire screen for the game. If you play Star Fox for the SNES, notice how there's a big black frame surrounding the gameplay area. Gemini for the 83+ did that too.
« Last Edit: April 03, 2013, 03:46:51 pm by DJ Omnimaga (Not Admin) »

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: 160x240 resolution possible on CSE
« Reply #26 on: April 16, 2013, 04:11:59 pm »
Note: Taking screenshots from TI ScreenCapture in 160x240 mode is impossible: It either is unable to detect your calc or it throws up an error after 30 seconds of wait.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #27 on: April 16, 2013, 04:30:03 pm »
Personally, I think the non-moving scanlines look quite good. However, that animated one won't look good at all, mostly due to the fact that, like our computer screens, the 84+CSE has an active LCD matrix. (I think. Most color LCDs are, but some older ones weren't and you never know with TI :P)

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: 160x240 resolution possible on CSE
« Reply #28 on: April 17, 2013, 12:30:10 am »
For some reasons my last post vanished...

To sum things up, what I noticed is that on the CSE the scanlines are vertical instead of horizontal, so it's possible that it wouldn't affect the display methods above. The screen, unlike on the Game Boy Advance and TI-Nspire CX, was rotated 90° inside the calc it seems.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: 160x240 resolution possible on CSE
« Reply #29 on: April 17, 2013, 12:57:22 am »
To sum things up, what I noticed is that on the CSE the scanlines are vertical instead of horizontal, so it's possible that it wouldn't affect the display methods above. The screen, unlike on the Game Boy Advance and TI-Nspire CX, was rotated 90° inside the calc it seems.
KermM figured that out long ago based on the datasheet for the driver, which is specifically designed for portrait-orientation LCDs. Hence why the WikiTI page on the LCD has this warning:
Quote
For those following along with the data sheet: Like before, the X/Y plane is flipped in the data sheet documentation. Specifically, the the screen is rotated 90 degrees from the way the manufacturer expects, so "horizontal" and "vertical" refer to the OTHER, i.e. horizontal means up and down on the screen. Also, "up" and "down" are switched with "left" and "right".
This is also why we select interlaced mode for the double-width pixels hack. If the controller scanned the other way, it would generate double-height pixels.
« Last Edit: April 17, 2013, 12:58:48 am by DrDnar »
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC