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. Dismiss Notice

Blender To Unity: Eye Shading

Discussion in 'Shaders' started by graceofmannequin, Jul 17, 2014.

  1. graceofmannequin

    graceofmannequin

    Joined:
    Mar 23, 2014
    Posts:
    5
    Blender To Unity: Shading Error



    Hey guys, I made a shader with Strupmy Shader Editor in Unity. It works perfectly with 3ds max models and unity'S basic models like sphere. But when i use an eye model from blender, it gives this creepy shading error.

    IN UNITY: http://i.hizliresim.com/rYgVQm.png

    IN BLENDER: http://i.hizliresim.com/72obkY.png

    IN UNITY (a sphere which is made in 3ds Max): http://i.hizliresim.com/Ldp4ao.png

    I didn't understand why, but shader works good with every model except the ones from blender.
     
  2. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    Messed up normals, perhaps?
     
  3. graceofmannequin

    graceofmannequin

    Joined:
    Mar 23, 2014
    Posts:
    5
    Thank for answering :3, but i tried to recalculate normals in blender. Also i made the model over and over again. But still the same. It happens with just blender. Bad thing is I dont want to learn another modeling program like 3ds max. Blender was perfect until this happens.
     
  4. Daniel_Brauer

    Daniel_Brauer

    Unity Technologies

    Joined:
    Aug 11, 2006
    Posts:
    3,355
    One way to check the normals in Unity is to make a shader in Strumpy that simply outputs the normals as RGB values. Then you can see if there are any extreme values or discontinuities that correspond to the strange specular you're seeing.
     
    graceofmannequin likes this.
  5. hadidx

    hadidx

    Joined:
    Aug 28, 2012
    Posts:
    29
    Try to calculate normals in Unity.You can do that in the model's import settings.
    Change the smoothing angle till you get something decent.
    Check if you get problems with Unity's built-in shaders.
     
    graceofmannequin likes this.
  6. graceofmannequin

    graceofmannequin

    Joined:
    Mar 23, 2014
    Posts:
    5
    bros i couldn't deal with this :S .Would you like to check that out for me?

    Here files :
    http://www.mediafire.com/download/plni509pst6zb1c/Eye Blend File.rar
    http://www.mediafire.com/download/3yi1sdf559cff29/Eye Unity Project.rar
     
  7. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    I have blender. once I get some time, I will check the normals on the model myself for such discontinuities

    and does it do it when you rotate the light?
     
    graceofmannequin likes this.
  8. Noisecrime

    Noisecrime

    Joined:
    Apr 7, 2010
    Posts:
    1,998
    graceofmannequin likes this.
  9. graceofmannequin

    graceofmannequin

    Joined:
    Mar 23, 2014
    Posts:
    5
    yes yes exactly, thank you for help :3
     
  10. graceofmannequin

    graceofmannequin

    Joined:
    Mar 23, 2014
    Posts:
    5