We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've been hacking on the Advanced OpenGL example sketch, trying to create a VBO-based grid that I can then apply GLSL shaders to, to do various cool things.
One of the things I want to do is add an option to display grid vertices as points. I've managed to get that working, but I can't work out how to change the point-size with an OpenGL call.
I'm currently using
gl.glDrawElements(PGL.POINTS, indices.length, GL.GL_UNSIGNED_INT, 0);
to draw the verts as points.
I'd like to add a line to change point-size, and maybe add the possibility of antialiasing them, too. I've tried various things, but haven't been able to get it to work.
a|x
Answers
I'm also wondering if it would be possible to draw all the vertices just once, rather than every draw cycle, as in the example.
a|x
for GL3
gl = ((PJOGL)beginPGL()).gl.getGL3();
gl.glPointSize(25.0);
for ES 2.0 vertexShader
gl_Pointsize=25.0
http://download.java.net/media/jogl/jogl-2.x-docs/javax/media/opengl/GL3.html
Great, thanks once again @nabr. I'll try that. I'm thinking of using OpenGL 4 because I want to try Geometry Shaders.
a|x
Share a demo when you done :)
@nabr I'm hoping to have some PostFX render pass classes to share.
a|x