Opengl tessellation example reddit3/12/2024 Void gluTessBeginPolygon(GLUtessellator *tess, void *userData) If failed to create one, it returns NULL pointer. GluNewTess() creates a tessellator object and gluDeleteTess() deletes the tessellator object. OpenGL provides a collection of routines to process concave polygons to convex polygons: Finally, once tessellation is done, tessellator calls actual OpenGL commands to render the tessellated polygon through the user-defined callback routines. The basic procedure of tessellation is sending all vertex coordinates of a non-convex polygon to the tessellator instead of sending them directly to OpenGL rendering pipeline, and then tessellating the polygon by the tessellator. The left is 4-side concave polygon, the middle has a hole in it, and the right is self-intersecting contour.ĭownload: tessellation.zip, stencilTess.zip Since OpenGL accepts only convex polygons for rendering, these non-convex polygons must be tessellated before rendering.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |