Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

[url]WWW.LoadImageIntoTexture[/url] - need alpha support

Discussion in 'Editor & General Support' started by MrSweet, Feb 6, 2009.

  1. MrSweet

    MrSweet

    Joined:
    Jan 19, 2007
    Posts:
    143
    WWW.LoadImageIntoTexture

    The data must be an image in JPG or PNG format.

    Is there a way around this? we need alpha data and thoses formats don't help us

    Thanks
     
  2. HiggyB

    HiggyB

    Unity Product Evangelist

    Joined:
    Dec 8, 2006
    Posts:
    6,183
    PNG supports alpha.
     
  3. MrSweet

    MrSweet

    Joined:
    Jan 19, 2007
    Posts:
    143
    Thanks :)

    PNG-24 *save for web* in PS.

    I was doing a standard save as PNG and could not see the Alpha option


    Thanks Bud

    Andy
     
  4. MrSweet

    MrSweet

    Joined:
    Jan 19, 2007
    Posts:
    143
    renderer.material.mainTexture = new Texture2D(1024, 1024);
    while(true) {
    // Start a download of the given URL
    var www = new WWW(url);

    // wait until the download is done
    yield www

    When the .jpeg or .png is loaded it has MIP mapping as default, can we disable that?

    Thanks
     
  5. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,684
    Create the initial texture without the mipmaps.
     
unityunity