Page 1 of 2

Mode 7

PostPosted: Mon Jan 07, 2008 2:36 pm
by asmodeus
Can anybody make a script that displays a 3d floor (mode 7: http://en.wikipedia.org/wiki/Mode_7)?
I mean that, that is in super mario kart or f-zero for the snes. If anybody can show me a script, that works, I'll give him 3 points!

Re: Mode 7

PostPosted: Tue Jan 08, 2008 12:20 am
by Game A Gogo
I have done my research on that as well.
But you'd be looking more at ray casting, there is a demo for this already, but hard to understand and the other problem is that it's only for walls.
You'll need to search on "Floor ray casting"

I am trying to make a code that simulates something similar, but it does not have rotation and I need to read the image from an exterior file.
Here is the code I am trying to transform:
Code: Select all
x=if(above(y,.0),x/5/abs(y)*3,0);
y=if(above(y,.0),-.03/y+1,y);
(Note: this code is from an AVS I made on winamp, so that's why it has a different syntax then GE)
If I get any success, I will give it to everyone

Re: Mode 7

PostPosted: Tue Jan 08, 2008 9:12 am
by Bee-Ant
Well, I have got another idea to make that...wait, I'll make it's demo :mrgreen:

Re: Mode 7

PostPosted: Tue Jan 08, 2008 1:06 pm
by Bee-Ant
Here it's
Well, this demo is about front view racing in the dark tunnel... :mrgreen:

Re: Mode 7

PostPosted: Wed Jan 09, 2008 12:46 am
by Game A Gogo
This is not what he wants >,,>

Re: Mode 7

PostPosted: Wed Jan 09, 2008 3:05 am
by Bee-Ant
Yeah I know :roll:
But... :roll:

Re: Mode 7

PostPosted: Fri Jan 11, 2008 12:48 pm
by Bee-Ant

Re: Mode 7

PostPosted: Fri Mar 07, 2008 5:42 pm
by automail20
Oh, like an FPS Game! That's what he means! Only without a gun!

Re: Mode 7

PostPosted: Fri Mar 07, 2008 8:04 pm
by Game A Gogo
Also think about F-Zero man!!!! A real great mode 7 example :D

Re: Mode 7

PostPosted: Fri Mar 07, 2008 10:18 pm
by edh
@GameAGogo, this seems like an opportunity to reuse a bit of your 3D demo. Instead of resizing Mario, you could resize tiles from the background.

Re: Mode 7

PostPosted: Fri Mar 07, 2008 10:45 pm
by Game A Gogo
well, it would be a totally different method, as all pixel are scaled differently

Re: Mode 7

PostPosted: Fri Mar 07, 2008 10:54 pm
by supa-tails
F-ZERO ROCKS! :D

Re: Mode 7

PostPosted: Fri Mar 07, 2008 11:03 pm
by Game A Gogo
that's why I have it on my laptop and play it at school 8D

Re: Mode 7

PostPosted: Sat Mar 08, 2008 4:35 pm
by supa-tails
Lol, me too, I have ROMS of a whole lot of N64 games on my jump drive and I play them on the school computers :D

Re: Mode 7

PostPosted: Sat Mar 08, 2008 7:15 pm
by Game A Gogo
:3