Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: ugly teapot

  1. #1
    Newbie Newbie
    Join Date
    Oct 2012

    ugly teapot


    I'm new to opengl and this is my first post here...

    I managed to build an opengl program that displays the standard teapot, problem I have is areas where the triangles overlap (one behind the other) show artifacts:

    It's probably some obvious setting I forgot but it could take me days to find which one exactly (blending, z-fighting, antialiasing, ...?), so any pointers well appreciated

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Quote Originally Posted by exstud View Post
    ...problem I have is areas where the triangles overlap (one behind the other) show artifacts... (blending, z-fighting, antialiasing, ...?)
    Are you talking about the "jaggies" (pixel-sized stair steps) on the edge of the base teapot where (for instance) it's in front of the spout?

    If so, you want to enable multisample antialiasing (MSAA). See Multisampling (OpenGL Wiki). Enabling this under GLX (UNIX/Linux) is very similar. Let me know if you want more detail.

    Setting some ambient lighting so that the areas not facing the light aren't totally black will make it look better/more realistic as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts