Razor89
Member
- Joined
- Dec 15, 2004
- Messages
- 12
Hey!
I was wondering if someone might be able to help me with a little problem of mine?
I am in the midst of writing an OpenGL application to load maps (aka levels) from
the Jedi Engine by LucasArts, used in Dark Forces and Outlaws, and everything was going
great until I had to draw the floors and ceilings of the sectors, allow me to elaborate:
A sector is a simply, often concave, polygon connected by a series of points to form the
sector and since OpenGL cannot render concave polygons, only convex ones, I have to triangulate
the sector myself and for the life of me I cant figure it out.
Ive posted on some forums and even email Ken Silverman, the creator of the Build Engine from Duke Nukem 3D,
and he recommended what is called Trapezoidalization and told me to look at the source code of his polymost renderer
so I tried it and it didnt work.
People also suggested I use the gluTess* functions however for some bizzare reason they wont work for me.
So to the point: Do any you know how to triangulate a polygon that can be concave?
The triangulation will have to handle floating point numbers and possibly
very small numbers.
Thanks,
Jimmy.
I was wondering if someone might be able to help me with a little problem of mine?
I am in the midst of writing an OpenGL application to load maps (aka levels) from
the Jedi Engine by LucasArts, used in Dark Forces and Outlaws, and everything was going
great until I had to draw the floors and ceilings of the sectors, allow me to elaborate:
A sector is a simply, often concave, polygon connected by a series of points to form the
sector and since OpenGL cannot render concave polygons, only convex ones, I have to triangulate
the sector myself and for the life of me I cant figure it out.
Ive posted on some forums and even email Ken Silverman, the creator of the Build Engine from Duke Nukem 3D,
and he recommended what is called Trapezoidalization and told me to look at the source code of his polymost renderer
so I tried it and it didnt work.
People also suggested I use the gluTess* functions however for some bizzare reason they wont work for me.
So to the point: Do any you know how to triangulate a polygon that can be concave?
The triangulation will have to handle floating point numbers and possibly
very small numbers.
Thanks,
Jimmy.