Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (108)
games submitted by our members
Games in WIP (536)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Mode 7?  (Read 1122 times)
0 Members and 1 Guest are viewing this topic.
Offline Eliwood

Junior Member


« Posted 2006-11-17 18:48:33 »

How would I go about implementing/emulating the SNES' Mode 7 in Java?

Offline oNyx

JGO Coder

Medals: 1

pixels! :x

« Reply #1 - Posted 2006-11-17 19:37:03 »

Mode7 covers several different effects. So which one are you after? Rotating some ground plane as in mario kart or f-zero?

弾幕 ☆ @mahonnaiseblog
Offline Eliwood

Junior Member


« Reply #2 - Posted 2006-11-17 20:20:02 »

Right now, I'm just after emulating the effect used in world maps for RPG's (like Secret of Mana), so that would probably fall under the rotation part of it. An explanation of the other effects wouldn't hurt though. Wink

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline fletchergames

Senior Member

« Reply #3 - Posted 2006-11-17 20:31:37 »

Maybe you could just draw the screen to a BufferedImage prior to drawing it to the actual screen.  Then you could enlarge whatever part of the BufferedImage you need and rotate it as necessary.

If I'm thinking of the right effect from Secret of Mana, it kind of looks like the screen just keeps zooming in and rotating faster and faster.
Offline woogley
« Reply #4 - Posted 2006-11-17 20:34:36 »

i started out doing something similiar a while back to get some basic texture mapping in some java2d apps. this tutorial is pretty good, though it involves pixel-by-pixel operations, so you might find it best to use MemoryImageSource or something Wink

it seems geared towards ROM developers, but it explains some of the math that might help you

also note that he wrote a second page after that (which isnt immediately obvious), so don't forget to check that also:
Offline oNyx

JGO Coder

Medals: 1

pixels! :x

« Reply #5 - Posted 2006-11-17 21:21:04 »

"The Super NES console has eight modes, numbered from 0 to 7, for displaying background layers, the last one having a single background layer that can be scaled and rotated."

It was also used for effects which looked like there is something rotating infront of some background. The background, however, was actually build out of sprites. (An example would be one of the Contra/Probotector boss fights.)

弾幕 ☆ @mahonnaiseblog
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.


Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (16 views)
2014-07-30 21:08:39

Riven (22 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!