Point Sprite support

by Scott » Tue, 06 Oct 2009 10:37:41 GMT

Sponsored Links
 Can someone confirm for me that point sprites are not currently
supported in Android? Calling gl.glEnable(GL11.GL_POINT_SPRITE_OES) is
triggering a GL_INVALID_ENUM error, so I assume this is the case, but
I'd appreciate a confirmation before I proceed with an alternate

Thank you,


Point Sprite support

by Robert Green » Tue, 06 Oct 2009 11:52:39 GMT

 Can I guess that you're trying that on the emulator?

String extensions = gl.glGetString(GL10.GL_EXTENSIONS);
Log.i(TAG, "GL Extensions [" + extensions + "]");

Add that into your Renderer.onSurfaceCreated() so that you can see
what extensions are available on the platform you're developing for.
I recommend adding a method to check if point_sprite is supported in
that list and if so, use them, but if not, perhaps developing a Gl10
equivalent that is used for a backup is a good idea.

I do that for mipmaps.  If hardware support is there, I let it
generate them, otherwise I have a loop that creates and uploads them.


Sponsored Links

Point Sprite support

by Scott » Wed, 07 Oct 2009 06:19:46 GMT

 Thanks for the tip, Robert. GL_OES_point_sprite is indeed output as an
extension on the G1, but not in the emulator. I can at least explore
this functionality if not as conveniently debug it.

Point Sprite support

by Scott » Tue, 13 Oct 2009 06:10:26 GMT

 All right. Perhaps a silly follow-on question. If the hardware
supports point sprites, but does not support non-power-of-two
textures, then can I support non-power-of-two image dimensions for my
point sprites? I realize I can copy an image into a portion of a
larger sized power-of-two texture, but I don't believe I can blit that
portion of the texture as a point sprite. Can someone please confirm?

Thank you,

Other Threads

1. for transferring file, is it require any permissions?

for transferring file, is it require any permissions?
e.g for socket"... INTERNET"

2. How to disable Auto-Focus on Camera?

    Does anyone know how to disable autofocus from the Camera class?
This feature is available in SnapPhoto.  I want to take two images at
different levels of focus.  So the first picture is captured with
AutoFocus disabled, and then on the second picture I enable autofocus
and hope that it finds a better focus point.

Please, any suggestions would help.


3. WVGA definition in Android?

4. java.net.serversocket.accept() not responding..

5. how to send AT command to android phone?

6. How to pass response from ksoap to another activity

7. Bad news on the Agroa....