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 grass.

Discussion in 'General Graphics' started by tr1te, Apr 7, 2015.

  1. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    The terrain grass is changing colour in run time. How can i remove this?
     
  2. topofsteel

    topofsteel

    Joined:
    Dec 2, 2011
    Posts:
    999
    Plant a different kind of grass... kidding. It's probably not the grass itself. It could be a colored light, camera effect, possibly a color multiplier in the shader, but you would see that in the editor. Or even one of the other shader inputs.

    It would be helpful if you posted a screenshot at the very least when asking graphical questions. Even better would be a little information about this 'grass'. It could be freggin anything.
     
  3. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    No, i mean not the difference between editor look and run time look. I mean, that the buildin grass shader in unity terrain changes colour, or maybe, tint of grass over time in run time.
    I think it depends on terrain parameter "Grass Tint". But i tried a different colours of this and it, definitely, changes colour over time.
    Screen:

     
  4. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    There's Healthy Color and Dry Color for each grass texture, and then the overall Grass Tint.

    Have you tried making all three of these pure white to see if that fixes it?
     
  5. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    I've tried. But it did not help.
     
  6. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    Have you tried disabling your wind zone and set all wind settings for the terrain to 0?
     
  7. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    Nice.Thank you. It stopped to change colour. It depends on the Terrain param "Speed". I set bending to 0 and speed to 1. The grass didnt move, but it continues to change colour. I cant use grass without wind. Any idea how to fix this?
     
  8. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    Well if you are up to it, jump into the terrain shaders and see if you can find where the wind is affecting the grass color.
     
  9. tr1te

    tr1te

    Joined:
    Sep 5, 2012
    Posts:
    38
    Did not want to do that. But... I must.
     
    theANMATOR2b likes this.
  10. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    Isn't that the quote of the century for doing anything with game development? HAHA!

    If it wasn't, your grandma would be making games ;)
     
    theANMATOR2b likes this.
  11. danzhor

    danzhor

    Joined:
    Sep 7, 2013
    Posts:
    8
    I know this is old thread, but I will post anyway, just in case someone finds it and wants to know how to resolve it (as I was trying to do:)).

    So to remove the changing color of grass but still have the wind on you have to setup Grass Tint in the Terrain setting (Wind Settings for Grass) to gray color (r=128,g=128,b=128). Seems like when it is set up in the middle, it won't change the grass color when the game is running.
     
    DarkDeivel likes this.
  12. dynamicvoltagegames

    dynamicvoltagegames

    Joined:
    Apr 15, 2019
    Posts:
    20
    Changing the tint only works if you completely turn off the wind on the grass as well. It's ridiculous that this exists. Who wants grass that doesnt match the texture below it?
     
    Davidjsap and M_R_M like this.
  13. Davidjsap

    Davidjsap

    Joined:
    Aug 17, 2017
    Posts:
    11
    Following up on this. Can anyone at @Unity comment on this? Why are we forced to have the grass change color with the wind? There should be a simple toggle to remove the color tint completely. Right now, setting the alpha to zero or the color to anything still forces your grass to change color.
     
    ivank likes this.
  14. Smileys

    Smileys

    Joined:
    Feb 27, 2014
    Posts:
    81
    Bump - same problem. At first i thought that this must be a bad joke. Why is this in the shader to begin with ?