Search Unity

What happens when we use ETC2 on Open GL ES 2.0 devices

Discussion in 'General Discussion' started by Avinash-pdy, Feb 26, 2015.

  1. Avinash-pdy

    Avinash-pdy

    Joined:
    Mar 4, 2013
    Posts:
    28
    Hi,

    We want to know what is a fallback for ETC2 on Open GS 2.0 devices? We use ETC2 texture format and in player setting we use "force open gl es 2.0".

    Our game still works on devices with both open gl es 2.0 and 3.0. What does unity do if we use a texture with ETC2 on a device where its not supported?

    I searched on net but didn't find any answer to this question.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Generally, unity decompresses texture on the CPU if device's GPU doesn't support its format.
     
    Avinash-pdy likes this.
  3. Avinash-pdy

    Avinash-pdy

    Joined:
    Mar 4, 2013
    Posts:
    28
    Tautvydas, thanks for your quick reply. This does answer why our game still works.

    We are using "force open gl es 2.0" in player setting for android. Does it mean even on devices where open gl es 3.0 is supported it will still decompresses texture?

    "Decompresses texture" means it will be using RGBA 32 bit or there is a default compression which unity uses if GPU doesnt support its format.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    It means it's gonna use RGBA32. Even if the device supports GLES3, but you force GLES2, it will still decompress it on the CPU.
     
    Avinash-pdy likes this.