Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: why are the graphics so bad?

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2012
    Posts
    2

    why are the graphics so bad?


    The graphics are especially bad for the specular light which I've marked with a red square. What can anyone do about it? Everything else looks good though...

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,713

    Re: why is the graphics so bad?

    What is this a picture of? What is it trying to be, and what is the glowing thing that you have in a red box?

    Without knowing what this is supposed to be a picture of, it's rather hard to know what the problem is or how you might correct it.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2012
    Posts
    2

    Re: why is the graphics so bad?

    I have a point light source where the cube is. The glowing thing in the box is the specular light component of the point light source. I don't think opengl rendered it well...and you can see it is really bad if you enlarge the picture.

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: why is the graphics so bad?

    Do you use vertex lighting ? Then this is expected.
    You should instead do fragment shading using GLSL.

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Jan 2007
    Posts
    964

    Re: why is the graphics so bad?

    Yeah, lighting per-vertex was the first thing I thought of too.

    Basically: if graphics are bad, it's because you coded them to be bad. In the case of classic fixed pipeline OpenGL lighting (which it seems you are using), it has always been (and has always admitted to be) a crude approximation that will break under many circumstances. Without an understanding of this, of how the algorithms work, and of where the break-points are, you're going to come across such circumstances more and more.

Posting Permissions

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