[Qt-interest] opengl rendering mesh elements contour problem

Sujan Dasmahapatra sujan.dasmahapatra at gmail.com
Mon Feb 1 10:51:42 CET 2010


Dear Friends
I am creating a set quad elements in opengl QT....assigning each point a
distinct color and I am creating these elements in GL_FILL mode so I am
getting a contour with different colors for different points. These colors
are distributed smoothly over all the element. But in someportions I can see
a thin black lines black circles are coming.My background color is black.The
mesh is circular..I am not able to find the reason why these black lines or
patches are appearing that affecting the overall looks of my contour.

Please help me someone in sorting out this.Any suggestions would be highly
appreaciated. Thanks

Please see the code below.
//////////////////////////////////////////////////////
    GLuint newlist = glGenLists(1);
    glNewList(newlist, GL_COMPILE);
    glEnableClientState(GL_COLOR_ARRAY);
    glEnableClientState(GL_VERTEX_ARRAY);
    glColorPointer(3,GL_FLOAT,0,colorPtr);
    glVertexPointer(2, GL_FLOAT, 0, mesh_geom2.vertices);
    glPolygonMode( GL_FRONT_AND_BACK, GL_FILL );
    glNewList(newlist, GL_COMPILE);
    glDrawElements(GL_QUADS, ptsInBlock*ptsInBlock*blocks*4,
GL_UNSIGNED_INT, indices);
    glEndList();
    glDisableClientState(GL_COLOR_ARRAY);
    glDisableClientState(GL_VERTEX_ARRAY);
//////////////////////////////////////////////////////////////

-- 
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office:91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100201/77618276/attachment.html 


More information about the Qt-interest-old mailing list