Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Aug 29, 2015 at 12:33 AM by getyour411.
avatar image
1
Question by Romejanic · May 17, 2015 at 07:42 PM · terrainrenderingdistancetrees

Increase tree draw distance

I am working with a really big terrain (8000x2100x8000), and I am using a lot of trees. Because I am using trees on top of mountains to make them look more realistic, I want the trees to render across the whole terrain. However, the terrain's tree render distance limit is 2000. This makes the cut for default terrains, but mine is a lot bigger, and I need it to render much further. Just to be clear, I am not asking about the billboard distance. I want billboard trees which are covered by fog. I want to extend the actual distance the billboard trees render, beyond the 2000 limit enforced by Unity's terrain.

Any help would be greatly appreciated. - Romejanic

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 getyour411 · Aug 29, 2015 at 12:33 AM 0
Share

Please search first next time, many questions on this topic have been asked.

1 Reply

  • Sort: 
avatar image
4
Best Answer

Answer by b1gry4n · Oct 07, 2016 at 10:04 AM

Well, I couldnt find anyone else asking a similar question after searching so I think this question was closed prematurely. I found the solution so I will post it here for anyone else who stumbles on this (its one of the first that pop up on google).

Tree billboards have a limit in the editor of 2000, but that doesnt mean you cant make them appear as far as you want. Keep in mind, NOTHING will appear if your camera "far" clipping plane isnt high enough.

As for the answer... its as simple as creating a new script to override the settings. Just because you can only drag the value to 2000 doesnt mean the value cannot be higher.

     public float distance;
     public Terrain terrain;
     void Start () {
         terrain.treeDistance = distance;
     }
Comment
Add comment · Show 4 · 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 Romejanic · Oct 16, 2016 at 02:22 AM 0
Share

Thank you!

avatar image seyfnzkkol · Dec 02, 2017 at 03:21 PM 0
Share

Thank you :)

avatar image $$anonymous$$ · Oct 26, 2018 at 07:52 PM 0
Share

What s wrong with my script ?

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 
 
 public class treedistance3 : $$anonymous$$onoBehaviour {
     
     public float distance;
      public Terrain terrain;
      void Start () {
          terrain.treeDistance = distance;
      }
 }
 

Assets/0_Scripts/treedistance.cs(1,7): error CS1525: Unexpected symbol float', expecting class', delegate', enum', interface', partial', or `struct'

avatar image jmarcos007 · Jul 23, 2019 at 01:30 AM 0
Share

Works for me! Nice :)

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

renderning quality on far away objects 2 Answers

Tree rendering distance 1 Answer

Cannot see grass terrain unless I zoom in. 1 Answer

LWRP Trees Billboard not working as expected 0 Answers

Terrain distance rendering 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