Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Desperately looking for white outline solution

Discussion in 'General Graphics' started by oglepole, Mar 23, 2015.

  1. oglepole

    oglepole

    Joined:
    Jan 25, 2014
    Posts:
    17
    Hello fellow unity developers.

    For the past week I have been searching all over attempting to solve an issue with my billboards displaying a white outline using unity terrain system when its night in my game. I did my research and looked up possible reasons and at first I thought it was because of textures. After learning how to build an alpha channel and making sure it was properly applied - i still see this dreaded problem.

    Now the only other thing I can assume is that its the shader that gets used. (Tree Creator Bark Optomized and Tree Creator Leaf Optomized) or maybe I am importing the textures that get used incorrectly. I tried using the BillboardTree shader I found on the wiki, but it didnt fix anything either. I have to assume this problem has happened for a lot of people - and been solved - I just cant seem to find a valid answer for me! Needless to say after spending a week on such a small trivial thing I am feeling VERY beaten down =(.

    At this point I am looking for any direction or solution to this issue. As I cant even find a shader/solution on the unity asset store for this - I am feeling pretty desperate. Can anyone who has ever seen/dealt with this give me an idea of at least where to start looking next if I am confident that my textures are correct? I tried using the the demo SpeedTree's and those dont show the problem - so I know I must be missing something!

    Any help would be so greatly appreciated. Thanks.
     
  2. Steven

    Steven

    Joined:
    Dec 23, 2009
    Posts:
    43
    Might still be a texture thing. What is the background colour of your billboard images? Is it still white? If the alpha mask is slightly wrong it can still show the edges, and when the texture gets mipmapped down the background colour can still bleed into view.

    IF this is the case, change the background colour to something in the same colour range.

    Grab a screenshot of the error if this doesn't help.
     
  3. oglepole

    oglepole

    Joined:
    Jan 25, 2014
    Posts:
    17
    Steve, thanks so much for the reply! Hopefully its the texture and I am just being ignorant! I have attached two screenshots of the billboard image I am using. The first one is the main background image, the second is my alpha channel (that I hopefully have done right). When you say what is the color of the billboard image - are you refering to the area I filled in using the photoshop plugin Flaming Pear?
     

    Attached Files:

  4. Steven

    Steven

    Joined:
    Dec 23, 2009
    Posts:
    43
    Hey Oglepole. The leaf texture alpha mask looks fine. The bark however should be solid white, but that isn't where you are having the trouble is it. I hate to ask for more, but a screenshot of the effect in engine might help.