Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:45:12+00:00 2026-05-30T15:45:12+00:00

I need some help finding information (or an example) of how to use texture

  • 0

I need some help finding information (or an example) of how to use texture compression for Android. I have a lot of PNG’s right now and I need to reduce the amount of memory they take up. I was looking at PVR compression but I can’t figure out how to use this within OpenGL.

Could some point me in the right direction or offer some examples as I cannot find anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:45:13+00:00Added an answer on May 30, 2026 at 3:45 pm

    There are mainly four texture compression types supported on Android:

    • ETC1 (Ericsson texture compression). This format is supported by all Android phones. But, it doesn’t support an alpha channel, so can only be used for opaque textures.
    • PVRTC (PowerVR texture compression). Supported by devices with PowerVR GPUs (Nexus S, Kindle fire, etc.).
    • ATITC (ATI texture compression). Used in devices with Adreno GPU from Qualcomm (Nexus One, etc.).
    • S3TC (S3 texture compression). This texture compression is used in the NVIDIA chipset integrated devices (Motorola Xoom, etc.)

    More detailed information here and here.

    In short, if your textures don’t have alpha, you can use ETC1. If they do have alpha, and you want to support all devices, you must have your textures compressed in the other three types and load them according to the device.

    How to use:

    1. Compress your png files (You can use a tool like ETC-Pack, PVRTexTool, ATI Compressonator, Nvidia Texure Tools according to the type of texture) and add to your project assets.

    2. Determine which extensions are available in the device, if you’re not using ETC1:

      public void onSurfaceCreated(GL10 gl, EGLConfig config) {
      
           String s = gl.glGetString(GL10.GL_EXTENSIONS);
      
           if (s.contains("GL_IMG_texture_compression_pvrtc")){
                //Use PVR compressed textures         
           }else if (s.contains("GL_AMD_compressed_ATC_texture") ||
                    s.contains("GL_ATI_texture_compression_atitc")){
                //Load ATI Textures           
           }else if (s.contains("GL_OES_texture_compression_S3TC") ||
                      s.contains("GL_EXT_texture_compression_s3tc")){
               //Use DTX Textures
           }else{
               //Handle no texture compression founded.               
           }
      
      }           
      
    3. Load compressed texture as raw data.

    4. Use glCompressedTexImage2D instead of glTexImage2D:

      public void onDrawFrame(GL10 gl) {
      
         ....
      
         gl.glCompressedTexImage2D(GL10.GL_TEXTURE_2D, level, internalformat, width, 
                                   height, border, imageSize, data);
      
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Need some help about with Memcache. I have created a class and want to
Need some help, please. I have a line of horizontal thumbnails loaded as ONE
Need some help to solve this. I have a gridview and inside the gridview
Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
I need some help from the shell-script gurus out there. I have a .txt
I have two tables on different servers, and I'd like some help finding an
I need some help with finding some tutorials on how an iPhone communicate with
Need some help finding the max value in a worksheet, I tried with range:
i need some help about finding elements position. im working on an e-book reader,
I am having trouble and need some help finding a correct SQL query. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.