Results 1 to 2 of 2

Thread: opengl rendering mesh elements contour problem

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default opengl rendering mesh elements contour problem

    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);
    //////////////////////////////////////////////////////////////

  2. #2
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: opengl rendering mesh elements contour problem

    Dear All Please check the pictures added you can see the contour plot where some lines are seen in black color in the normal direction.
    How can I remove them .??
    Attached Images Attached Images

Similar Threads

  1. Replies: 8
    Last Post: 7th November 2012, 20:20
  2. Creating QUAD Elements would openGL be better than Qt
    By sujan.dasmahapatra in forum General Programming
    Replies: 4
    Last Post: 17th October 2009, 11:49
  3. OpenGL rendering and threads
    By brcain in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2008, 10:45
  4. problem in rendering opengl on QGraphicsView
    By Sandip in forum Qt Programming
    Replies: 17
    Last Post: 15th April 2008, 09:27
  5. OpenGL rendering problem
    By spud in forum Qt Programming
    Replies: 5
    Last Post: 27th February 2007, 20:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.