Forums - HTC Desire S GL_EXT_texture_filter_anisotropic problem

4 posts / 0 new
Last post
HTC Desire S GL_EXT_texture_filter_anisotropic problem
COR3 NDrive
Join Date: 1 Oct 10
Posts: 7
Posted: Thu, 2012-03-15 09:53

Hi All,

We have a problem using a production HTC Desire S Android device. In order to enhance the rendering of some ground textures we verify that GL_EXT_texture_filter_anisotropic is supported so , in this device it is.

However, if we use this extension all our textures appear completely mess up. 

 

Any ideas on this problem ?

 

Thanks.

 

  • Up0
  • Down0
Mark_Feldman Moderator
Join Date: 4 Jan 12
Posts: 58
Posted: Thu, 2012-03-15 11:00

 

Could you explain a bit more about how the textures are messed up - any screen shots?  Also can you show how you are setting the texture parameters (GL_TEXTURE_2D)  (including GL_TEXTURE_MAX_ANISOTROPY_EXT)?

  • Up0
  • Down0
COR3 NDrive
Join Date: 1 Oct 10
Posts: 7
Posted: Fri, 2012-03-16 04:40

Sure. 

The textures  appear flickering between black and white.

         if (IsExtensionSupported("GL_EXT_texture_filter_anisotropic") == true) {

 

            GLfloat maxAniso;

            glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &maxAniso);

            glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, maxAniso);

            CHECK_ERROR;

}

        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, min_filter);

        CHECK_ERROR;

        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, mag_filter);

        CHECK_ERROR;

        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, wrap_s);

        CHECK_ERROR;

        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, wrap_t);

        CHECK_ERROR;

        glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_FALSE);

        CHECK_ERROR;

 

Thanks.

 

  • Up0
  • Down0
Mark_Feldman Moderator
Join Date: 4 Jan 12
Posts: 58
Posted: Fri, 2012-03-16 10:29

It would be helpful to see a screenshot, better understand the glTexParameters values that are being set, and understand the geometry and uv coordinates that are used.  Also is the flickering caused by a change in the geometry, camera position, uv values or something else.

thanks

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.