Hello.
I'm working on a game where I use simple vector-graphics, but I'm not entirely happy with how much aliasing there is.
It's kind of a vague question, but I need someone with experience in openGL to say if this looks reasonable, or if I should be able to get smoother lines.
This is what i've done so far to smooth the graphics, but to be honest I don't feel that there is much of a difference if I comment it out:
Below is part of a screenshot from the game as an example.
I'm working on a game where I use simple vector-graphics, but I'm not entirely happy with how much aliasing there is.
It's kind of a vague question, but I need someone with experience in openGL to say if this looks reasonable, or if I should be able to get smoother lines.
This is what i've done so far to smooth the graphics, but to be honest I don't feel that there is much of a difference if I comment it out:
- hint(DISABLE_OPENGL_2X_SMOOTH);
- hint(ENABLE_OPENGL_4X_SMOOTH);
- gl.glHint (gl.GL_LINE_SMOOTH_HINT, gl.GL_NICEST);
- gl.glHint (gl.GL_POLYGON_SMOOTH_HINT, gl.GL_NICEST);
- gl.glEnable (gl.GL_LINE_SMOOTH);
- gl.glEnable (gl.GL_POLYGON_SMOOTH);
Below is part of a screenshot from the game as an example.
1