PDA

View Full Version : Tesselation!!! help



02-16-2006, 12:19 AM
I'm trying to tessellation a polygon non convex and i saw that i have to use this code:

gluBeginPolygon(tess);

gluTessVertex(tess, 100, 0);
gluTessVertex(tess, 100, 100);
gluTessVertex(tess, 150, 100);
gluTessVertex(tess, 150, 50);
gluTessVertex(tess, 200, 50);
gluTessVertex(tess, 200, 100);
gluTessVertex(tess, 250, 100);
gluTessVertex(tess, 250, 0);

gluEndPolygon(tess);

but it doesn't work cause it tells me undeclared identifier... i saw that i must put gluNewTess but i don't know how to write it for let it work...pls help me!!

davej
02-16-2006, 01:35 PM
Have a look at this page (http://www.glprogramming.com/red/chapter11.html) .

It is the OpenGL Programming Guide chapter on how to use tesselators.

dave j