Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Graal Mode 7 (https://forums.graalonline.com/forums/showthread.php?t=76204)

Angel_Light 08-13-2007 03:11 AM

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.

Inverness 08-13-2007 03:27 AM

1 Attachment(s)
Heres what happened to mine when I did it using 3 dimensions.
PHP Code:

  with (findimg(200)) {
  
layer 4;
  
dimension 3;
  
polygon = {
    
50+100500,
    
800-100500,
    
800800300,
    
50800300
  
};
  
image "map.png";
  
mode 0;
  
alpha 1;
  
red 1;
  
green 1;
  
blue 1

Graal is not placing the image on the polygon correctly. Perhaps using a simpler rendering algorithm for the image so it doesn't take lots of processing time.

Angel_Light 08-13-2007 03:31 AM

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

Inverness 08-13-2007 03:34 AM

Quote:

Originally Posted by Angel_Light (Post 1339492)
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

Uh, duh? We're talking about using a 2 dimension versus 3 dimensional polygon to get the same effect.

DustyPorViva 08-13-2007 03:42 AM

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.

Inverness 08-13-2007 03:34 PM

4 Attachment(s)
Quote:

Originally Posted by DustyPorViva (Post 1339497)
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.

You have no idea what you're talking about. Each vertex on the polygon can have its own z variable, so if I increase the z of the bottom two vertexes its going to damn well tilt the polygon.

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:

  polygon = {
    
50+0500,
    
800-0500,
    
8008000,
    
508000
  
}; 

2nd Picture: Square Polygon w/ bottom vertices z=300
PHP Code:

  polygon = {
    
50+0500,
    
800-0500,
    
800800300,
    
50800300
  
}; 

3rd Picture: Trapezoidal Polygon w/ all vertices z=0
PHP Code:

  polygon = {
    
50+100500,
    
800-100500,
    
8008000,
    
508000
  
}; 

4th Picture: Trapezoidal Polygon w/ bottom vertices z=300
PHP Code:

  polygon = {
    
50+100500,
    
800-100500,
    
800800300,
    
50800300
  
}; 

You're obviously not understanding the fact that the image's Z as a whole is separate from the Z of each vertex. The image's Z as a whole wouldn't even apply in this case since its a polygon.

DustyPorViva 08-13-2007 04:53 PM

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.

Crono 08-13-2007 05:00 PM

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

Inverness 08-13-2007 05:08 PM

Quote:

Originally Posted by DustyPorViva (Post 1339586)
<snip>

When you put it like that, yea you're right. I thought you were implying that the same effect couldn't be done with 3rd dimension.

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:

Originally Posted by Gerami
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

http://www.threadbombing.com/data/me...80px-O_RLY.jpg

Crono 08-13-2007 05:32 PM

Quote:

Originally Posted by Inverness (Post 1339593)

http://www.listek.si/yarly.jpg

Admins 08-13-2007 10:08 PM

Hmmm can eventually check if the perspective can be corrected when drawing the polygon.

DustyPorViva 08-13-2007 10:09 PM

:o that would be great!

Pimmeh 08-14-2007 09:28 AM

Quote:

Originally Posted by Gerami (Post 1339599)

http://atdpweb.berkeley.edu/brokenlo...ages/nowai.jpg

Tyrial 08-22-2007 10:47 PM

Quote:

Originally Posted by Pimmeh (Post 1339893)

wai.

Elk 08-23-2007 02:14 AM

http://img204.imageshack.us/img204/2397/uhohim9.png


All times are GMT +2. The time now is 11:54 PM.

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