Skip to main content

All Questions

Tagged with
0 votes
0 answers
264 views

iOS OpenglES 3.0 rendering to texture fails with depth attachment

Rendering into texture in my mobile app works fine when the rendertarget texture has no depth attachment. When I add a depth attachment, it stops working on iOS. Apparently can't switch back to the ...
Gravitysensation's user avatar
0 votes
0 answers
551 views

Xcode OpenGL ES: Framebuffer is not complete

I am trying to render an image to a texture in OpenGL ES to implement off-screen Sobel filter. Following this link http://www.songho.ca/opengl/gl_fbo.html, I create a resulting texture named ...
Dan Do's user avatar
  • 79
9 votes
1 answer
1k views

How to restore a GL_RENDERBUFFER?

I am working on storing and restoring my OpenGL ES based application's state. I have a function to save the GL_RENDERBUFFER to dump the data with the following code: glBindFramebuffer(GL_FRAMEBUFFER,...
Jeshua Lacock's user avatar
0 votes
1 answer
594 views

libGDX: FrameBuffer size limit == max texture size?

I want to render my libGDX-game to a buffer and then render the content of the buffer to the screen. For that I plan to use the FrameBuffer. The buffer dimensions suppose to be equal to the size of a ...
J Fixby's user avatar
0 votes
1 answer
1k views

OpenGL ES 2.0 Framebuffer with render to texture iOS: nothing shown

I'm using a Framebuffer to do post processing. Creating and drawing to the buffer (tested via glReadPixels and glCheckFramebufferStatus) is working fine. But now I want to render the this texture with ...
Bastl's user avatar
  • 893
4 votes
1 answer
115 views

How can I track a point on a texture in OpenGL ES1?

In my iOS application I have a texture applied to a sphere rendered in OpenGLES1. The sphere can be rotated by the user. How can I track where a given point on the texture is in 2D space at any given ...
user2393462435's user avatar
0 votes
1 answer
206 views

LibGDX FrameBuffer quirk on iOS

I've got dynamic textures for a word game that I create and keep on a FrameBuffer. I then use TextureRegions backed by that FrameBuffer to draw to the screen. This code works fine on Android, but I'm ...
Will Calderwood's user avatar
1 vote
1 answer
266 views

How to adapt the old OpenGL ES 1 setup to iPhone 6 Plus?

If I'm not the last man on earth using the very 1st version of OpenGL ES: has anyone dealt with adapting the resizeFromLayer function to the new 3x scaling on iPhone 6 Plus? The code below works ...
Tom's user avatar
  • 261
0 votes
0 answers
146 views

Attaching a texture for the depth buffer

When I uncomment this line: glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, _depthMapTexture, 0); I get error 0x8cd6 (incomplete framebuffer). My texture is: ...
aledalgrande's user avatar
  • 5,207
0 votes
0 answers
65 views

Minimal configuration for rendering to texture on iOS

My code: // setup framebuffer glGenFramebuffers(1, &_internalFramebuffer); glBindFramebuffer(GL_FRAMEBUFFER, _internalFramebuffer); // reference texture glGenTextures(1, &...
aledalgrande's user avatar
  • 5,207
0 votes
1 answer
2k views

OpenGL ES 2.0 rendering to multiple textures

I am building an iPad app using OpenGL ES 2.0. What I need to do is render to multiple textures and then render all the textures to view. I draw using GL_POINTS based on the user touch location. My ...
Amendale's user avatar
  • 317
1 vote
2 answers
976 views

Open GL ES 2.0 renderbufferStorage returns false

I'm trying to create a Framebuffer to display a 3D model in my iOS app but when the framebuffer is created, the renderbufferStorage is returning false. My code is based on GLCameraRipple sample code. ...
sastresa's user avatar
1 vote
1 answer
2k views

Rendering "layers" in OpenGL ES

I'm making an iOS app and I want to be able to render with individual "layers" so that I can do blending between them and use shaders on each individually before blending them all together and ...
Danegraphics's user avatar
0 votes
1 answer
217 views

Rendering from to a texture from an FBO causes blurring

I'm trying to create a Photo editing program using OpenGL ES2 on iOS. I want to be able to modify parts of a photo using the fragment shader. For example, if the user touches the screen that point ...
James Andrews's user avatar
0 votes
1 answer
707 views

opengles: how to copy existing fbo's colorattachment(renderbuffer) to another fbo's colorattachment(texture2D)

Platform is iPhone OpenGL ES 2.0 the framework already create an main fbo with renderbuffer as it's colorattachment. And I have my own fbo with texture2D as colorattachment. I want to copy main fbo'...
xophiix's user avatar

15 30 50 per page