Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: visible diagonal lines

  1. #1
    Member Newbie
    Join Date
    Dec 2005
    Posts
    35

    visible diagonal lines

    Hi, Do anyone know what are these diagonal lines on my GL_QUADS?? Could I take out it? thanks
    Mickey

  2. #2
    Guest

    Re: visible diagonal lines

    can u post ur code?

  3. #3
    Member Newbie
    Join Date
    Dec 2005
    Posts
    35

    Re: visible diagonal lines

    hi, this is my init; maybe problem is here:
    Code :
    .....................
    glShadeModel(GL_SMOOTH);
    glClearColor( 0.0, 0.0, 0.0, 0.0 );	
    glEnable(GL_DEPTH_TEST); 	
    glEnable(GL_BLEND);
    glEnable(GL_LINE_SMOOTH);	
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
    glEnable(GL_POLYGON_SMOOTH);	
    glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA);
    glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
    glEnable(GL_TEXTURE_2D);
    glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR);
    glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
    Mickey

  4. #4
    Guest

    Re: visible diagonal lines

    hi, i dont understand...

  5. #5
    Member Newbie
    Join Date
    Dec 2005
    Posts
    35

    Re: visible diagonal lines

    mmm what?
    Mickey

  6. #6
    Guest

    Re: visible diagonal lines


  7. #7
    Member Contributor
    Join Date
    Apr 2005
    Location
    Prague, Czech Republic
    Posts
    87

    Re: visible diagonal lines

    I would try to remove glEnable(GL_POLYGON_SMOOTH); ( I dont think this is hardware accelerated anyway.. antialiasing is achieved by multisampling nowadays )

    if it doesnt help then you can try to remove all glHint calls..

  8. #8
    Member Newbie
    Join Date
    Dec 2005
    Posts
    35

    Re: visible diagonal lines

    Originally posted by Trahern:
    I would try to remove glEnable(GL_POLYGON_SMOOTH); ( I dont think this is hardware accelerated anyway.. antialiasing is achieved by multisampling nowadays )

    if it doesnt help then you can try to remove all glHint calls..
    removing glEnable(GL_POLYGON_SMOOTH) the lines vanish, but image appear aliased.....(the second suggest dosn't help)
    Mickey

  9. #9
    Member Contributor
    Join Date
    Apr 2005
    Location
    Prague, Czech Republic
    Posts
    87

    Re: visible diagonal lines

    you should use GL_ARB_multisample extension if you want to antialias your scene

  10. #10
    Member Newbie
    Join Date
    Dec 2005
    Posts
    35

    Re: visible diagonal lines

    sorry, but that scene is anti-alised; without these instruction, my scene appear jagged.....the problem is what are they....
    Mickey

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 8
    Last Post: 06-03-2018, 07:59 PM
  2. diagonal line of 2.3 mm width
    By faisal in forum OpenGL: General
    Replies: 2
    Last Post: 04-24-2008, 06:55 AM
  3. Hidden Lines (and Visible Selection)
    By robertm in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-01-2004, 06:38 AM
  4. lines not visible < 1 pixel
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 01-26-2004, 03:33 AM
  5. Diagonal Lines - upper left to lower right
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 09-08-2002, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean