Hi Mike.

This works in the emulator:
if(gl instanceof GL11)
{
    gl.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_GENERATE_MIPMAP,
GL11.GL_TRUE);
    GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
}

Though, this doesnt help if your device doesnt support the GL11
implementation.

I tried your mip mapping function but without success. You wouldnt
happen to have a working example?

Best regards,
Ante

On Jul 14, 6:20 pm, Mike <[email protected]> wrote:
> I've created a simple heightmap renderer for Android, and am at the
> point where I'd like to apply textures to the terrain. I've had
> success with applying a simple texture but there is an unbearable
> amount of texture aliasing visible, I guess because there are no
> mipmaps for the texture. I could not find any way of automatically
> generating mipmaps as all the usual OpenGL methods seem to be
> unsupported.
>
> Have any of you figured out how to generate mipmaps on Android? Do we
> need to write our own implementation to to it?
>
> Thanks,
> Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to