Jump to content

Terrain Detail


Ugur Tuna
Go to solution Solved by Peter,

Recommended Posts

Hi, when I add some bush or grass prefabs as a terrain detail navmesh still considers them as obstacles; how can I set them as non navmesh area objects like grass textures?

Edited by Ugur Tuna
Link to comment
Share on other sites

  • Ugur Tuna changed the title to Terrain Detail
  • Solution

Hi, are you sure it is terrain details that you are using? As far as I know terrain details should be ignored for nav meshes normally. If it is terrain trees, then unity will use the LOD level you have selected in the terrain tree prototype for navmesh baking. Depending on how the plant looks this can give good or bad results. We have the issue with the synty fantasy kingdom pack where we add grasses and bushes as terrain trees as well. You can fix this by adding an empty LOD level in the prefab:

unknown.png

....and then say in the LOD level selection for the tree that should be used for the Navmesh baking that you want to use that empty level.....

unknown.png

Result is then that this empty LOD level is used for the navmesh baking and this "tree" will not be used in the navmesh baking anymore:

unknown.png

Link to comment
Share on other sites

 Detail.thumb.png.18ad2512e49853187ac1629e27b9ee79.png 

Yes I am sure that I selected bushes and flowers as terrain details. I checked all of them again. 

 

Size.png.25d0cbded66561bf23a1a5867c02c4e9.png 

I couldn't find any size property as you shown. I am not sure that is what you suggested but I added that blue coloured lod , spawned all again, baked navmesh again and still the same problem. @Peter

Navmesh.png.6c1f9e1e923c8746280af3f798575a88.png

Link to comment
Share on other sites

I think there is something mysterious going on: 
- In our original Biome spawners for the Alpine Meadow Biome, those bushes are spawned as terrain trees, not as terrain details
- Those bushes have multiple LOD levels, which mean they should not be rendered as terrain details to begin with (the unity terrain detail system does not support LOD levels)

You can of course change the resource type in the spawner to spawn terrain details instead, but I think that would not work with those assets since they are using LODs.

Could it maybe be that you switched the bushes to be spawned as terrain details in the spawner settings and spawn them, but what you are actually seeing in the scene view is the bushes of the original spawn? Could you please check if you have these bushes as prototypes in the terrain tree tab, and if you can remove those from the terrain when shift+clicking with the brush of the terrain inspector?
image.png

Link to comment
Share on other sites

@Peter Yes I edited - changed them as terrain details but; how can I change a lod level for a tree because I couldn't do it. Can I also prevent trees's leafs to be consider as navmesh obstacles?

Edited by Ugur Tuna
Link to comment
Share on other sites

21 hours ago, Ugur Tuna said:

but; how can I change a lod level for a tree because I couldn't do it.

Do you mean selecting which LOD level the tree should use when the navmesh is baked? You can select this the following way:

1. Select the terrain in the scene hierarchy.
2. Select the Tree tab in the terrain inspector
3. Click on the tree you want to edit
4. Click the button where it says "Edit Trees" and select "Edit Tree..."
5. That brings up the window where you can select the LOD level for navmesh baking
6. Click Apply to apply the changes
image.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...