JH2012
Posts: 2
Joined: Sat Jul 06, 2013 4:06 pm

Not able to Bind framebuffer for a floating point texture

Tue Jul 23, 2013 10:52 am

Hi, Guys! I am a newbie in OpenGL es, currently dabbled in the GPU image processing. When I am trying to create a framebuffer to load half float point texture, it always fails. Does anybody know why?
Thanks~

Code: Select all

glGenFramebuffers(1, &framebuffer);
	glGenTextures(1, &texture);

	glBindTexture(GL_TEXTURE_2D, texture);
	glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, texWidth, texHeight, 0, GL_RGB,   GL_HALF_FLOAT_OES, NULL);
the program is alright when substitute GL_HALF_FLOAT_OES with GL_UNSIGNED_BYTE

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: Not able to Bind framebuffer for a floating point textur

Tue Jul 23, 2013 12:37 pm

Floating point (and half-float) texture formats are not supported by the GPU on the Raspberry Pi.

JH2012
Posts: 2
Joined: Sat Jul 06, 2013 4:06 pm

Re: Not able to Bind framebuffer for a floating point textur

Tue Jul 23, 2013 12:59 pm

OtherCrashOverride wrote:Floating point (and half-float) texture formats are not supported by the GPU on the Raspberry Pi.
Thanks! As the glGetString(GL_EXTENSION) returns OES_texture_half_float, I thought it would work for me. :roll:

OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

Re: Not able to Bind framebuffer for a floating point textur

Tue Jul 23, 2013 2:07 pm

GL_OES_vertex_half_float is supported, OES_texture_half_float is not.
GLES: Vendor=Broadcom
GLES: Renderer=VideoCore IV HW
GLES: Version=OpenGL ES 2.0
GLES: Extensions=GL_OES_compressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_texture_npot GL_OES_depth24 GL_OES_vertex_half_float GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_discard_framebuffer GL_OES_rgb8_rgba8 GL_OES_depth32 GL_OES_mapbuffer GL_EXT_texture_format_BGRA8888 GL_APPLE_rgb_422 GL_EXT_debug_marker

Return to “OpenGLES”