Vibration of the object being drawn glPointSize(1)

Hi,

I’m starting an adventure with GLFW, I have not found anything on the subject in the OpenGL documentation, please explain the
if I draw an object using glPointSize( 2 ) is all right
if the parameter is one glPointSize( 1 ) the drawn objects start to vibrate slightly.

where is my mistake?
source code - testPoint

Best regards,

  • Rafał

Note that this is an OpenGL/graphics question rather than a GLFW one, so you may also want to ask on other more general forums if you don’t get a satisfactory answer here. Note that GL_POINTS are legacy OpenGL.

I’m not sure what you mean by vibrating slightly, does this occur with movement of the point, and are you certain your inputs to glOrtho or glVertex2i do not correspond to the observed movement? Note that the larger point size could simply be masking the effect.

Yes, that’s right, larger point size masking the effect and this applies to the already drawn points.

Best regards,
– Rafał

Does your answer mean that you now understand the source of your problem and do not have any more questions?

I have not solved the problem,
but I have no more questions.

Best regards,
– Rafał

Have you checked that your x, y values are not changing in a way which would cause what you see?

These are my beginnings from OpenGL, GLFW
I will try to solve the problem.

Best regards,
– Rafał

Hi,

Answer this glfwSwapInterval(1)
I’ve found it here GLUT callback GLFW

I wonder why it was difficult to write here?

Best regards,
– Rafał