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
0
Question by Tasarran · Dec 07, 2011 at 02:41 AM · treetree creator

Making each tree unique?

I am using the Tree Creator to make trees, with great success. (In the creation)

I want to use them individually, I am not trying to integrate them with the terrain system.

The Prefab that is created isn't quite like other Prefabs... If you spawn a copy of the prefab, then change the Seed on the tree (to make it another randomized version of the settings) it changes the Seed value in not only the active tree, but any other trees that are copies, and also on the tree Prefab.

Is this related to the ID of the tree? If I want to have multiple procedural versions of the same tree, do I have to create them ahead of time in the editor?

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

3 Replies

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

Answer by Justin Warner · Dec 07, 2011 at 03:24 AM

Try making the seed, putting it in its own prefab, then use that prefab as a separate game object as any other. So if you want 10 different types of trees, you'd have 10 different prefabs, each holding a separate tree.

Does that make sense? Lol.

Basically, if you put multiple prefabs out in a field, then you change the root prefab, well, all the children of that prefab are going to change too because they want to be like the root. So if you make different prefabs, it'll be the same way... Lol.

Maybe this won't work though, and if not, sorry =P.

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 Tasarran · Dec 07, 2011 at 04:29 AM 0
Share

Not ideal, but O$$anonymous$$ if I can't control it directly.

Any other ideas, anyone?

avatar image Justin Warner · Dec 07, 2011 at 02:17 PM 1
Share

In all honesty, if you have 10 prefabs, and put a script that randomly rotates them and scales them slightly, no one is going to notice similiarities... Bad example, but CoD2 had about 5 trees per-a-terrain type... So 5 snow, 5 bush, 5 dessert, etc. But that's just my opinion =).

avatar image Tasarran · Dec 07, 2011 at 03:23 PM 0
Share

I'd really love to find a way to make each one unique, some way to script uniqueness on the fly, but if nobody else comes up with an idea, I'll flag you as the answerer... ;)

avatar image
0

Answer by P_Hansson · Jul 04, 2012 at 06:09 PM

Seems to be linked in order to prevent the generation of an excessive number of models. Would be cool with individual trees, but as long as you have a couple players won't notice.

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
avatar image
0

Answer by michidk · Sep 23, 2016 at 09:09 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 · 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 tanoshimi · Sep 24, 2016 at 06:33 AM 0
Share

Does this work for procedural generation of unique trees at runtime?

avatar image michidk tanoshimi · Sep 24, 2016 at 11:31 AM 0
Share

No, its just a hack to automate the process of randomize the seed from tree assets. You also could do it by hand, buts it takes ages to do it with a lot of trees. And no, since it works with tree assets (that must be saved in the project) it can't be used at runtime.

But I guess it would be possible to use the code that modifies the seed, to change the seed of instantiated trees in the scene.

avatar image tanoshimi michidk · Sep 24, 2016 at 12:55 PM 0
Share

"I guess it would be possible to use the code that modifies the seed, to change the seed of instantiated trees in the scene" - yeah, I've always guessed that too. Never been able to make it happen though! Never $$anonymous$$d...

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Tree creator , palm trees 0 Answers

Tree Creator Problems 1 Answer

Accessing Unity tree creator through C# 0 Answers

Tree Creator throws NRE over trying to move the root node of branches, stuck in their positions. 1 Answer

LWRP and Trees 0 Answers


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