Search Unity

Trees on terrain become black in the player with Oculus

Discussion in 'General Graphics' started by Alan-Liu, Mar 7, 2016.

  1. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    Trees on terrain become black in the player with Oculus DK2. It works correctly in the editor with or without Oculus and in the player without Oculus. The same trees placed manually in the scene(not using terrain tool to brush) also work correctly. These trees are created by Tree Creator. I test the trees created by SpeedTree, they work correctly. Using RenderDoc, I found the trees with wrong color, used grey textures when renderred to g-buffer, which should be white and green in my project.

    Unity Versions can reproduce this problem: 5.3.1f1, 5.3.3f1, 5.4.0b8
    Environment: Windows 7, Oculus DK2 with 0.8 runtime.
     

    Attached Files:

    Last edited: Mar 16, 2016
  2. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    Nobody has the same problem?
     
  3. rossTnick

    rossTnick

    Joined:
    Jul 16, 2012
    Posts:
    3
  4. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    5.3.4p1 also has this issue.
     
  5. benswing

    benswing

    Joined:
    Dec 17, 2015
    Posts:
    6
    I am having the same issues since upgrading to 5.3.4p1, and it is still present in verion 5.4.0b15.

    Anybody found a solution/workaround?
     
  6. kstafferton

    kstafferton

    Joined:
    Jan 13, 2015
    Posts:
    5
    plyrek likes this.
  7. plyrek

    plyrek

    Joined:
    Mar 2, 2015
    Posts:
    15
    The bug report says this is fixed but it is still happening with beta 5.4.20b any solution I can do to fix this?
     
  8. plyrek

    plyrek

    Joined:
    Mar 2, 2015
    Posts:
    15
    Hello Allen,

    I am hoping you can help me. I am also having the black tree issue and I am wondering if you ever found a solution for it?

    Any info or suggestions would be greatly appreciated.

    Thank you in advance for your help.

    Paul Lyrek
     
  9. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    I don't have any solution, just switch to use speedtree.
     
  10. Alan-Liu

    Alan-Liu

    Joined:
    Jan 23, 2014
    Posts:
    391
    In 5.4 b22 release notes:
    But I haven't tried it.
     
  11. plyrek

    plyrek

    Joined:
    Mar 2, 2015
    Posts:
    15
    Thank you Alan,
    I will have to download and try it but I was able to get my trees to work in 5.4b21. On a whim I moved my terrain to the top of my hierarchy and low and behold they rendered correctly every build!
     
    palaxe likes this.
  12. palaxe

    palaxe

    Joined:
    Dec 31, 2013
    Posts:
    22
    Thanks did the trick for me as well. :)