RGBA FLOAT RGB FLOAT LUMINANCE_ALPHA FLOAT LUMINANCE FLOAT ALPHA FLOAT
The best option for me is LUMINANCE (single channel texture, memory saved, convenient).So, I create such textures and attach them to FBO to do off-screen rendering.Unfortunately, this works only on Linux (Ubuntu 12.04). On Windows I get "GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glDrawElements: framebuffer incomplete (check)". So, it looks like the LUMINANCE texture is an invalid render target (FBO is incomplete). What's interesting, when I change LUMINANCE to ALPHA the situation is opposite - everything works on Windows, but not on Linux. ;)
Why? Is it any limitation of the format of texture when used as a render target? Is there any specification which defines possible formats of textures attached to FBO?Yes it's a pity. I have very old examples with 1 and 2 channel textures
http://www.ibiblio.org/e-notes/webgl/test/
Scripts work fine with OpenGL drivers but rendering to corresponding FBO is not implemented in ANGLE because It is not OpenGL ES (i.e. mobile devices) compatible.
Technically none of the OES_texture_float formats are supposed to be renderable (and they likely aren't on actual OpenGL ES hardware).
There was a bug in ANGLE which was allowing ALPHA formats to be renderable. This has since been fixed. (They were not worked as desired, and they are actually expanded to BGRA or RGBA).Some Desktop GL implementations do allow LUMINANCE and ALPHA float textures to be renderable, but that is not required even on there (in particular, I believe you'll find they don't work on Mac).
Technically none of the OES_texture_float formats are supposed to be renderable (and they likely aren't on actual OpenGL ES hardware).
also:"The WebGL implementation may optionally accept a texture with pixel type FLOAT as the color attachment to an FBO. Applications must check such an FBO for completeness after attempting to make this attachment." (see: http://www.khronos.org/registry/webgl/extensions/OES_texture_float/)
OK, so I understand this is the best what I can do (attach texture and check if FBO is complete).
NOTE: This electronic mail message may contain confidential and privileged information from HI Corporation. If you are not the intended recipient, any disclosure, photocopying, distribution or use of the contents of the received information is prohibited. If you have received this e-mail in error, please notify the sender immediately and permanently delete this message and all related copies.