Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-22-2006, 09:49 PM
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
Bending Gfx

Is there anyway to bend gfx? I mean like tiles in the level. If you ever played Metroid Prime 2 and used the Annihiltor Beam at full power, thats what I mean. Is there way?
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 04-26-2006, 01:19 PM
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
Does anyone have any advice?
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 04-26-2006, 03:54 PM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
I know what you mean, and i'm entirely sure that the Graal engine lacks the graphical support for that sort of thing.
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #4  
Old 04-26-2006, 10:18 PM
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
ok thanks
__________________
Deep into the Darkness peering...
Reply With Quote
  #5  
Old 04-29-2006, 09:32 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 will become famous soon enough
/yet/.
If there were a way to read the RGBA of a single point, there would be a way to display it offset with the emitter...
__________________
"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
  #6  
Old 04-29-2006, 10:07 PM
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
there is no way.. I think you might be able to change the RGBA but not read it
__________________
Deep into the Darkness peering...
Reply With Quote
  #7  
Old 04-30-2006, 02:59 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
i'm not sure if we're talking about the same thing but you can showimgs and use changeimgpart to show every pixel of that image and then take it from there.
__________________
Reply With Quote
  #8  
Old 04-30-2006, 03:16 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Graal has the graphical potential, just Torque doesnt have it built in.
Reply With Quote
  #9  
Old 04-30-2006, 04:02 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
Wait I just though of something. On GK they can bend the terrain and stuff. Can we just do that to gfxs? I suppose so since a tileset is a gfx, But, how?
__________________
Deep into the Darkness peering...
Reply With Quote
  #10  
Old 04-30-2006, 04:09 AM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Quote:
Originally Posted by Angel_Light
Wait I just though of something. On GK they can bend the terrain and stuff. Can we just do that to gfxs? I suppose so since a tileset is a gfx, But, how?
It's not bending the terrain, it's adding another dimension to it. It's supposed to be 3D-ish using the z-axis, but in this case Graal z is like another y. =\
__________________
Reply With Quote
  #11  
Old 04-30-2006, 04: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
oh... hmm... :/
__________________
Deep into the Darkness peering...
Reply With Quote
  #12  
Old 04-30-2006, 09:35 AM
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 will become famous soon enough
Altering the Z of a portion of an image is no different than bending an image around that portion, really...but I doubt we'd see that.
__________________
"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
  #13  
Old 04-30-2006, 11:37 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
Edit: Didn't see this in the GS2 forums, so the script is in GS1. But it can be easily converted using the same idea.

Alright, this is an extremely poor method of creating this illusion, but I created a simple script in demonstrating it. There could be errors as I made this in about 5 minutes, but here goes anyways:
PHP Code:
//#CLIENTSIDE
if (created) {
  
this.offset_x 1;  // offsets the image 16 pixels to the right so the mouse doesn't block it
  
this.offset_y 1;  // offsets 16 pixels down for the same reason
  
this.width imgwidth(block.png);  // the width of the image i'm using block.png
  
setarray this.offset_z,this.width;  // controls the z-coor of each row of pixels
  
setarray this.offset_zmode,this.width;  // controls whether the z-coors should go up or down
  
for(this.i=0this.i<32this.i++) this.offset_z[this.i] = this.i;  // sets the starting positions
  
timeout .05;  // begins the timeout for showimgs
}
if (
timeout) {
  for(
this.i=0this.i<32this.i++) {  // loops thru each pixel row of the image
    
for(this.j=0this.j<32this.j++) {  // loops thru the pixel columns
      
showimg2 200 this.32 this.j,block.png,this.offset_x mousex this.16,this.offset_y mousey this.16,this.offset_z[this.i] / 16;  // shows every pixels of the image at its original location with the exception of the z-coors which are decided by the arrays
      
changeimgpart 200 this.32 this.j,this.i,this.j,1,1;  // shows a pixel as opposed to the entire image
    
}
  }
  for(
this.i=0this.i<32this.i++) {
    if (
this.offset_zmode[this.i] == 0) {  // if the pixel is moving upwards
      
if (this.offset_z[this.i] + == 32) {  // if the pixel reaches the top
        
this.offset_zmode[this.i] = 1;  // changes mode
      
}else this.offset_z[this.i]++;  // otherwise continue upwards movement
    
}else{  // if the pixels are moving downwards
      
if (this.offset_z[this.i] - == 16) {  // as the pixels reach halfway down
        
this.offset_zmode[this.i] = 0;  // change modes
      
}else this.offset_z[this.i]--;  // otherwise continue downwards movement
    
}
  }
  
timeout .05;  // continues loop

Once again very poor method. Also this will lag with giant images.
__________________
Reply With Quote
  #14  
Old 04-30-2006, 11:52 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Screenshot?
Reply With Quote
  #15  
Old 05-01-2006, 01:02 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
There's a stretchx and stretchy variable; it stretches the image like the zoom variable does, but only on one axis.
I'm not sure, but I don't see why you wouldn't be able to stretch an image and then rotate it. You could make, for example, a lightning effect this way. Stretch the lightning image to be the distance from one player to the other, then rotate it so that it goes in the direction of the other player.

I've used stretchx and stretchy to make some nice effects.
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:20 PM.


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