Results 1 to 2 of 2

Thread: opengl rendering mesh elements contour problem

  1. #1
    Join Date
    Feb 2009

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

  2. #2
    Join Date
    Feb 2009

    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, 19: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, 10:49
  3. OpenGL rendering and threads
    By brcain in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2008, 09:45
  4. problem in rendering opengl on QGraphicsView
    By Sandip in forum Qt Programming
    Replies: 17
    Last Post: 15th April 2008, 08:27
  5. OpenGL rendering problem
    By spud in forum Qt Programming
    Replies: 5
    Last Post: 27th February 2007, 19:44


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.