Author Topic: Mode 7  (Read 4864 times)

0 Members and 1 Guest are viewing this topic.

Offline fb39ca4

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1749
  • Rating: +60/-3
    • View Profile
Mode 7
« on: July 22, 2010, 12:30:06 pm »
Does anyone know the math involved for mode 7 graphics? I googled it, but got a bunch of GBA tutorials (GBAs have it as a graphics mode). The wikipedia page wasn't much help either.

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: Mode 7
« Reply #1 on: July 22, 2010, 02:25:24 pm »
Are you going to write a mode 7 engine for the NSpire/68k calcs? Sounds good, but I doubt it's gonna be easy. Anyway, here's some information I found while searching around. (I don't know the subject that well)

- http://en.wikipedia.org/wiki/Affine_transformation
- http://en.wikipedia.org/wiki/Linear_map

So far it looks like lots of linear algebra and matrix theory (this pretty much always crosses your path in 3D graphing engines).
« Last Edit: July 22, 2010, 02:26:16 pm by mapar007 »

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: Mode 7
« Reply #2 on: July 22, 2010, 04:25:47 pm »
Darn, you beat me to this project. I was going to start one today :P
I've been trying to understand the math myself. From what I see, it indeed greatly resembles the math behind 3D.
This tutorial is probably your best bet.
@Mapar007: I don't think you need linear maps to do mode7. That's goes too much into the theory of matrices and such.
« Last Edit: July 22, 2010, 04:26:21 pm by bwang »

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: Mode 7
« Reply #3 on: July 27, 2010, 08:40:56 pm »
Maybe Calc84maniac could also help, as he wrote one for the z80 calcs. However, his was in z80 ASM, not in C
« Last Edit: July 27, 2010, 08:41:18 pm by DJ Omnimaga »