Inquisitor

09-05-2009, 11:50 AM

I have some problems getting my point-sprites behave like I want them to. Essentially I want to replace some quads by point-sprites.

The list of quads is defined by the mid-points and the edge-size (real quads, not rectangles), always facing the viewer. Now I'm trying to figure out a glPointParameter configuration so I can takes those two values for point-vertex and point-size, and get a "compatible" output using point-sprites. Of course taking perspective projection into account.

And that's the problem: I can't figure out what to feed into glPointParameter(GL_POINT_DISTANCE_ATTENUATION,... ) to get that working.

Any hints are welcome. Thanks!

The list of quads is defined by the mid-points and the edge-size (real quads, not rectangles), always facing the viewer. Now I'm trying to figure out a glPointParameter configuration so I can takes those two values for point-vertex and point-size, and get a "compatible" output using point-sprites. Of course taking perspective projection into account.

And that's the problem: I can't figure out what to feed into glPointParameter(GL_POINT_DISTANCE_ATTENUATION,... ) to get that working.

Any hints are welcome. Thanks!