Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 08-12-2007, 05:26 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Inverness View Post
We await Stefan's input on the subject.
THIS IS A CUE<- THAT IS A CUE
^ THAT WAS A CUE ^

IT WAS A CUE

I agree.
__________________
Do it with a DON!
Reply With Quote
  #17  
Old 08-12-2007, 05:59 PM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by xXziroXx View Post
Stefan, would this be possible to program into the Graal engine?
"Program into"? I don't think the Mode 7 source code is just floating around on the internet.
__________________
Reply With Quote
  #18  
Old 08-12-2007, 06:50 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Googi View Post
"Program into"? I don't think the Mode 7 source code is just floating around on the internet.
Of course not. I meant if it was possible to program a similar system in Graal, with the same functions.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 08-12-2007, 06:54 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________

Last edited by Inverness; 08-12-2007 at 08:47 PM..
Reply With Quote
  #20  
Old 08-12-2007, 09:46 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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."
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #21  
Old 08-13-2007, 01:10 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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
__________________
Deep into the Darkness peering...
Reply With Quote
  #22  
Old 08-13-2007, 01:18 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Uh you don't really need matrices. Here is example of drawing a tilted polygon.
PHP Code:
with (findimg(200)) {
  
layer 4;
  
dimension 3;
  
polygon = {
    
50500,
    
600500,
    
600600200,
    
50600200
  
};
  
image "map.png";
  
mode 0;
  
alpha 0.75;
  
red 1;
  
green 1;
  
blue 1;

__________________
Reply With Quote
  #23  
Old 08-13-2007, 01:30 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
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
__________________
Deep into the Darkness peering...
Reply With Quote
  #24  
Old 08-13-2007, 01:33 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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:
  this.mapsize=screenheight*.75;
  
this.mappos={(screenwidth-screenheight*.75)/2,(screenheight-screenheight*.75)/2};

  
with (findimg(200)) {
    
dimension=2;
    
polygon={
      
thiso.mappos[0]+25,thiso.mappos[1],
      
thiso.mappos[0]+thiso.mapsize-25,thiso.mappos[1],
      
thiso.mappos[0]+thiso.mapsize+150,thiso.mappos[1]+thiso.mapsize,
      
thiso.mappos[0]-150,thiso.mappos[1]+thiso.mapsize
    
};
    
image="map.png";
    
layer=4;
    
mode=1;
    
alpha=.9;
  } 
EDIT: Oh... as far as player detection... I don't advise doing what I did. I suggest learning some trig and scripting a fully 3D polygon and learn how to 'place' something on it. It would be much more versitile.
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.
Reply With Quote
  #25  
Old 08-13-2007, 01:39 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
sexy
__________________
Deep into the Darkness peering...
Reply With Quote
  #26  
Old 08-13-2007, 02:38 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
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.
__________________
Reply With Quote
  #27  
Old 08-13-2007, 02:44 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.
Reply With Quote
  #28  
Old 08-13-2007, 03:01 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I still don't understand you, it changes the image exactly how I would expect in a 3D environment.
__________________
Reply With Quote
  #29  
Old 08-13-2007, 03:03 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
But the Graal Enviorment isnt truly 3d
__________________
Deep into the Darkness peering...
Reply With Quote
  #30  
Old 08-13-2007, 03:08 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Angel_Light View Post
But the Graal Enviorment isnt truly 3d
Neither is your monitor for your computer. And how does that make a difference?
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:36 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.