x


Unit3d Editor terrain grass detail view distance

Hello,

I hope you can help me. Im currently paintin grass details, but its very hard because the view distance of the scene camera is very low. How can I increase the view range of the scene camera?

Thank you very much

Edit: Ive just found the "Detail Distance" in terrain settings but maximum is 250, Is it possible to get a higher value?

more ▼

asked Jun 05 '10 at 09:50 AM

Tobias gravatar image

Tobias
363 50 53 66

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

1 answer: sort voted first

Sorry to report, it doesn't seem possible at all.

There is actually a scripting feature to set this value in code - I just tried this simple script placed on my terrain:

@script ExecuteInEditMode()
function Update () {
    GetComponent(Terrain).detailObjectDistance = 2000;
}

but it seems that there's some kind of hard-limit which means that even if you set it to a higher value in code, you still don't see them beyond that distance of 250.

On closer inspection, I think this is actually a bug in unity, linked to the way that it seems to make grass disappear in a "perlin noise"-like pattern when the distance is set to 250, but that disappearance-pattern doesn't seem to scale in conjunction with the distance value. I.e. if you set it lower than 250, you begin to get a hard-edge cut-off, rather than the disappearance-pattern moving with your new limit.

Since it doesn't come in closer when you reduce the distance, I'm guessing this pattern also doesn't move out further when you increase the distance, so even though you set the distance value higher, this fixed-distance "pattern" means they remain invisible beyond a set distance.

This seems like a small bug in Unity, so I just bug-reported it! :)

more ▼

answered Jun 05 '10 at 11:10 AM

duck gravatar image

duck ♦♦
40.9k 92 148 415

Merci ;)

So I have to wait until Unity 3.0 or higher comes out.

Thank you very much

Jun 05 '10 at 01:32 PM Tobias

I think this limit is by design to keep from totally bogging the machine down -- imagine the exponential area and number of detail instances that have to be rendered as the distance is increased.

This is annoying, but usually if you're painting on details, you want to do it at a close range.

If you want to mass-place details, check out Tom's Terrain Tools that let you import a detail and tree map like a splat map.

Oct 20 '10 at 08:18 PM DocSWAB
(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:

x2978
x1463
x109
x84
x57

asked: Jun 05 '10 at 09:50 AM

Seen: 4453 times

Last Updated: Jun 05 '10 at 11:11 AM