Unable to draw GL_POINTS on Raspberry Pi

I’m trying to draw a point cloud on Raspberry Pi 3 but nothing is rendered. You can test it by running the ParticlesBasic sample and changing GL_LINES for GL_POINTS.

GL_PROGRAM_POINT_SIZE doesn’t seem to be defined, so I’m not sure how I’d draw it point sprites either.

Does anyone have a workaround?


In the past I’ve just used billboarded textured quads. You could potentially generate them in a geometry shader, and then you wouldn’t have to add any more data structures on the cpu side.

I just figured it out with some help from Andrew: ES2 requires you to specify a gl_PointSize in the vertex shader, which the default stock shader from Cinder doesn’t have.

Some more detail here: https://gamedev.stackexchange.com/questions/11095/opengl-es-2-0-point-sprites-size

@sharkbox using quads might also be a good idea, thanks. But I don’t think you can use geometry shaders on es2.

1 Like