![]() |
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?
|
Does anyone have any advice?
|
I know what you mean, and i'm entirely sure that the Graal engine lacks the graphical support for that sort of thing.
|
ok thanks
|
/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... |
there is no way.. I think you might be able to change the RGBA but not read it
|
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.
|
Graal has the graphical potential, just Torque doesnt have it built in.
|
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?
|
Quote:
|
oh... hmm... :/
|
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.
|
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:
|
Screenshot?
|
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. :) |
This isnt what I meant. I meant like bending random parts of tiles on a level
|
Right, which could be done by rapidly changing the Z of that tile (somehow) then updating the board locally. Then setting it back when you're done. Trouble is, that'd just bend the tiles, not the NPC Image of a sign, or a door, or a tree, or a shopkeeper, or a beer...
|
well we could set each img (though it would take forever to do) with certain script to change with tiles. :/
|
Quote:
|
Quote:
|
I'd feel bad for the npc server.
|
Quote:
|
Maybe this feature will be added to GS3 along with my "playerkills()" function. XD
|
Quote:
|
pixeldata(x,y,minlayer,maxlayer) - returns the pixel (array of floats, length 4: r,g,b,a) at the specified location, between the layers listed (works like the showimg layers, 0 to 4)
With such a function it would be possible to re-draw a section of the board "stretched". Even better: getimage(x,y,x0,y0,minlayer,maxlayer) - returns an image (just as if it was an actual png) of the data from x to x0 and y to y0, so you can warp this temporary clientside-only screenshotlet. Take a picture of the level and warp that. |
it seems that lags players if there 6 or players watching and Okie, nonething works on that. There no way to read who just killed who.
|
GS3 X_X?
I don't see that as happeing. |
Quote:
|
(Because Mr Omega over here's trying to make a weapon, I guess)
|
Quote:
|
Well tell me how in the old thread x_x
|
Quote:
|
He gave you the script. You can do it offline. -_-
|
| All times are GMT +2. The time now is 12:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.