Hello Xith folks!
I'm quite new to Xith and 3D programming in general so hopefully this is an easy problem - i'm begin to have headaches from it... =/
i have written a simple .SWF importer that reads all vector shape data from a macromedia flash file and creates shape3d objects from it that are then displayed.
it works quite flawless except this one problem:
the resulting trianglestrips dont look at all like the vectorshapes they originate from.
i know this is a triangulation problem and has something to do with the order in which the vertex-points are passed to the trianglestriparray
- but that is exactly what i cant figure out =/
in the macromedia flash file the vertex points are simply sorted by their chronological creation.
you have an idea how to sort a vertexlist so it matches the shape of the original vector data?
do i need to write my own triangulation implementation for this?
i hope here's some clever guy that could help with this?!
thanks a lot!