Search Unity

[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,770
    Create the initial texture without the mipmaps.