Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

AntiAliasing or GL_POINT_SMOOTH

abobushuntrr

New member
Joined
Apr 8, 2022
Messages
13
Reaction score
0
Points
0
1655128603514.png
As you can see in the screenshot, I showed with arrows where there are cuts in the chinahat.

As I understand it, this is fixed by including GL_POLYGON_SMOTH or GL_POINT_SMOTH or GL_LINE_SMOTH. But it doesn't help. Does anyone know how to fix this?
 
Java:
GL11.glEnable(GL11.GL_LINE_SMOOTH);
GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST);
GLUtils.begin(GL11.GL_LINE_LOOP);
for (int i = 0; i <= 360; i++) {
    double x = Math.cos(i * Math.PI / 180) * radius;
    double z = Math.sin(i * Math.PI / 180) * radius;
    GLUtils.vertex3(x, 0, z);
}
GLUtils.end();
GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_DONT_CARE);
GL11.glDisable(GL11.GL_LINE_SMOOTH);

Edit: Used code blocks for easier readability (Krypton)
 
Last edited by a moderator:
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top