Skip to main content
edited title
Link
Patrick
  • 111
  • 3

Texture loading issue with open gl es on android with multiple SurfaceViews

added 268 characters in body
Source Link
Patrick
  • 111
  • 3

Edit 2: Using the profiler I found out that I have two contexts and the image textures are loaded in the other context. Why am I having two contexts?

enter image description here

Edit 2: Using the profiler I found out that I have two contexts and the image textures are loaded in the other context. Why am I having two contexts?

enter image description here

added 268 characters in body
Source Link
Patrick
  • 111
  • 3

Edit: Some new discoveries i made were, that if I load the textures before I create the all the frame buffers for shadow mapping and SSAO, I get the content of the shadow map texture on one model (just the red channel) and the position buffer as rgb content of the other model. That happens since I get index 1 & 2 for the image textures from open gl, but the depth, position, ... texture restart at 1 with indexing. And then I bind the texture with index 1 & 2 as model textures, which happen to be the depth texture and the position texture. I just dont understand why the indexing restarts.

Edit: Some new discoveries i made were, that if I load the textures before I create the all the frame buffers for shadow mapping and SSAO, I get the content of the shadow map texture on one model (just the red channel) and the position buffer as rgb content of the other model.

Edit: Some new discoveries i made were, that if I load the textures before I create the all the frame buffers for shadow mapping and SSAO, I get the content of the shadow map texture on one model (just the red channel) and the position buffer as rgb content of the other model. That happens since I get index 1 & 2 for the image textures from open gl, but the depth, position, ... texture restart at 1 with indexing. And then I bind the texture with index 1 & 2 as model textures, which happen to be the depth texture and the position texture. I just dont understand why the indexing restarts.

added 285 characters in body
Source Link
Patrick
  • 111
  • 3
Loading
added 9 characters in body
Source Link
Patrick
  • 111
  • 3
Loading
fixed typos, added code markdown
Source Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54
Loading
Source Link
Patrick
  • 111
  • 3
Loading