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

terrain tree billboard shader

Discussion in 'Shaders' started by Demostenes, Oct 2, 2011.

  1. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Anybody tried to modify this shader? It is not usable for any serious game, because it does not count with shadows and because of baked translucency it very often much brighter then mesh version. I spent countless hours of color tuning my scene, to achieve good visuals and these bright billboards are ruining everything.
     
  2. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Update: Problem seems only to be in tree creator shaders, standard billboards are OK.
     
  3. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Nobody tried to finish these obviously unfinished shaders?
     
  4. sinoshva

    sinoshva

    Joined:
    Nov 8, 2011
    Posts:
    5
    I am also having the same problem. These billboards looks bright even if there is no light in the scene. Kindly let me know if you have solved this problem already..
     
  5. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
    Try multiplying the translucency by the ambient blue channel.
     
  6. sinoshva

    sinoshva

    Joined:
    Nov 8, 2011
    Posts:
    5
    I tried changing the translucency color. It is black right now.
     
  7. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Actualy there is no problem to fix it, but this is out of box shader and it should work flawlessly.
     
  8. sinoshva

    sinoshva

    Joined:
    Nov 8, 2011
    Posts:
    5
    Tree billboards are not taking the lighting information until i do " terrain> Refresh Tree and Detail Prototypes" manually.
    ie. If i change light direction or light intensity, only the detailed meshes are getting updated but not billboards. What could be the problem?
     
  9. duke

    duke

    Joined:
    Jan 10, 2007
    Posts:
    763
    Yes I see, but you have the option to change it, which is why you posted in the shaderlab forum and not feedback, right?
     
  10. Demostenes

    Demostenes

    Joined:
    Sep 10, 2010
    Posts:
    1,106
    Yes I can buy car and fix some defect by myself too. But this is no excuse for vendor. And reaction of vendor on such defect is what will tell me, if I will buy there anything again. If they ignore it, or tell me fix it by yourself, you have tools, i will never buy there anything again.
     
  11. online|offworld

    online|offworld

    Joined:
    Nov 17, 2009
    Posts:
    85
    This is obviously a grevious and unforgivable failure to live up to your completely reasonable standards.
    It looks like your only real option is to give up and go and join another game development community.
     
  12. Games-Foundry

    Games-Foundry

    Joined:
    May 19, 2011
    Posts:
    632
    Actually I second that there is a serious flaw in Unity's tree billboard shader that DOES make it unusable for certain games, for example those that have day/night cycles. The billboards don't respond to changes in ambient lighting until the camera is rotated around the Y axis, and only then when the rotation is above a certain threshold. I can only assume that the render to texture trigger that renders out the mesh tree to the billboard for the given angle is only triggered when the angle changes enough to warrant an update. And AFAIK there is no exposed API method to force this update. Needs fixing.
     
  13. sinoshva

    sinoshva

    Joined:
    Nov 8, 2011
    Posts:
    5
    Will it work, if i do " Terrain.Flush " whenever the light properties changes ?
     
  14. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,848
    look for the advanced terrain shaders v2 – they will come very soon to the asset store ;-)

    lars


    $billboards.jpg
     
  15. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,785
    OOOOhhh... o_O....*Waiting
     
  16. larsbertram1

    larsbertram1

    Joined:
    Oct 7, 2008
    Posts:
    6,848
  17. JoRouss

    JoRouss

    Joined:
    Apr 1, 2014
    Posts:
    53
    This bug is still there, IDK how to fix it :(

    The color of the billboard won't update until I move the camera (In a day/night cycle)
     
  18. navi2121

    navi2121

    Joined:
    Sep 17, 2015
    Posts:
    10
    ptf, problem still here...
     
  19. TheAnigman

    TheAnigman

    Joined:
    Apr 16, 2015
    Posts:
    2
  20. TheAnigman

    TheAnigman

    Joined:
    Apr 16, 2015
    Posts:
    2
    unfortunately that just didnt work - crashed unity