• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Gearboy · Feb 07, 2017 at 10:11 AM · terraingrasschunksbigdetails

How Do I Fix My Grass?

Hi im pretty new to unity but I have a decent amount of coding under my belt. Im trying to get a thick lush grass on my map but for some reason I cant seem to make it dense? Im thinking it may be a limiter within unity itself? It also seems to only allow details in certain areas. Like if I put grass in a area it will take away grass from other chunks

My map is 20,000x 20,000 and I cant make a dense grass

on this 50x50 map I tested my method and it worked just fine on it. I've tried messing with terrain options but im just not getting anywhere. Thanks!

alt text

untitled-1.jpg (96.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by tanoshimi · Feb 07, 2017 at 10:23 AM

You've sort of answered your own question in your description: "My map is 20,000x 20,000 and I cant make a dense grass. On this 50x50 map I tested my method and it worked just fine on it". The solution if you want dense grass is to have many smaller terrains rather than one huge one.

Unity's grass system is somewhat arcane and esoteric, but it can be quite powerful when you understand it. Grass on a terrain is generated in "patches", which are stored as a 2d array of values (from 0-17, IIRC, from "least dense" to "most dense"). The size of that array is determined by the "detail resolution" setting, but when applied to a huge terrain size such as 20,000x20,000, the individual patches must be stretched to cover a large area so are individually very large. Because the amount of grass meshes in any given patch is limited (by the "detail density" and "detail resolution per patch" setting), this means that it's impossible to generate dense grass when you have large patches.

To generate smaller patches, use a smaller terrain size, and set your detail density and detail resolution patch high.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Gearboy · Feb 08, 2017 at 08:19 PM 0
Share

Ok thanks for the info. I figured as much since I couldn't boost the detail resolution any higher. Thanks for clarifying that up for me. Is there a simple method of messing with multiple terrains with a brush tool or having them look seamless? Ill look for some options myself.

Thanks guys!

avatar image
1

Answer by AurimasBlazulionis · Feb 07, 2017 at 10:53 AM

You can try to add more grass types, even if they have the same texture. Alternatively, make the detail resolution higher, but it will clear any grass you have already placed.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Detail brush not rendering correctly in game 1 Answer

Terrain Grass Detail Texture Atlas 0 Answers

Problem with Terrain.SampleHeight 0 Answers

Hide Grass Details 1 Answer

Custom Terrain Details Shader,Custom Detail Shader In 2019.2 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges