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 /
avatar image
1
Question by slay_mithos · Feb 11, 2015 at 10:10 AM · tree-painting

Randomize trees for terrain painting

Hello,

I created a few basic trees to put on my terrain, but the default tree painting tool only places a single kind of tree each time, with no randomness possible.

I tried to create 4 of each tree types, to prevent the unnatural feel given by all trees being the same, but the tool can only select one at a time for painting.

I thought that I might have missed something, like a way to randomize the "seed" for the trunk and branches, or other things like that, but google doesn't seem to net me any answer.

Am I stuck with either scripting the trees, or manually placing them?

If that's the case, it's going to take quite a lot of time to make a decent forest, but at least I'll know it's the only way to go about it without getting the same tree everywhere.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by bartm4n · Feb 11, 2015 at 05:26 PM

Have you looked at the built in option to mass place trees, just below where you define the tree objects for the terrain? This will give the trees random orientation and color variation as well as use all of your defined trees.

The only thing that could be better about this is if you could specify upper/lower heights for trees to be placed. I have seen some custom editor scripts floating around to do just that, but with the built in functionality you will have to manually clean up the areas that you don't want trees to be placed.

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 slay_mithos · Feb 12, 2015 at 05:19 AM 0
Share

It's not bad per say, but it uses the whole terrain, and what I wanted was to make a land with multiple types of forests, depending on climate and elevation.

For a single type of forest, the tool is great though, and as I didn't put that precision, it would have been an answer.

avatar image bartm4n · Feb 12, 2015 at 06:04 AM 0
Share

In that case, it sounds like you are looking for something like the Geometry Brush editor script that allows you to paint different game objects on to the terrain. A version of this tool is provided for free by larsbertram1, author of Advanced Foliage Shader. It is available at https://dl.dropboxusercontent.com/u/2322017/GeometryBrushAFS.v1.unitypackage

The downside to this is that the objects will be individual game objects and not benefit from the optimization that terrain-managed trees provide (billboarding, for example).

I did come across an old forum thread recently that discussed in depth writing a replacement for management of terrain trees. I am sorry, but I don't have a link available for you.

Best of luck to you in finding a solution that fits your needs.

avatar image slay_mithos · Feb 12, 2015 at 06:57 AM 0
Share

Thanks a lot, that's a good basis to start, and I can always try my hands at coding for a tool I need.

Thanks for your time, it is really appreciated.

avatar image
0

Answer by michidk · Sep 23, 2016 at 09:08 PM

We made a editor plugin, which creates new randomized versions of a tree. Input: A tree you made with the Unity tree system. Output: Any number (you can set it) of trees.

Get it here: https://www.assetstore.unity3d.com/#!/content/59228

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

21 People are following this question.

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

Related Questions

Terrain tree painter doesn't work with mesh collider 2 Answers

Terrain Tree Height not working on Unity 5.3.4f1 0 Answers

Shadows popping in/out during runtime 0 Answers

Can I use the mass-tree place tool to place something like a rock? 3 Answers

Tree Brush not placing trees correctly 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