is this group active? tesselation question

21 views
Skip to first unread message

Bob S

unread,
Nov 8, 2011, 12:32:34 PM11/8/11
to iphone-glu
Hello,

Like the other guy who posted here, I am trying to use this library
for tesselation. I also started from that flipcode sample, which I
found to be kind of buggy.

But I think I have what should be working tesselation code. I'm
receiving the data from the tesselation object ok, I think.

I pass it a single convex sort of blobby shape and it does ok, returns
what I expect. But then I try to pass two contours for a single
polygon. The contours are separated in space and do not intersect.
From reading about the glu tesselator on the official opengles site,
it seems that tesselating a collection of two contours should result
in both shapes showing up, as long as I have the winding rule set to
positive.

But it is spitting out some weird combination of the shapes. It is
probably a bug in my code somewhere, but I thought I would ask here,
should that work? In other words, if I start a polygon and draw two
contours, same direction but totally separate in space, shouldn't it
give me the set of triangles to draw those shapes? It seems to be
trying to meld them together... but like I said probably a bug on my
part.

Thanks for any replies!
Bob

JJ

unread,
Nov 26, 2011, 11:57:25 PM11/26/11
to iphone-glu
Hello Bob,

May i know how you use this library? i have managed to compile the
libGLU.a and included in my xcode proj, however i do not know how to
use this library to do Polygon tessellation. Hope you can guide me on
this.

Thank you.

Regards,
JJ

Reply all
Reply to author
Forward
0 new messages