Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up3D Api: textures changes randomly #1472
Comments
|
Would you mind to include a small test to reproduce the issue? If you work from source, it should be ok to reference the textures/assets of the tests. |
|
I just used your https://github.com/xoppa/blog/blob/master/tutorials/src/com/xoppa/blog/libgdx/g3d/frustumculling/step1/FrustumCullingTest.java and step4 code too. Today I have played with this: |
|
can reproduce this with basic3dscenetest on a HTC Desire HD. The texture of the ship and the first 2 ufos got swapped randomly when rotating the view. |
|
Can you try to use only one texture unit:
In create();
In render():
|
|
That |
|
http://androidblog.reindustries.com/hack-bad-gpu-fix-not-using-correct-texture-opengl/ The Galaxy mini seems to have a Adreno 200 GPU so it would fit, see http://en.wikipedia.org/wiki/Samsung_Galaxy_Mini I had some Texture problems on my phone (HTC DESIRE Z, Adreno 205 GPU), could be the same issue as described here. I fixed it for me on my fork like so: crazysaem@ef152e0 //EDIT: The HTC DESIRE HD also has a Adreno 205 GPU (http://en.wikipedia.org/wiki/HTC_Desire_HD) |
|
If anyone is experiencing this problem then please add this class to your project (make sure to update the package name): https://gist.github.com/xoppa/2a1e1adfa3f4764f17f2 and add I'm not sure how widely used the Adreno 20x is. We could (conditionally, based on the gpu?) integrate this fix in the android backend. Although I'm personally leaning in favor of not fixing this in core. |
I tested xoppa's newest tutorial (frustum culling), it works fine with desktop and bluestacks emu, but when I test it in my phone (galaxy mini), models' textures changed when rotating/moving. It's like it doesnt always bind right texture. My test works like that too (textures changing), even I dont use frustum culling.
Using newest libgdx from git.
http://i58.tinypic.com/2lt5w5v.png
(you can see there are some invaders with ship's texture, and when rotating, other object's will change texture too)