Shapes
by Gavin Beard · in Torque Game Builder · 03/04/2005 (4:37 am) · 9 replies
Hey ya, another q, is it poss to create standard 2d shapes like circles squares etc? i cant see n e thing in the reference about it. Also while i'm asking q's can u changed or edit the alpha channel of an image during programe runtime?
thx
thx
#4
03/04/2005 (6:26 am)
Lol is the editing alpha chanels eva likely to appear
#5
Eventually, we'll be adding the ability to get at the bitmap data but it's seriously not that difficult to implement anyway.
- Melv.
03/04/2005 (6:31 am)
@Gavin: You could do it now, you'd just need to do it in C++, implement it yourself or yes, wait for us to implement it for you.Eventually, we'll be adding the ability to get at the bitmap data but it's seriously not that difficult to implement anyway.
- Melv.
#6
03/04/2005 (7:37 am)
Lol, my c++ sucks when it comes to directx / opengl so it'll be like pulling my teeth out, i was just gonna try to make a scorched earth type demo and need to deform terrain for it
#7
Per-pixel manipulation is very expensive though and isn't something you'd expect to be doing trivially at high-FPS rates without being very careful what you're doing.
- Melv.
03/04/2005 (7:46 am)
@Gavin: It's a really interesting object to create but I just won't get time to do it soon with all the other things that need to be done. Maybe someone else will jump in and do it, there's already been a few calls for this type of thing, some before the release.Per-pixel manipulation is very expensive though and isn't something you'd expect to be doing trivially at high-FPS rates without being very careful what you're doing.
- Melv.
#8
Same goes for circles and polygons... there is nothing stopping you from making sprites for the shapes you want.
Just some general suggestion from outside the box, I know they aren't the solution for all cases, but I thought they might useful.
03/04/2005 (11:17 am)
Maybe you could make the terrain a tile set that includes 'deformed' impact craters, holes, cliffs etc. Same goes for circles and polygons... there is nothing stopping you from making sprites for the shapes you want.
Just some general suggestion from outside the box, I know they aren't the solution for all cases, but I thought they might useful.
Associate Melv May
Having polygon shapes is very important. We'll also be able to texture them as well as a whole host of other stuff.
Of course, it's very easy to create your own C++ objects that work with T2D and we'll try to get some example of how to do that as well.
- Melv.