Home Unity

alpha question about unity

Hi,everyone
I am doing a tree .Want to import to unity3D. But ,The final effect is not satisfied.

see first image ,A tree is translucent.But B Tree is right .(A tree got form 3Dmotive toturail)

See second image .A Tree and B Tree used same Shader by Transparent/Diffuse setting

I do not known why ?
Hope somebody can give me some advices.
Thanks

Replies

  • cupsster
    Offline / Send Message
    cupsster polycounter lvl 11
    if you want to use these shaders make shure they have also faces on their back face. if you don't want to duplicate faces use transparent cutout shader family. you can also go with dedicated tfoliage shader or write one yourself to archive desired result. what you see is all allright on that pictures.
  • gsokol
    Offline / Send Message
    gsokol polycounter lvl 14
    Alpha sorting can be a pain in Unity. There are a few things you can do.

    First of all..is this all one mesh? I tend to split off anything with transparency as its own object. Mixing transparent parts with non transparent parts makes it hard for Unity to properly alpha sort.

    Also..use cutout transparency whenever you can. It doesn't give you gradients/semi transparency..but its easier to sort and generally causes less issues when you can use it.
  • c4cn013
    gsokol wrote: »
    Alpha sorting can be a pain in Unity. There are a few things you can do.

    First of all..is this all one mesh? I tend to split off anything with transparency as its own object. Mixing transparent parts with non transparent parts makes it hard for Unity to properly alpha sort.

    Also..use cutout transparency whenever you can. It doesn't give you gradients/semi transparency..but its easier to sort and generally causes less issues when you can use it.

    All mesh composed of leaves and branches .I combined all leaves as a single mesh,Combine all branches as a single mesh too.

    Cutout transparency have some problems like you said .I don not like it .
Sign In or Register to comment.