iDevGames Forums
creating points of various sizes in openGL es - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: creating points of various sizes in openGL es (/thread-3.html)



creating points of various sizes in openGL es - aerospaceman - Jul 3, 2010 01:49 PM

openGL has this capability. Is there a way to do it with ES?


creating points of various sizes in openGL es - skyhawk - Jul 5, 2010 11:40 AM

unsure, but worst case scenario, you could always create them via triangle fans.


RE: creating points of various sizes in openGL es - OneSadCookie - Jul 5, 2010 08:40 PM

I thought ES has point sprites, but not vanilla points


RE: creating points of various sizes in openGL es - Skorche - Jul 7, 2010 07:05 PM

It has both. I use vanilla points in the Chipmunk debug drawing stuff. They are just basic aliased squares though, so I wouldn't use them for anything more important than debug drawing or pixel sized dots.

You probably want to use point sprites and point size arrays.


RE: creating points of various sizes in openGL es - arekkusu - Jul 8, 2010 11:28 AM

ES1.1 supports both points and point sprites. Use glPointSize() to set a constant size, or OES_point_size_array to set a per-point size.
ES2.0 supports only point sprites. You must write gl_PointSize in the vertex shader, per point.

In iOS, the simulator, MBX, and SGX devices all support both aliased and smooth (antialiased circle) points. You can query the range of supported sizes. See also the Platform Notes in the documentation.


RE: creating points of various sizes in openGL es - aerospaceman - Jul 16, 2010 01:08 PM

(Jul 8, 2010 11:28 AM)arekkusu Wrote:  ES1.1 supports both points and point sprites. Use glPointSize() to set a constant size, or OES_point_size_array to set a per-point size.
ES2.0 supports only point sprites. You must write gl_PointSize in the vertex shader, per point.

In iOS, the simulator, MBX, and SGX devices all support both aliased and smooth (antialiased circle) points. You can query the range of supported sizes. See also the Platform Notes in the documentation.

thanks!!!