Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: tr1p1ea on November 28, 2013, 11:11:32 pm

Title: TI-84+CSE Mode7 test
Post by: tr1p1ea on November 28, 2013, 11:11:32 pm
Just a quick mode7 test on the 84C. I wrote this at work this morning so i havent tested on hardware yet.

The canvas is 128x60 and supports h=l colours (like xLIB).

(http://img.ourl.ca//m7.gif)

Like i said i havent tested on hardware yet so i dont think its as fast as this screenshot. That being said i havent attempted to optimise yet. Plus the accuracy is a little off as well :S.

Anyway just a test, im not sure what will become of it. Ill post back with impressions once i get home to test it on my calc :).
Title: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on November 28, 2013, 11:14:34 pm
*.*

That is cool. IIRC jsTIfied screenies run at the same speed as the real calc or close, but I guess we need to not get our hopes up. At such resolution I am confident it could have a decent/playable frame rate, though. You should try with a tilemap with better tiles, though :P (such as Mario Kart-styled ones)

Also, do you think you could have two strips of clouds or something at the top of the screen that doesn't necessarily update the entire sky?
Title: Re: TI-84+CSE Mode7 test
Post by: Ranman on November 28, 2013, 11:17:34 pm
Lookin' good!

You wrote that in one morning? Damn.
Title: Re: TI-84+CSE Mode7 test
Post by: tr1p1ea on November 28, 2013, 11:18:55 pm
Yeah i should note that its in 160 mode too.

Over the weekend i might look at updating the tiles (at work currently :)).

If i were to do clouds i might look at doing them with lines or something for speed reasons.

Looking forward to seeing if it works as playable on calc, ill upload a yt video when i can.

I should note that i have written mode7 stuff before, so i was able to reuse some old (and damned buggy) code from earlier.
Title: Re: TI-84+CSE Mode7 test
Post by: Matrefeytontias on November 29, 2013, 02:29:15 am
HoLy F*CkInG Sh*t that's awesome O.O

I can't even do Mode7 at a reasonable speed on monochrome z80 calcs D:
Title: Re: TI-84+CSE Mode7 test
Post by: Sorunome on November 29, 2013, 10:19:52 am
wow, that is freaking awesome O.O
Title: Re: TI-84+CSE Mode7 test
Post by: Dapianokid on November 29, 2013, 11:31:23 am
/me wonders about what mode7 is and realizes that the internet doesn't cut it. Looking stuff up isn't the same as getting some direction from other omnimagicians
Title: Re: TI-84+CSE Mode7 test
Post by: Streetwalrus on November 29, 2013, 11:33:58 am
/me directs Dapianokid to SNES HW docs
Holy freaking *.* ...
Title: Re: TI-84+CSE Mode7 test
Post by: tr1p1ea on November 30, 2013, 08:15:10 pm
Uploaded a video of it running on an actual calc. The speed is ok, but i havent started optimizing as yet, so hopefully i can get a little more out of it.



Also sorry for how annoyingly blurry it is, silly phone.
Title: Re: TI-84+CSE Mode7 test
Post by: AssemblyBandit on November 30, 2013, 08:57:27 pm
I want it!
Title: Re: TI-84+CSE Mode7 test
Post by: Streetwalrus on December 01, 2013, 01:53:45 am
Now, THAT looks pretty cool ! :D You guys keep blowing my mind with your CSE stuff.
Title: Re: TI-84+CSE Mode7 test
Post by: Sorunome on December 01, 2013, 03:42:22 am
Yeah, that is looking awesome! +1 for sure ;)
Title: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on December 03, 2013, 01:00:42 am
Indeed. I wonder if only using every two line of the vertical resolution would actually speed things up? It may not look as pretty, but on the small calc resolution, maybe it won't look that bad, especially with non-bright colors?

