Vector graphics? (But simple vector graphics)
by Caleb Child · in Torque X 2D · 04/28/2010 (4:31 pm) · 5 replies
I was thinking of having an auto-map.
Now, I could have this map built from many small tiles, but if I could make the map from vectors then I could probably cut memory usage down a little, add greater detail into the maps, have the auto-map reveal itself with greater accuracy, and maybe even build the auto-map data right into the level instead of making a whole separate tilemap that I have to manually match with my level.
But let's start with the basics.
I'm not talking about any complicated or animated vectors (well, slightly animated,) but just an array of straight lines and some boxes or fill colors.
Is Torque equipped to draw such vectors? Is there an easily accessible package or function that I can access to draw vector graphics? Or would I just be better off sticking to tilemaps?
Now, I could have this map built from many small tiles, but if I could make the map from vectors then I could probably cut memory usage down a little, add greater detail into the maps, have the auto-map reveal itself with greater accuracy, and maybe even build the auto-map data right into the level instead of making a whole separate tilemap that I have to manually match with my level.
But let's start with the basics.
I'm not talking about any complicated or animated vectors (well, slightly animated,) but just an array of straight lines and some boxes or fill colors.
Is Torque equipped to draw such vectors? Is there an easily accessible package or function that I can access to draw vector graphics? Or would I just be better off sticking to tilemaps?
About the author
http://calebchild.boldlygoingnowhere.org/caleb/
#2
Just out of curiosity, does the normal TGB support vector graphics out-of-the-box?
04/30/2010 (8:53 am)
...which I can't do with with the free version I can get just for being on the creator's club. Dang.Just out of curiosity, does the normal TGB support vector graphics out-of-the-box?
#3
04/30/2010 (9:24 am)
I don't think so, but you'd have to ask in the TGB forums for a more definitive answer.
#4
04/30/2010 (12:23 pm)
TGB has what they call polygons. I think I made one once just to see what it was about. I only use TGB for the iPhone so I am not all that familiar with using it for PC games.
#5
04/30/2010 (12:37 pm)
The collision bounds rendering in TX would be an example of polygon rendering that you could copy to make your own polygon objects.
Torque Owner Duncan Colvin