Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to create performant realistic grass in Unity 2022.16

Discussion in 'General Discussion' started by stephenq80, Oct 4, 2022.

  1. stephenq80

    stephenq80

    Joined:
    Jun 20, 2018
    Posts:
    34
    Hello and thanks for reading my post. I was wondering if there are any Unity 2022 users out there that could give me some advice on creating realistic grass? I have tried several asset packs from the asset store and they all create what looks like "patches" of grass. What I'm looking for is the kind of blades of grass that you would see on someone's lawn for example. I'm also using Vegetation Studio Pro and Nature Renderer, so any asset/system that works well with them would be great. Thanks for any advice.
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,084
    Why do you need to render each individual blade of grass on a lawn?
     
  3. BIGTIMEMASTER

    BIGTIMEMASTER

    Joined:
    Jun 1, 2017
    Posts:
    5,181
    instead of a card that has many grasses you just use a card that has one grass. Using instancing that you get from vegetation studio you can have millions without a problem. Only need a black/white map for the alpha, or you can probably just use a few more triangles to make a basic grass shape and then not need any textures at all, just apply a basic gradient color in material.

    match color closely with terrain texture and then you can cull grass somewhere between 10-50m and it wont be too visible. Obviously dont cast shadows with the grass.
     
  4. algio_

    algio_

    Joined:
    Jul 18, 2019
    Posts:
    87
    How much realistic? :)
    There are many ways to make grass, from the simplest to the advanced (with simulated wind, object collision and features you may not need), for a comparison of base techniques you can have a look to this video and repo.