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 ODPaterson · Dec 06, 2010 at 07:09 PM · terraintreecustompainting

Custom tree terrain painting problem.

I'm trying make my own tree models and use the terrain painting tools to place them multiples times, however there's a problem stopping me.

My tree model is made up of 2 meshes: 1 for the trunk and branches and another for the foliage. The problem is that the tree painting tool only accepts single meshes which means I can only paint either foliage or trunk/branches not the whole tree.

I checked the unity documentation on this here

and it says the tree must be made of a single mesh with 2 materials (presumably for the leaves and bark) but I can't see any way of assigning more than one material per mesh.

Any help would be great :)

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
1

Answer by Mike 3 · Dec 06, 2010 at 07:18 PM

In the renderer component, you can expand the Materials bit and near the top it'll have a textbox where you can set the number of materials. You then drag the second material into the second slot

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 ODPaterson · Dec 06, 2010 at 08:23 PM 0
Share

Hmm, still a problem. The bark and leaf materials are both applied to all areas of the mesh rather than to their respective places, so I've got both bark and leaves on my trunk and on my foliage :(

avatar image Mike 3 · Dec 06, 2010 at 08:58 PM 0
Share

Does the mesh have two uv sets at the right points for each material?

avatar image ODPaterson · Dec 06, 2010 at 09:15 PM 0
Share

Ah, I don't know about UV sets so I probably don't have it set up right. How would I go about doing this?

avatar image Mike 3 · Dec 08, 2010 at 06:40 PM 0
Share

Not something I can really help with sorry - $$anonymous$$odeling packages are beyond my expertise. I'd check for uv tutorials for whatever tool you're using

avatar image
0

Answer by MohdGasim · Feb 09, 2011 at 09:01 PM

HI OD...depending on the 3d application you are using, in my answer im refering to 3d max. pick the first mesh, convert to edit poly (if not already done) then scroll down and select attach, then select the second mesh. this will make the tree into one mesh. For the materials, goto the poly in the modify panel, select element. Assign a material ID to the trunk and a second to the leaves. Next...goto material editor and select Multi/sub material...number of materials 2...assign the number 1 to the trunk material and the number 2 to the leave material...this way you get a single mesh with 2 textures. export to FBX format and your done...a single mesh tree....

Hope this helped.

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 ItsaMeTuni · Nov 19, 2015 at 12:28 PM

Did you do the trees with blender? If you have two objects in blender (leaves and trunk), in object mode select the leaves then the trunk (I don't know if the order makes difference) and press Ctrl + J.

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

1 Person is following this question.

avatar image

Related Questions

Painting custom tree problem 1 Answer

Wind zones on custom vegetation without Terrain 0 Answers

Terrain painting using fbx model 0 Answers

Cannot place trees on terrain 0 Answers

Placing Custom Trees with Unity Terrain only Places the Bottom Part of the 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