Log in or register to post comments

Textures cut on Samsung Galaxy S4

September 9, 2013 - 12:58am #1

Hi,

I have an application based on ImageTargets, where I also add my textures to be drawn next to the target. This works perfectly on Samsung Galaxy S3 (Android 4.1.2). Now I have tested it on Galaxy 4 (adnroid 4.2.2), and it is not working well - all the textures, including the 3D pot are cut. It seems like they do not drawn in all of the area they should be drawn to - when I move the phone, the cut parts change. This is very weird, and I do not know what's the cause - do you have any idea? Have anyone encountered such a behavior?

 

Thanks,

yakobom

Textures cut on Samsung Galaxy S4

September 9, 2013 - 4:39am #8

Thanks for sharing this.

Textures cut on Samsung Galaxy S4

September 9, 2013 - 3:50am #7

Hi,

I found the answer, and wanted to share in case it helps anyone else. It had to do with glDepthMask. This helped me solve it: http://stackoverflow.com/questions/5161784/gldepthmaskgl-false-trashes-the-frame-buffer-on-some-gpus

 

yakobom

Textures cut on Samsung Galaxy S4

September 9, 2013 - 2:26am #6

Since debugging OpenGL issues can be hard, my suggestion is to try starting from the samples (without any change) and gradually/ incrementally add/modify OpenGL code until you reach a point where you can identify the exact code that is triggering the issue on the S4.

 

Textures cut on Samsung Galaxy S4

September 9, 2013 - 2:07am #5

Yes, I also had a strong feeling it's something like that, but after several hours of searching, I asked for your help...

I'm only using shaders from your sample code, and most of the code is also from your sample code projects. I'll keep looking - but if you have even a slight idea regarding what else I should look, it would be great.

 

Thanks,

yakobom

Textures cut on Samsung Galaxy S4

September 9, 2013 - 2:02am #4

Thanks for the screenshots... indeed the visual effect is wierd;

this definitely looks like some OpenGL misbehaviour, perhaps due to some OpenGL settings being altered and not correctly restored at the end of your rendering batch, or maybe are you using some custom shaders ?

 

 

 

Textures cut on Samsung Galaxy S4

September 9, 2013 - 1:37am #3

Hi,

Indeed it's very hard to imagine, sorry. Attaching 2 pictures - the first is the first time I took the screenshot, and after I took it, from some reason, it looked a bit different so I attached second screenshot to show that as well. In the screenshots you can see my testing target (barcode), the cut pot, a cut video texture to the right of the pot and another cut texture below the pot.

Thanks, again, for your kind and quick support.

 

yakobom

AttachmentSize
Image icon 1.png521.93 KB
Image icon 2.png612.2 KB

Textures cut on Samsung Galaxy S4

September 9, 2013 - 1:10am #2

Hi, could you share a screenshot ? That would help understanding the issue a bit better.

 

Log in or register to post comments