2d vector rasterization and transformations

BlitzMax Forums/BlitzMax Beginners Area/2d vector rasterization and transformations

SillyPutty(Posted 2006) [#1]
Hi all

does anyone know where I can find some good information on this ? I used to have Tricks of the Windows Game programming gurus which had it all, but I dont have that book anymore and am battling to find info online about this.


FlameDuck(Posted 2006) [#2]
Something like this?


SillyPutty(Posted 2006) [#3]
as in drawing vector shapes and rotating them, scaling them etc...

I would like to get to a point where I could do this in code and check for collisions between polygons.

My math really stinks, I know in the book, he used matrices to transform the polygons. He had some serious collision detection too, to be able to check poly to poly collision.


CoderLaureate(Posted 2006) [#4]
I'm still working on poly to poly collisions myself. I *do* however have a rather spiffy little BMax Vector Graphics library cooking.

You can find a demo here:
http://www.codersworkshop.com/viewshowcase.php?id=802


Haramanai(Posted 2006) [#5]
Poly to Poly collision?
You must understand first the Method of Separation Axis.
Heavy Stuff...
I tried 3 or 4 times to convert the PolyColly but I had just done only the 2 first parts. Be sure to check it out.


CoderLaureate(Posted 2006) [#6]
A quick and dirty way would be to define a collision radius around the polygon and use A^2 = B^2 + C^2 to find the distance between polys.