mtschoen / android-gl

Automatically exported from code.google.com/p/android-gl
0 stars 0 forks source link

Textures not mapped correctly #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In tutorial 8 (Textures) if I replace
current bitmpap (R.drawables.icon) with
a bitmap that has several parallel black&white
lines I see that texture is not perspective
projected. Is it a limitation of opengl es
or it can be fixed?

Original issue reported on code.google.com by psk...@gmail.com on 10 Nov 2008 at 9:57

GoogleCodeExporter commented 8 years ago
Hmm, that seems like a bug in the Android OpenGL renderer.  Have you tried it 
in both
hardware and software?  e.g. on a phone?

OpenGL ES should definitely do perspective projection of textures.

Can you attach the texture you're using?

Original comment by brendan....@gmail.com on 14 Nov 2008 at 5:06

GoogleCodeExporter commented 8 years ago
in the meantime i made a little investigation and it seems that when you add in 
init
()

gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST) 

the problem goes away.

Original comment by psk...@gmail.com on 14 Nov 2008 at 10:51