Search Unity

  1. 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

Transparency[HELP]

Discussion in 'Scripting' started by blackdragonstory, Sep 24, 2011.

  1. blackdragonstory

    blackdragonstory

    Joined:
    Nov 21, 2010
    Posts:
    99
    I have photoshop images for character select menu.I draw the image and left 4 empty boxes for Character names and 2 more boxes,one big and one normal.Title and big one showing 3D model of character.Soo I import it in unity.I wrote a script using GUI.DrawTexture and set up the images 800/600.One image is the background sheet and the other images are names and titles.And the result is that I dont see the background image,the sheet.I see just that image containing character name and all the area around that should be transparent is white.Soo I tried to make 2 cameras with different depths but everything is the same.How can I create this : http://desmond.imageshack.us/Himg38...lename=beybreakersallconfigure.jpg&res=medium you see where are the windows.
    The other 2 images : http://desmond.imageshack.us/Himg853/scaled.php?server=853&filename=tysongranger.jpg&res=medium and http://desmond.imageshack.us/Himg31/scaled.php?server=31&filename=background2bn.jpg&res=medium
    Soo anyone,help fast :)
     
  2. eTag96

    eTag96

    Joined:
    Oct 24, 2010
    Posts:
    110
    convert the pictures with the white bg to a *.png format.
     
  3. blackdragonstory

    blackdragonstory

    Joined:
    Nov 21, 2010
    Posts:
    99
    Wow,this actually worked :)
    Thanks
    I posted here cuz before I was using PNG format all the time but once this messed up the colors for 3ds max model texture soo I switched to jpeg.
    Now I just wonder why is this happening,shouldnt the formats work the same....
    Well anyway thank you very much :DD
     
  4. eTag96

    eTag96

    Joined:
    Oct 24, 2010
    Posts:
    110
    You're welcome! I don't know why they don't work the same (besides Unity developers don't use the same methods as Autodesk developers) but you would think there would be a general way to read it (just remember JPEG for 3ds max, and PNG for Unity.) glad to help.
     
unityunity