Hi everyone,
I'm working on a Silverlight game and I want to find a way to take a shape from Expression Blend and use it in Box2DX. Expression Blend is the software I use to design my levels and my interface.
From my shape in Expression Blend I am able to retrieve a list of pixels representing the outline of my shape. For exemple a square of 36x36 will returns a list of 140 pixels, 35 for each side. From this outline I want to generate a list of polygon that would be valid (no more then 8 vertices and not concave) to use inside Box2DX.
I saw many different exemples on this forum on how to decompose a complex polygon into smaller ones. I haven't seen any written in C# but I believe I'll be able to port one when I get there. But my first step is to generates the big complex polygon from my pixel based outline.
Any idea on how to approach this ?
English isn't my first language so maybe even just a technical keyword would put me in the right direction to find the answer.
Thank you
I'm working on a Silverlight game and I want to find a way to take a shape from Expression Blend and use it in Box2DX. Expression Blend is the software I use to design my levels and my interface.
From my shape in Expression Blend I am able to retrieve a list of pixels representing the outline of my shape. For exemple a square of 36x36 will returns a list of 140 pixels, 35 for each side. From this outline I want to generate a list of polygon that would be valid (no more then 8 vertices and not concave) to use inside Box2DX.
I saw many different exemples on this forum on how to decompose a complex polygon into smaller ones. I haven't seen any written in C# but I believe I'll be able to port one when I get there. But my first step is to generates the big complex polygon from my pixel based outline.
Any idea on how to approach this ?
English isn't my first language so maybe even just a technical keyword would put me in the right direction to find the answer.
Thank you