Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (Case 1262574) Graphics.ConvertTexture produces gray image always

Discussion in '2020.2 Beta' started by Peter77, Jul 12, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    Using Graphics.ConvertTexture to convert a texture from any format to a
    ARGB32
    or
    RGBA32
    texture, produces a gray image always. I haven't tried other target formats.

    If anybody knows a workaround, please let me know.

    The provided example calls
    Graphics.ConvertTexture
    on every texture found in the "Assets/Textures" directory and stores the result in the "Assets/Textures_Converted" directory. The results all appear in solid gray, but should appear having the same checkerboard pattern like the source textures.



    Reproduce
    • Open attached project
    • Look at textures in "Assets/Textures"
    • Press from main menu "BugReport > Convert Textures"
    • Look at textures in "Assets/Textures_Converted"

    Actual
    Notice all textures are solid gray.

    Expected
    Converted texture should have a checkerboard pattern.
     

    Attached Files:

  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    ROBYER1 and Peter77 like this.
  3. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    Done
     
    Peter77 likes this.
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    The spammers flooded the report again!

    PS: Checked a few other reports. The public issue tracker actually turned into something more like a spam database. It's crazy! :eek:
     
  6. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,338
    The public issue tracker has been a spam haven for years now. Nothing new there.