Main Page | Report this Page
Computers Forum Index  »  Computer - Graphics - API (Opengl)  »  bigger framebuffer than texture?...
Page 1 of 1    

bigger framebuffer than texture?...

Author Message
Gernot Frisch...
Posted: Thu Oct 22, 2009 11:48 am
Guest
Hi,

my problem is, that on iPhone I somehow can't get the alpha pixels of a
texture if the size is < 16x16.
I think it might be that the FBO I create is smaller, because I can load and
draw 1x1 textures.

Can the framebuffer be 16x16 and the texture 1x1?
glFramebufferTexture2DExt( GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
GL_TEXTURE_2D, texture, 0 );


--
------------------------------------
Gernot Frisch
http://www.glbasic.com
 
jbwest...
Posted: Thu Oct 22, 2009 9:22 pm
Guest
"Gernot Frisch" <me at (no spam) privacy.net> wrote in message
news:7kagrtF38g3omU1 at (no spam) mid.individual.net...
Quote:
Hi,

my problem is, that on iPhone I somehow can't get the alpha pixels of a
texture if the size is < 16x16.
I think it might be that the FBO I create is smaller, because I can load
and draw 1x1 textures.

Can the framebuffer be 16x16 and the texture 1x1?
glFramebufferTexture2DExt( GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
GL_TEXTURE_2D, texture, 0 );


--
------------------------------------
Gernot Frisch
http://www.glbasic.com


Did you forget about power-of-2 requirement on general textures ? You can
load a 1x1 but you have to create a 2x2 unless you use NPOT extension.


jbw
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 08, 2009 2:57 am