mode 7
Moderator: MaxCoderz Staff
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
mode 7
Since there hasn't been anything in here in ages, i thought id just add something quick.
Been messing with mode 7 over the past 2 weeks, mainly during lunch at work *hides*.
Very rough and not awesomely accurate (uses lots of shortcuts ), but its kind of the effect:
Its only a side project for kicks, i don't think anything will become of it. Just in case anyone is paying these forums any attention .
Been messing with mode 7 over the past 2 weeks, mainly during lunch at work *hides*.
Very rough and not awesomely accurate (uses lots of shortcuts ), but its kind of the effect:
Its only a side project for kicks, i don't think anything will become of it. Just in case anyone is paying these forums any attention .
Re: mode 7
That is really cool o.o I need to better figure this stuff out o.o Do you read from a bitmap to figure out which regions should be darkened? In other words, are you pretty much viewing a bitmap from ground level, so to speak?
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: mode 7
Thats kind of the idea. You can read from a bitmap or in this case a tilemap to save space.
Basically the idea is for each line you draw you apply a scaling factor. To apply rotations its kind of like a line routine that steps through your image data each line using the magic of trig.
Im assuming anyone who has dabbled in calc mode7 has got their inspiration from this: http://www.helixsoft.nl/articles/circle/sincos.htm
Very good resource .
Basically the idea is for each line you draw you apply a scaling factor. To apply rotations its kind of like a line routine that steps through your image data each line using the magic of trig.
Im assuming anyone who has dabbled in calc mode7 has got their inspiration from this: http://www.helixsoft.nl/articles/circle/sincos.htm
Very good resource .
Re: mode 7
/me got all excited when you posted this in irc.
what sorts of shortcuts did you use? it looks fast and not too fuzzy for a game of some sort.
what sorts of shortcuts did you use? it looks fast and not too fuzzy for a game of some sort.
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: mode 7
It looks a lot better with rough grayscale:
calc84manic was kind enough to discuss how gs is implemented in his fzero engine, its the same idea here however it is not in synch timing wise its still a good start. Interestingly the way the rest of the engine works is vastly different. Its probably one of the most fascinating things about coding, there are lots of ways to achieve the same goal .
calc84manic was kind enough to discuss how gs is implemented in his fzero engine, its the same idea here however it is not in synch timing wise its still a good start. Interestingly the way the rest of the engine works is vastly different. Its probably one of the most fascinating things about coding, there are lots of ways to achieve the same goal .
- benryves
- Maxcoderz Staff
- Posts: 3088
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: mode 7
It looks very smooth and fast, tr1p1ea - great work!
Re: mode 7
Yeah, fast o.o Are you using 15MHz, as well?
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: mode 7
Yeah that screenie is at 15MHz, seems to work pretty well at that fortunate cpu speed .
- Art_of_camelot
- Regular Member
- Posts: 124
- Joined: Sun 09 Sep, 2007 8:50 pm
- Location: The dark side of the moon
- Contact:
Re: mode 7
Def. looks better with gray. Even if nothing comes of this it's a cool distraction nonetheless.
Projects:
Projects:TBA-Soonish.
Updated 5/3/12
Projects:TBA-Soonish.
Updated 5/3/12
Re: mode 7
not being in synch doesn't seem to matter a whole lot with that much motion, too, so i don't think it's something you need to worry too much about.
you should definitely try turning this into something bigger (once you're done with desolate, of course)!
you should definitely try turning this into something bigger (once you're done with desolate, of course)!
-
- Extreme Poster
- Posts: 340
- Joined: Fri 07 Jul, 2006 2:39 pm
Re: mode 7
Wow, how'd i miss this? It looks great! I really am awful at math and have long since forgotten how all that trig stuff works/what it does, i really should revisit that stuff...
- Madskillz
- Calc Wizard
- Posts: 745
- Joined: Fri 17 Dec, 2004 10:22 pm
- Location: Wandering around in the Jungle...
- Contact:
Re: mode 7
Mario Kart! Ha just kidding, i'm with chickendude...once I finished college all that stuff got filed away somewhere. All those coding going on is starting to make me feel left out ha
The Revolution is here...
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: mode 7
Well ive ported the basics over to the 84C, with some modification of course.
At this stage i havent optimised so its a little slow. Currently the draw area is 128x60 in 160 mode:
I havent tested on hardware, but think that it wont run this fast (think the screenie delays are borked).
At this stage i havent optimised so its a little slow. Currently the draw area is 128x60 in 160 mode:
I havent tested on hardware, but think that it wont run this fast (think the screenie delays are borked).
- benryves
- Maxcoderz Staff
- Posts: 3088
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: mode 7
That looks really neat, tr1p1ea - did you get the opportunity to try it on hardware to see how well it performs?
- tr1p1ea
- Maxcoderz Staff
- Posts: 4141
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: I cant seem to get out of this cryogenic chamber!
- Contact:
Re: mode 7
http://www.youtube.com/watch?v=pj20af9NbzM
Thanks Ben! .
That is a video of a rough test on hardware, the speed is ok but the accuracy has improved since that was taken.
Thanks Ben! .
That is a video of a rough test on hardware, the speed is ok but the accuracy has improved since that was taken.