トピック
Josiah Spike4

Mode7

I don't understand how mode 7 works and I would like to make a game with it, can some one please teach me?
0そうだね
プレイ済み
返信[1]
親投稿
12Me21 12Me21
MODE=7 there that's it.
1そうだね
プレイ済み
返信[2]
親投稿
TN21 Trinitro21
Mode 7 can be achieved a couple of different ways. One of them is clever zooming of the different horizontal layers of pixels on the screen. That's what produced the effect on the SNES and GBA, but it's hard to implement into SB. Another is using a 3D projection formula to derive some equations that translate 2D coordinates to 3D coordinates assuming constant Y values.
3そうだね
プレイ済み
返信[3]
親投稿
TN21 Trinitro21
The equation I use for 3D projection is X2D=X/Z*ZOOM:Y2D=Y/Z*ZOOM Using algebra, assuming a constant Y you can easily derive the equations Z=Y/Y2D*ZOOM:X=Z*X2D/ZOOM Which should get you 3D coordinates from 2D coordinates and a constant Y value. Using this you can easily use the X and Z coordinates as X and Y coordinates and place pixels accurately on the screen for the mode 7 effect.
3そうだね
プレイ済み
返信[4]
親投稿
Josiah Spike4
Thanks, I will be sure to give it a shot.
1そうだね
プレイ済み