[newbie]help, draw points with different sizes sing buffers

I am trying to write a simple program, which simulates a particle system. I can get it work partially using the same point size. Currently I use vertex buffers to draw particles. I am wondering whether I can draw points with different sizes using buffers in JOGL.

How can I fix this problem? Appreciate your help!

Hi,

You can change the point size with the following call :

gl.glPointSize(x.xf

But you can also take a look at the GL_POINT_SPRITE functionality to have a better approach to particles system (at least someone says so).

Thank you.
If I have ten thousands of points with different sizes to draw, and I do not use buffers, the efficiency is a big problem. That is why I am trying to get glPointSize work on buffers.

Maybe try using a shader, I think glsl shaders allow you to change point size for each incoming point.