mode 7

Here you can find side projects of the staff and great projects which we think should get extra support. (Note that featured projects are not projects by staff members of MaxCoderz)

Moderator: MaxCoderz Staff

User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

mode 7

Post by tr1p1ea »

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:

Image Image

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 :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Xeda
New Member
Posts: 42
Joined: Sun 06 Feb, 2011 7:08 am

Re: mode 7

Post by Xeda »

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?
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: mode 7

Post by tr1p1ea »

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 :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
shmibs
New Member
Posts: 33
Joined: Thu 19 Nov, 2009 12:33 am
Location: you have a cute head

Re: mode 7

Post by shmibs »

/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.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: mode 7

Post by tr1p1ea »

It looks a lot better with rough grayscale:

Image

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 :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3078
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: mode 7

Post by benryves »

It looks very smooth and fast, tr1p1ea - great work! :-)
Xeda
New Member
Posts: 42
Joined: Sun 06 Feb, 2011 7:08 am

Re: mode 7

Post by Xeda »

Yeah, fast o.o Are you using 15MHz, as well?
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: mode 7

Post by tr1p1ea »

Yeah that screenie is at 15MHz, seems to work pretty well at that fortunate cpu speed :).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
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

Post by Art_of_camelot »

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
User avatar
shmibs
New Member
Posts: 33
Joined: Thu 19 Nov, 2009 12:33 am
Location: you have a cute head

Re: mode 7

Post by shmibs »

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)!
chickendude
Extreme Poster
Posts: 339
Joined: Fri 07 Jul, 2006 2:39 pm

Re: mode 7

Post by chickendude »

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...
User avatar
Madskillz
Calc Wizard
Posts: 745
Joined: Fri 17 Dec, 2004 10:22 pm
Location: Wandering around in the Jungle...
Contact:

Re: mode 7

Post by Madskillz »

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...
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: mode 7

Post by tr1p1ea »

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:

Image

I havent tested on hardware, but think that it wont run this fast (think the screenie delays are borked).
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3078
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: mode 7

Post by benryves »

That looks really neat, tr1p1ea - did you get the opportunity to try it on hardware to see how well it performs?
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4132
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Re: mode 7

Post by tr1p1ea »

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.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Post Reply