(http://img.ourl.ca//halflines.png) (http://img.ourl.ca//halflines2.png)

Drawing twice fewer pixels would definitively cut down drawing time, though, and you wouldn't lose resolution since it's already 160x120.

EDIT: In the worst case scenario: :trollface:

(http://img.ourl.ca//halflines3.png)
Title: Re: TI-84+CSE Mode7 test
Post by: Streetwalrus on December 03, 2013, 12:28:20 pm
Lol DJ, scanlines are a good idea indeed. Maybe you could do actual vertical interlacing too. That'd make it twice as fast to draw to the screen and you wouldn't lose much quality if the frame rate is high enough. ;)
Title: Re: TI-84+CSE Mode7 test
Post by: chickendude on December 03, 2013, 03:16:02 pm
That looks amazing, tr1p.
Title: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on December 03, 2013, 09:24:16 pm
Lol DJ, scanlines are a good idea indeed. Maybe you could do actual vertical interlacing too. That'd make it twice as fast to draw to the screen and you wouldn't lose much quality if the frame rate is high enough. ;)
The issue with vertical interlacing is that this uses 160x240 mode, so the vertical lines would be twice wider, thus, more noticeable.

Also, since the LCD is placed vertically, the extreme flicker that would result from drawing every two line would cause eye cancer.

For those who don't have the real calc, this is how the 84+CSE LCD look like in 160x240 mode:

(http://img.ourl.ca//halflinesanimated2.gif)

See what happens in the right screenshot with vertical scanlines added.
Title: Re: TI-84+CSE Mode7 test
Post by: Sorunome on December 04, 2013, 08:59:34 am
such games would need an epileptic warning O.O
Title: Re: TI-84+CSE Mode7 test
Post by: TheMachine02 on December 04, 2013, 12:18:59 pm
such games would need an epileptic warning O.O

(http://i.imgur.com/nWmXzt8.jpg)
Title: Re: TI-84+CSE Mode7 test
Post by: tr1p1ea on December 05, 2013, 09:05:06 pm
I made a few small changes to improve the accuracy of the engine. It is mainly evident when at angles of 90deg intervals as shown below. At 45deg it is still pretty average, but at least its a little better overall.

(http://img.ourl.ca//m7.png)

Also i like the idea of scanline interlacing, its something that i have been thinking about implementing. Such a trick should greatly improve speed, just not sure about image quality.
Title: Re: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on December 05, 2013, 09:20:25 pm
Wow good job tr1p1ea. :D
Title: Re: TI-84+CSE Mode7 test
Post by: Sorunome on December 06, 2013, 09:49:26 am
^that, it's looking awesome :)
Title: Re: TI-84+CSE Mode7 test
Post by: ClrDraw on December 06, 2013, 09:03:21 pm
Spoiler For Flickering Image:
(http://img.ourl.ca//halflinesanimated2.gif)

If you think that could cause seizures, you should put it in a spoiler so people don't get seizures from the screenshot  ;)
Title: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on December 06, 2013, 09:07:48 pm
Nah, I doubt this would be enough to cause seizures. However, on a real calculator, the flickering would be so incredibly annoying and eventually cause some eye strain or something.
Title: Re: TI-84+CSE Mode7 test
Post by: tr1p1ea on July 08, 2014, 11:08:26 pm
calc84 spoke about porting his engine to the CSE as well (well more like added to his todo list). I jokingly made a deal that he can do fzero and i can do mariokart! Though I doubt anything more than a demo will come of this, I would like people to try it (when its in a more usable form).

Here is another screenie without the free rainbow road:

(http://img.ourl.ca/1404906982.gif)

Also as Runer noted, the angles/elevation/scale/distances etc are all out of whack as this is a proof of concept. This can be adjusted and will need to be if its going to be any use to anyone.
Title: Re: TI-84+CSE Mode7 test
Post by: DJ Omnimaga on July 08, 2014, 11:19:10 pm
Glad you posted this here too. I hope you don't drive like this in real life lol. Looks awesome and smooth, though :D
Title: Re: TI-84+CSE Mode7 test
Post by: tr1p1ea on July 08, 2014, 11:19:57 pm
Hahaha well I only drive like this in RL if i get a star ... !
Title: Re: TI-84+CSE Mode7 test
Post by: Streetwalrus on July 09, 2014, 08:50:37 am
Hahaha well I only drive like this in RL if i get a star ... !
Lol. XD

Also yeah, it looks really fast. O.O