Grapping an Image Buffer
by Toby Mckenzie · in Torque Game Builder · 01/04/2006 (5:32 am) · 5 replies
As per usual I got distracted when writing my small test game and got sidelined onto old school type effects.
What I want to do is write a pixel shatter / rez in effect (the kind of thing you see in Robotron).
The usual way I would try and do this is grap the image buffer, slice it into n images and then create sprites out
of these that I could zoom / scale move around the screen to my heart is content. I have not idea how to achieve this in T2D, is it possible for me get an ImageMap, slice it and dynamically create imagemaps from this?
Also if I want to create feedback effects, i.e, grap the screen buffer, rotate it slightly, and render it to the back ground with decreasing the alpha value?
Any help much appreciated.
--Toby
What I want to do is write a pixel shatter / rez in effect (the kind of thing you see in Robotron).
The usual way I would try and do this is grap the image buffer, slice it into n images and then create sprites out
of these that I could zoom / scale move around the screen to my heart is content. I have not idea how to achieve this in T2D, is it possible for me get an ImageMap, slice it and dynamically create imagemaps from this?
Also if I want to create feedback effects, i.e, grap the screen buffer, rotate it slightly, and render it to the back ground with decreasing the alpha value?
Any help much appreciated.
--Toby
About the author
#2
01/04/2006 (1:23 pm)
Thanks - I really should check posts for spelling mistakes before I hit submit...
#3
01/04/2006 (1:27 pm)
Thanks - I really should check posts for spelling mistakes before I hit submit...
#4
01/04/2006 (8:09 pm)
Quote:In the next release, you'll get access to all the wonderful TGE v1.4 stuff such as render to texture and the effects canvas.Something that immediately comes to mind is drawing a bitmap font into a texture and displaying that instead of using a sprite for each glyph. Hope something like that won't be too complicated.
#5
As I said though, you won't be able to do it from scripts at the moment. If you are a TGE owner, you can see this stuff now.
- Melv.
01/04/2006 (11:33 pm)
Jason,As I said though, you won't be able to do it from scripts at the moment. If you are a TGE owner, you can see this stuff now.
- Melv.
Associate Melv May
Obviously what you're asking for will be possible but you'll need to code some of it up in C++, you won't be able to do this yet in script.
- Melv.