Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • 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
1
Question by foq1978 · Mar 09, 2010 at 05:12 PM · terraindistancedetail

Terrain Question: Increasing Detail Distance over 250

Inside Terrain Settings, I am trying to increase the Detail Distance over 250, so my grass details will be displayed from a greater distance. How can I do that?

I've tried finding the "Terrain" script to change the code, but couldn't find it.

Any ideas?

Thank you very much.

Comment
Add comment · Show 1
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 Smog · Mar 11, 2016 at 02:58 PM 0
Share

Bump! I'd like a more recent answer to this as well. I'd like to be able to set my terrain detail distance over the max. 250 to really complete my forest-view!

3 Replies

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

Answer by duck · Mar 09, 2010 at 05:24 PM

The variable you need is terrain.detailObjectDistance

(where 'terrain' is a reference to the terrain script on the terrain object). A common way to get this reference is to use Terrain.activeTerrain, or to create a public variable of type Terrain, and drag in a reference to the terrain into that variable slot in the editor.

That variable, and a number of others that you might be interested in (such as treeDistance and treeBillboardDistance) are listed on the Terrain Page in the scripting reference.

Comment
Add comment · Show 3 · 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 Chuckler · Oct 04, 2013 at 05:07 PM 0
Share

It doesnt seem to be working for me at the moment... I am trying to have the detail grass rendered at > 250..! I attached a new script to the Terrain and in the script added

Terrain.activeTerrain.basemapDistance = 5000; Terrain.activeTerrain.detailObjectDistance = 5000;

seems to work however if i set it to a lower setting, like distance 11...nothing shows haha, so i dunno...i thought it might be the camera but im not certain yet... Anything i can do here? hmm

avatar image sandhillceltic · Mar 02, 2014 at 11:37 PM 0
Share

If you want the detail distance to be the same all the time, just update it every frame. It doesn't require that much computer power.

 var distance = 5000;
 
 
 function Update () {
     Terrain.activeTerrain.detailObjectDistance = distance;
 }



BA$$anonymous$$! solved the problem...

[works as of $$anonymous$$arch 2014]

avatar image amia · Oct 20, 2015 at 12:29 PM 0
Share

But my tree distant not activity = 5000

avatar image
1

Answer by David-Lindsay · Oct 15, 2013 at 03:56 AM

This doesn't work anymore. Unity automatically resets the terrain in the next frame immediately after you make a change.

Comment
Add comment · Show 2 · 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 Chuckler · Oct 15, 2013 at 06:21 AM 0
Share

that explains it...thanks! so much Z fighting with the terrain as well

avatar image Mecasapien · Apr 04, 2018 at 05:46 AM 0
Share

Im raging with unity terrain system, I need to set the detail distance to way further than 250, why the editor dont allow us this? it dont have any workaround? I can`t believe it

avatar image
0

Answer by Althizar · Jul 13, 2021 at 03:42 PM

Hello community, I have tried this with the Fixed Update and it seems to keep the detail distance set to what I like it to. Version 2020.3.6.

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.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Terrain building with errors 0 Answers

Culling low grass details on terrain (detail distance issue for not tall details) 0 Answers

Specify detail density and detail distance PER grass texture? 0 Answers

How to use detailed texture? 2 Answers

Cannot see grass terrain unless I zoom in. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges