By elFerZur
on Wed, 11/21/2012 - 07:07
Hello, I have a really strange problem with textures. I using image markers to attach my 3d scene, and sometimes, the last object that I render have mixed their texture with the image of the video background!!!. I don't understand this behavior. The problem is fixed when I turn off - turn on the screen (is executed the onPause() method). Can someone explain this behavior???
Thanks in advanced:
elFerZur
Really strange problem with textures
Hi,
it looks like there is some issue with the OpenGL texture binding (as the QCAR background also is a texture);
could you post the relevant code snippet of your _renderFrame() method ?
Really strange problem with textures
My render code is not on "C++" code, I rendering the objects from java code. I recopile the code and I will send you.
You can view the problem if you install the android application at https://play.google.com/store/apps/details?id=com.modela3d
Problem occurs when:
Really strange problem with textures
My render code:
Really strange problem with textures
Hi, it might be due to OpenGL picking up the background texture which is still left in "binding" state from the native renderFrame();
Really strange problem with textures
Hi, I make the changes, but nothing is changed, it still not works fine.
I'm using opengl 1.1, maybe I must include glClientActiveTexture sentences?.
¿Why the only object that mixing their texture with background is the last that it render?. I don't understand this....
Really strange problem with textures
How many objects do you render from Java ? if you reduce the number of objects rendered (e.g. only render the first 3 and skip the rest, or so),
do you still see the problem (and always ont he last one) ?
Really strange problem with textures
Hi, I think that I have a pattern for the error: only works wrong with the last even object of the list.
Really strange problem with textures
Yeah, that's really weird; I see that you use a special Java API there; is that your own API or does it come from an external library ?
My guess is that there is some issu/bug in the way that custom/external API handles the OpenGL state;
Really strange problem with textures
One question, my textureId's always start at number 1. If background paint happens first at every frame, why my textureId not start with 2???. TextureId number 1 must be the background quad texture???. How is binding the background texture ?
Really strange problem with textures
This is probably due to the fact that the video background texture is laily initialized and probably it gets created AFTER your application textures are created;
so for instance your textures will get IDs 1,2,3,4,5 and the background will get texture ID = 6.
Really strange problem with textures
I really do not understand this behavior, the texture that is next to the background texture is mixing, and only when the number of textures is even.
Really strange problem with textures
What looks suspicious in your Java code is also the shadow / reflection rendering; those features certianly use texturing in some ways (probably on multiple texture units) and might as well cause some troubles; have you tried rendering the objects with no shadows/reflection enabled ?
Really strange problem with textures
Hi, currently I not using refection in AR View, only shadows is showing, and I not use multiple texture units in my code. Shadows are painting rendering the objects triangles another time applying proyection matrix and without textures.
Really strange problem with textures
I see.
Good that you can at least solve it with the "extra object" trick; did you try this on different devices ? I'm wondering if this is maybe an OpenGL driver bug on some phones, as it sounds really strange.
Really strange problem with textures
Hello, I try in many different phones (Samsung SII, SIII,HTC) and the problem is the same....
Really strange problem with textures
If I understand, you have succesfully submitted you App, but nobody answered to you yet with feedback;
or did you get any error/problem during the submission itself..?
Really strange problem with textures
I submit the app without errors at Share Your App with Qualcomm , but nobody tell me something...
I don't know if you receive my request correctly.
Really strange problem with textures
Hi, I verified that your App submission has been received; there is no issue with that, you App is listed for review, but this may take some time, as there are many other submissions under review as well.
When we have some news, you will be notified, don't worry.
Really strange problem with textures
O.K. I wait.
Curiously, when you search "Vuforia" at Google Play, my app appears in first place.
Regards:
Really strange problem with textures
Yeah, I see your app showing first in the list!
If you don't hear back from Qualcomm within a few weeks, send me a ping.
Really strange problem with textures
Hi, I found this texture issue is kind of similar to mine, and it also happens on my Samsung Galaxy S2.
If I try to render video on the texture with SurfaceTexture(java), the SurfaceTexture failed to updateTexImage ( if I catch the exception, the video plays upside down).