![]() |
Graal Mode 7
Stefan, would this be possible to program into the Graal engine? The technique was made for SNES, and would be quite.. awesome to see on Graal.
http://en.wikipedia.org/wiki/Mode_7 Moderator; this link is very much related to what I'm asking for, please dont remove it. |
that would be a realy good idea
|
I can see where that would open up a whole new way of having the overworlds work when it comes to distance fighting etc. Not as complicated as 3D but has a similar effect.
|
Chrono Trigger also used this for the minirace. :P
|
Secret of Mana used it <3
|
I want to be able to do Final Fantasy 6 overworlds ^^
|
I love how Terranigma for the SNES used this effect on both their Overworld and their Underworld.
|
An excellent idea. One of the best i've read on the forums in recent months.
|
Yeah, I'm certainly in favor of this in principle, though I'd like to know what its affects on the client and computer may be.
|
I would just love to see that by implented!! :D
Very nice idea Ziro! :p |
I'm in the middle of scripting something along these lines right now :)
Maybe I'll post a screenshot when I'm done. But ya, would be a nice addition. |
|
Awesome!!
|
Quote:
|
We await Stefan's input on the subject.
THIS IS A CUE<- THAT IS A CUE |
Quote:
IT WAS A CUE I agree. |
Quote:
|
Quote:
|
You don't need source code, there is already an explanation of what Mode 7 does. You have your end result right there, now you just need to figure out how to get to it.
I'm sure you already know this Googi. |
Mode 7:
Take the image. Put it on a polygon (skin). Skew the polygon. Done. The interesting math is for moving diagonally, and having the map keep track of where you are...that's matrix math, that is. "For every step you take back, move one bit closer to the center. For every step you take forward, move one bit further from the center." |
Dusty that is so cool. Just like z3 map ^^ oh please tell me how you did it? Like how did you get the players head to move properly with that perspective, I'm completely clueless with scripting with matrices. XD
|
Uh you don't really need matrices. Here is example of drawing a tilted polygon.
PHP Code:
|
right right I know how to do that but what I need to know is how he got the players head to move accordingly with the tilted polygon. :P
|
Actually I used 2 dimensions. Doing what you did won't skew the image properly.
You have to alter the x dimensions accordingly. Here is what I used in my script, though it's probably embarrassing math-wise. PHP Code:
When doing stuff like putting the player's horizontal position on the map, I use the basic formula (player.x/gmap.width)*mapwidth. What I did for this map is determine the mapwidth depending on the player's position vertically. I use a base mapwidth of the widest part of the map(in this case, the bottom) and subtract ((player.y/gmap.height)*mapheight)*(widestmapwidth-skinniestmapwidth). If that makes sense. Either way, I don't advise doing it that way. Also, it seems the script doesn't work exactly the way I wanted. The position seems off, but I think it's because of the way Graal maps the image onto the polygon(as you can see in the screenshot, the bottom right is stretched horizontally a lot more than the top-right). I wanted to do this script using eulerrotation... but it doesn't seem to work and I can't find anyone who knows how to use it. |
sexy :cool:
|
How would doing what I did not skew the image properly? Its showing in 3 dimensions with a tilt so you see the image at an angle. I'm confused.
|
Because all it does is alter z on a graal-relative scale. Meaning it just raises the bottom of image. It doesn't change the image like you think it would in a 3D environment. Anyways, I tested what you posted and it just made the image shrink vertically. That's why I wanted eulerrotation... so things like this would be simple.
|
I still don't understand you, it changes the image exactly how I would expect in a 3D environment.
|
But the Graal Enviorment isnt truly 3d
|
Quote:
|
perspective, yeah 3D games arn't true 3d but the with the graal Camera currently you only have an aerial view. With traditional 3d games you can change the camera positions giving the effect of 3d. Simply, you can't change Graal's camera position so therefore we always have an aerial view. if we could we would be able to use you method simply.
|
1 Attachment(s)
Heres what happened to mine when I did it using 3 dimensions.
PHP Code:
|
with making any 2d image and tilting it, there is always going to be distortion. Example : a flat map of the Earth no matter what type it has distortions. you can't make a 3d img 2d and vice versa
|
Quote:
|
Well, you did exactly what I did in mines in your new post. You altered the horizontal aspect manually. What I was saying is specifying a z did not 'tilt' the polygon, only change it's vertical position. Z in Graal is more like another Y axis, it doesn't really add any depth. You can achieve the same thing without ever using Z.
|
4 Attachment(s)
Quote:
Which one of us has been scripting longer? You're starting to irritate me. Heres the examples: 1st Picture: Square Polygon w/ all vertices z=0 PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Applying a Z to each vertex does not 'tilt' it in the sense that it gives it perspective. You're giving it perspective by modifying the x of each vertex. Your very first script, which I mentioned about the z thing, did not change the x values accordingly, so all it appeared as was a crushed image. You have to apply your own 'tilt perspective' via stretching the width of the image yourself, changing the z will not do that. Which was my original point.
Either way, I did the same exact thing you did, without ever using a z dimension. Like I said in my first post, the z-axis in Graal is nothing more than an additional y-axis. It doesn't add another dimension, just another way to change the position on the y-axis. If you take one polygon and make it 100x100px, then take another polygon and it make it 100x150x50, it will look the same. This all started with your original script which did not replicate my screenshot, which was the whole point in me correcting it. And I don't know what the hell who's been scripting longer has anything to do with it, and why you're getting irritated. |
Yeah Inver, you have to apply your own 'tilt perspective' via stretching the width of the image yourself, changing the z will not do that.
YES IM DOING IT FOR THE SAKE OF ARGUMENT, BRING IT >:( I B MASTR SCRIPTUR OF GRAAL |
Quote:
By the way, my original script was not supposed to replicate your screenshot at all. Hm, I think I'll make a function to calculate depth without manually adjusting the x. Quote:
|
Quote:
|
| All times are GMT +2. The time now is 02:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.