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 ChubbyBump · Jul 28, 2013 at 01:54 PM · terrainbrush

Best way to paint gameobjects on a terrain?

So, I've made quite a few prefabs of trees and vegetation for my game and now its time to actually place them on the terrain in large quantities. The prefabs I've made aren't anything like the unity trees and vegetation, so I've been unable to use the default terrain tree paintbrush with them. My question is, what would be the best way to place these custom gameObjects on the terrain so that they line up to the ground and can be painted on easily. What would be the most efficient way to solve this problem?

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 GoldGamerGod · Jul 29, 2013 at 05:22 AM

If you mean what I think you mean,you want Detail painting. First thing first,if you modeled the asset yourself,make sure the Y axis is up,since Unity follows Y as up. Then drag your mesh onto the scene and texture it. Then just create a prefab of what you want in assets and drag the mesh/object you have on scene onto the prefab. Next click terrain,go to Detail Objects,and select the prefab. Adjust the settings to your liking,same with how much you place,the brush,etc... Then click on the terrain to paint that object!

PS - I've not yet sure how to use physics on a detail object,but i'm pretty sure all you do is have the Collider you want in the prefab,and it'll work.

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 ChubbyBump · Jul 30, 2013 at 10:51 PM 0
Share

Well, thanks for your answer. But this wasn't my problem. I can use unity's default detail painting tool for my objects, but it doesn't show them correctly. Unity seems to add a bunch of features to whatever you paint on because that is how they think the detail painting should be treated. For example when I give the detail painting my gameObject, it changes the size, filter type, and removes the script which I needed on it. It seems to me that unity's paint detail tool is only good for simple mesh and texture objects. What I'm trying to paint on the screen is a 2d mesh and texture that will rotate to face the player wherever he is. What I need is a tool to add the prefab of this object that I already made and just place them in large amounts on the terrain without modifying the gameObject at all. It seems like there isn't an easy way to do this, so I'd like to get into unity's code and change how painting gameobjects work, but I can't figure out how to access their terrain script. Any advice?

avatar image GoldGamerGod · Aug 05, 2013 at 02:46 AM 0
Share

Ah, so mainly you'ed like BillBoarding objects... I'm not sure on how you would do this. All I know is about the scale size is you need to CHANGE the scale size in the mesh options, not the transforms. Sorry couldn't have been much of help on this.

avatar image
0

Answer by chummscrubber · Jul 29, 2013 at 04:29 AM

I have an idea on how to get them placed correctly, but not how to paint them. Basically create an empty game object and set it as the parent of each different tree prefab at the location of where you want the tree to clip the terrain.

Then use code to check the terrain height at the location you want to place the tree/s at, then set the position of the empty game object to the terrain height, since it is the parent this will move the tree into position nicely.

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 raphu604 · Jan 28, 2014 at 01:08 AM

You can try my asset MeshBrush on the store, it does exactly what you are looking for: https://www.assetstore.unity3d.com/#/content/14453

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

18 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

Related Questions

Terrain Brush Problem 2 Answers

Edit Terrain Script 0 Answers

Terrain brushes cannot be set - BUG 1 Answer

[Blender] Sculpt high detail with custom brush over low poly terrain 0 Answers

I can't add grass on my terrain 3 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