This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Mali GPU Texture Compression Tool - Jpg to Etc1 Texture Corruption

I Tried "Mali GPU Texture Compression Tool" for converrting my images from jpeg to etc1.

I Use the Following Params to achieve Pefect results with Jpeg Texture

glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);

  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);

I user Follwoing Params with Etc1

glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);

  glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);

  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,GL_CLAMP_TO_EDGE);

  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T,GL_CLAMP_TO_EDGE);

Parents
  • I have seen the Texture in the Tool it looks fine, The Problem is with Displaying on OpenglSide.

    Am reading the PKM file from Compression tool .

    Chopping the header (16 bytes) & reading the data the size am giving to the Opengl is  - > (w * h) /2 and the data buffer .

Reply
  • I have seen the Texture in the Tool it looks fine, The Problem is with Displaying on OpenglSide.

    Am reading the PKM file from Compression tool .

    Chopping the header (16 bytes) & reading the data the size am giving to the Opengl is  - > (w * h) /2 and the data buffer .

Children