![]() GluTessCallback(wall1, GLU_TESS_BEGIN, (GLvoid)tcbBegin) GluTessCallback(wall1, GLU_TESS_VERTEX, (GLvoid)glVertex3dv) GluPerspective(fov_degrees, xy_ratio, near_clip, far_clip) Vertex = (GLdouble *) malloc(6 * sizeof(GLdouble)) GLvoid combineCallback(GLdouble coords, GLdouble *vertex_data, GLfloat weight, GLdouble **dataOut ) ![]() ![]() I draw an outline around where the wall should be, and its fine, so I know Im not using the tess functions properly. This is just supposed to draw a big wall, with 1 small hole in it, but nothing is drawn at all. ![]() I’ve taken most of this code from the red book and I’ve been toying with it in several ways, but if you can see anything obviously wrong, please elaborate. I havent found many topics online specifically about this. So I wanted to use the tess functions to draw my walls with all the doors and windows cut out, so I could map my textures onto the entire wall, etc.īut the problem is now I really can’t figure out why I cant make the simplest of polygons with the tessellation functions. But I noticed the tess functions would be very handy in my project, which is mostly drawing a detailed building. My project is more about a flexible interface for the user to view an enviroment. This is my mistake, I was asking for help and I didn’t really know what questions to ask yet because I was frustrated.
0 Comments
Leave a Reply. |