Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Mode 7 view setup
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 24-4-2016 at 07:51 PM
Mode 7 view setup


I was recently trying to make something with mode 7 and I found it was a bit of a pain trying to get the right view set up using a method of trial and error to set the m7 parameters such as height and distance. So, I knocked up this simple m7 view editor which allows you to adjust the camera position and focus while in the game and then save the settings.
You never know, it might come in handy.

Attachment: m7setup.PRG (3kB)
This file has been downloaded 555 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 24-4-2016 at 10:08 PM


This is really cool, nice work dom.


You're right about mode7 being a bit of a pain to get setup right, something i know too well from working on the mario kart game - ended up adding various flying / cheat modes to get the correct view

View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 26-4-2016 at 04:51 AM


Thanks.
When the creativity is flowing, stopping to make tools like these can seem like a waste of time resources as well as a distraction. However, as in this case, I'd say they are generally worth it as they often pay for themselves almost immediately.
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 3-5-2016 at 01:45 PM
FIXED


IT SHOULD BE WORKING NOW.
Heres is a nice effect applied to a DIV original.All you need to do is overlay a mode 7 view over the original game and use map_xput() to place the graphics on the sheet.Then after each frame use map_xput() again, this time with a transparent blank version of the background to semi-erase the graphics. SNAP0000.png - 69kB



If you want to try it, put all these files in a folder along with the relevant sounds from the original "Steroids" which you can get from the "steroids" folder inside the PCM folder. (in case you didn't know)








Attachment: fx33.pcm (16kB)
This file has been downloaded 501 times

Attachment: nave.pcm (17kB)
This file has been downloaded 478 times

Attachment: steroid.fnt (23kB)
This file has been downloaded 483 times

Attachment: tubo5.pcm (10kB)
This file has been downloaded 479 times

Attachment: tubo8.pcm (2kB)
This file has been downloaded 481 times

Attachment: A4oids.PRG (11kB)
This file has been downloaded 486 times

Attachment: A4oids.FPG (12kB)
This file has been downloaded 497 times

Attachment: m7settings.dat (16B)
This file has been downloaded 494 times

View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 5-5-2016 at 08:42 PM


I keep meaning to test this, but since my dev setup of div doesnt include all the support stuff, I keep forgetting...


Looks very cool though!
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 6-5-2016 at 04:57 AM


Quote: Originally posted by MikeDX  
I keep meaning to test this, but since my dev setup of div doesnt include all the support stuff, I keep forgetting...


Looks very cool though!



Don't bother just yet. I just tried it on another computer and it doesn't work straight out of the box.. I'll fix it.
View user's profile View All Posts By User
blostec
DIV Junior
**


Avatar


Posts: 7
Registered: 20-4-2016
Location: Spain
Member Is Offline


[*] posted on 8-5-2016 at 05:36 PM


I just tried and looks really nice, good work dom cook! :thumbup:
View user's profile Visit user's homepage View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 9-5-2016 at 08:46 PM


Quote: Originally posted by blostec  
I just tried and looks really nice, good work dom cook! :thumbup:



Thanks matey.
I was beginning to wonder.
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 28-11-2016 at 01:01 PM
Mode 7 cursor


I was browsing some files when I came across this prg that has a cursor that aligns to a mode 7 surface. Not sure it's particularly useful but I'm posting it for posterity.

Use the mouse buttons for a couple of effects which demonstrate that the mouse is in the M7 world.




[Edited on 28-11-2016 by dom cook]

[Edited on 28-11-2016 by dom cook]

Attachment: m7_cursor.PRG (4kB)
This file has been downloaded 167 times

SNAP0001.png - 6kB
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 17-12-2016 at 08:14 AM


Here's an improved version which allows you to edit at any camera angle without the mouse directions getting messed up.

Attachment: m7_cursor01.PRG (4kB)
This file has been downloaded 110 times

SNAP0001.png - 5kB
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 22-12-2016 at 06:18 PM
mode 7 draw function


This snippet has a function which is meant todraw lines and points in mode 7 coordinates
The image shows an array of mode seven processes aligned with corresponding primitive lines,
These lines are drawn with the function:
draw_m7line(x1,y1,height1,x2,y2,height2)




SNAP0002.PNG - 3kB

Attachment: m7_draw.PRG (4kB)
This file has been downloaded 88 times



[Edited on 22-12-2016 by dom cook]
View user's profile View All Posts By User
MikeDX
DIV Nerd
*********


Avatar


Posts: 8388607
Registered: 25-2-2016
Member Is Offline


[*] posted on 22-12-2016 at 07:40 PM


Dom are you using this to prove / disprove your theory that DIV's mode7 is broken?
View user's profile View All Posts By User
dom cook
Div Pro
******




Posts: 233
Registered: 4-3-2016
Member Is Offline


[*] posted on 22-12-2016 at 07:59 PM


Quote: Originally posted by MikeDX  
Dom are you using this to prove / disprove your theory that DIV's mode7 is broken?


No this is something else. It's meant to be useful.
I posted some code that shows the problem I was having in the other thread. The DLL tutorial one. I know it's not the ideal place but...


However!
This does prove itself to be broken, It only works when the camera is at 0,0. Darn it!

[Edited on 24-12-2016 by dom cook]
View user's profile View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]