x


Optimizing vegetation.

Hi, I'm currently working on a scene that has a lot of grass in it - I used the terrain tool in Unity, and painted the grass on to it, nothing fancy. However, it raised my draw calls to more than twice the amount it was before.

Looking at the island demo from Unity, they have roughly the same amount of different plants as me, but their vegetation is actually much more dense, and with roughly the same detail settings. And yet, their vegetation amounts to 300 draw calls or so, while mine hits close to 1000...

I've scoured the internet trying to find out the reason, but I have not been able to find a single article or thread that deals with this problem. Am I missing something essential here?

As far as I can tell, my settings for both the terrain and the vegetation are low to moderate. Because of a technical issue, I have more than one terrain in the scene and someone suggested that might be the cause, but removing the second terrain didn't improve the situation at all.

Any help?

more ▼

asked May 03 '10 at 12:57 PM

simoniversensblog gravatar image

simoniversensblog
36 2 2 3

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

You can adjust the setting to swap out terrain details at closer distances so things like trees and grass get less detailed and trees become billboards etc.

http://unity3d.com/support/documentation/Components/terrain-OtherSettings.html

more ▼

answered May 03 '10 at 02:51 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

(comments are locked)
10|3000 characters needed characters left

I got an answer on this directly from a unity dev; the parameter to fiddle with is the UNDOCUMENTED 'detail resolution per patch', which appears to be 'how many bits of grass to batch into a single draw call'. The default is 8. Crank it to as high as you can, see if that helps.

more ▼

answered Jan 18 at 01:32 PM

djarcas gravatar image

djarcas
1 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1520
x114
x110
x45
x8

asked: May 03 '10 at 12:57 PM

Seen: 1803 times

Last Updated: Jan 18 at 01:32 PM