Bkl

Hi ..
the question looks simple...but maybe isn't it as it sounds..
I want to draw an irregular shape.. as this :
IMAGE2D

I would like to know it there are an object and the methods in oreder to to build an irregular shape.
How can I tesselete an irregular shape in two dimensions

If You have any suggestion please tell me something about it..
I'm a bit confused about tesselletion in this case.

Thanks in advance





Re: Game Technologies: General How to draw an irregular polygon ?

Jim Perry

Clicky




Re: Game Technologies: General How to draw an irregular polygon ?

The ZMan

If you just want to draw an outline then jims link goes to an xna tutorial on drawing lines. If you are pre XNA then use the D3DXLine class (C++) or the Line class (Managed DIrect)

If you want to draw the whole polygon then you need to perform trangulation.

See http://mathworld.wolfram.com/Triangulation.html and http://www.cs.unc.edu/~dm/CODE/GEM/chapter.html

Remember that once its made up of triangles you will have to draw the outline yourself wince wireframe will show ALL of the triangle eges.