Unity3D Tips - Terrains - 5. Terrain Grass

Sdílet
Vložit
  • čas přidán 10. 09. 2024
  • A quick guide to adding grass to your terrain. We'll go over how to paint in grass, what the various settings do and how to get started adding them in.
    We cover the difference between grass textures vs meshes and how to reduce drawcalls by batching patches together.
    In the video I'm using a hand crafted terrain and terrain ground textures and grass texture/models from Synty's Polygon Nature. Grab that from the asset store here: assetstore.uni...
    Leave a comment below and let me know what you think and any content you'd love to see in future videos.
    Grab yourself some amazing assets from the Unity asset store to kickstart your project: assetstore.uni...
    Please like and subscribe if you'd like to see more, and you can find me on Patreon here: / gamedevbits
    *Links to the asset store on this channel may contain affiliate tags. These will not cost you anything but may assist GameDevBits.

Komentáře • 27

  • @decayedgamesstudio
    @decayedgamesstudio Před 3 měsíci

    Thank you for the amazing video!

  • @odinniereece4096
    @odinniereece4096 Před rokem +3

    Finally found what Ive been looking for... Amazing video but Im curious.. Is the terrain displaced with a height map??

    • @GameDevBits
      @GameDevBits  Před rokem +1

      Yep sure is. The default terrain in pretty much all game engines is a heightmapped surface with variable density based on distance.

  • @minordistractions
    @minordistractions Před 2 lety +1

    Awesome series, thanks!

    • @GameDevBits
      @GameDevBits  Před 2 lety

      Glad you're enjoying it. Thanks so much.

  • @Nebular_editz
    @Nebular_editz Před rokem +1

    what about if you dont have any grass things pls answer ;)

    • @GameDevBits
      @GameDevBits  Před rokem

      Jump into your photo editor of choice and make a little black and white transparent plane to use!

  • @drazen.antunovic
    @drazen.antunovic Před rokem +1

    Can you tell me how to increase grass view distance 5:13

    • @GameDevBits
      @GameDevBits  Před rokem

      If you select your terrain and go to the settings (gear icon) scroll down to the section "Tree & Detail Objects" and adjust the value for "Detail Distance".

    • @drazen.antunovic
      @drazen.antunovic Před rokem

      @@GameDevBits well it still doesn't allow me to go beyond certain limit, anyway I added some fog and called it a day

  • @physicstech8057
    @physicstech8057 Před rokem +1

    why adding grass causing unity to crash or slow down?

    • @GameDevBits
      @GameDevBits  Před rokem +1

      The terrain details need to be pushed to the GPU and rendered. So if you're adding more detail density than your PC can handle it can cause slowdowns

    • @physicstech8057
      @physicstech8057 Před rokem

      @@GameDevBits Thank you sir

  • @skomakarna2684
    @skomakarna2684 Před 7 měsíci

    I cant place detail mesh :( it dosnt appear but it get laggy as i paint so i guess something is added

    • @GameDevBits
      @GameDevBits  Před 6 měsíci

      It's possible you're too far away. Your terrain detail distance limits how far away you can see the terrain details. Try decreasing your brush opacity and zooming in a little closer.

  • @bluecrystalstudio402
    @bluecrystalstudio402 Před 2 lety +1

    Amazing

  • @ZombeeStar
    @ZombeeStar Před rokem +1

    my grass is mesh is sideways :C

  • @Hasnat1
    @Hasnat1 Před 2 lety

    My grass just looks so worse I can't tell. Any fix.

    • @Hasnat1
      @Hasnat1 Před 2 lety

      Like pixelated blurred and that grass shift.

  • @bioburden
    @bioburden Před 2 lety

    Great vid, thanks.

  • @spacekusa
    @spacekusa Před rokem

    how do you paint grass on custom mesh??

    • @GameDevBits
      @GameDevBits  Před rokem +1

      If you're using a mesh and not the built in terrain you'll need to use another tool to "scatter" things like grass. Polybrush is a free preview package from Unity that supports things like that: unity.com/features/polybrush

  • @javi-tc9rt
    @javi-tc9rt Před 6 měsíci

    add grass texture option is grayed out and I can't click it, anyone knows why? is it outdated or something?

    • @GameDevBits
      @GameDevBits  Před 6 měsíci

      Sounds like you're using HDRP? If so, I don't think it supports texture based grass on terrains.

    • @javi-tc9rt
      @javi-tc9rt Před 6 měsíci +1

      @@GameDevBits yeah, I noticed a few minutes ago it is becouse of HDRP, I will have to look for other alternatives then, thx for answering