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

Pink Objects moving from 5.3.4 to 5.4 beta 10

Discussion in '5.4 Beta' started by batate, Mar 17, 2016.

  1. batate

    batate

    Joined:
    Mar 4, 2015
    Posts:
    31
    I have been testing some of my projects in 5.4.0b10 to look for any issues.. and most things are coming over fine... but I notice that one avatar/character model was completely pink... and it looks like its shaders all did not come over to 5.4.0b10 from the last 5.3.4f1.

    The Unity Japan "Unity-Chan" character model for example, even taken fresh from the asset store and imported does not work... all its textures are pink... using the provided shaders... see this image...

    Unity-Chan-in-Unity-5.4-Beta.jpg

    I was able to partially fix this by changing to legacy shaders for Transparent -> Cutout -> Diffuse which seem to be indicated as fallbacks in the code for the shaders that are failing. That is not ideal, as some of the items have dual sided shaders, so some parts are not quite textured correctly.

    But I wonder if this is a systematic issue that can be resolved in a future 5.4 beta versions, especially as the Unity Chan Asset is one from Unity (Japan) itself?

    https://www.assetstore.unity3d.com/en/#!/content/18705
     
    Last edited: Mar 17, 2016
    MrEsquire likes this.
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,026
    I'm guessing it's more like something changed and that shader isn't compiling any more.

    What are the error messages saying?
     
  3. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,026
    I found it.

    The shaders it uses are including a bunch of cg files. Those should be cginc files. (I guess being able to include files that are not cginc is deprecated behaviour now).

    So change the extension of CharaMain CharaOutline and CharaSkin from .cg to .cginc then go through the actual shaders and wherever you see

    #include "CharaOutline.cg"
    (or any of the other three files I mentioned)

    change it to
    #include "CharaOutline.cginc"
     
    MrEsquire and batate like this.
  4. batate

    batate

    Joined:
    Mar 4, 2015
    Posts:
    31
    Thanks for that @AcidArrow ... Unity Chan folks in Japan confirmed on Twitter they are looking at it to update the Unity Asset Store versions. The issue is in all their character .unitypackage variants.
     
    Last edited: Mar 17, 2016
  5. NobuyukiKobayashi

    NobuyukiKobayashi

    Unity Technologies

    Joined:
    Jan 31, 2013
    Posts:
    1
    Hi All,
    Thank you for your information.
    I made the Unity-Chan Shader Patch for this trouble.
    I've attached it this massage, and use it if you like.
    --------
    Unity-Chan Shader Ver. 1.2.3 (patch)
    2016/03/18 Unity Technologies Japan

    For:Unity 5.3.4 - Unity5.4.0 beta10 or later

    It has improved if you use Unity-Chan Shader on Unity 5.4.0 beta or later.
    Please overwrite Unity-Chan Shader by this package.
     

    Attached Files:

    batate likes this.
  6. batate

    batate

    Joined:
    Mar 4, 2015
    Posts:
    31
    Thanks @AcidArrow and @NobuKobayashi - that fixes the normal Unity-Chan as well as the Halloween, SD and Rock Star variants too.