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 guest1234567890 · Nov 14, 2012 at 03:25 PM · editorterrain

How to raise a block from a Terrain

Hello, I need to use the §flatten terrain" tool to raise a perfect cube from the terrain, so there is a 90 degree angle between the cube and the rest of the terrain. When I use one of the brushes of the editor, there is always a trainsition between the top of the raised part and the floor, so that it looks like a mountain or something like that.

Is there a possibility to raise a part of the terrain, so that there is a 90 degree transition between the raised part and the rest of the terrain?

Comment
Add comment · Show 2
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 Dexter.Unity · Nov 14, 2012 at 03:55 PM 0
Share

Do you simply want a block in your terrain or does it really have to be a raised terrain in a 90 degree angle in a strait line?

avatar image chelnok · Nov 14, 2012 at 07:58 PM 0
Share

Check out this youtube vid: http://www.youtube.com/watch?v=2W3Vm1_QGf0 There is downloadable unitypack. It was really easy to use.. just a couple js-scripts. But i dont think you can do 90 degrees with terrain. I am not sure, but i think its because you can only modify vertex height..

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by DESTRUKTORR · Nov 14, 2012 at 03:35 PM

Check out the page for the Terrain class script reference, and the TerrainData script reference.

I'm not sure whether or not `SetHeights` will actually accomplish what you are looking for, but from what I can tell it's your best bet, apart from simply integrating a shape that shares the same texture as the terrain, itself.

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 JonathanGeoCox · Nov 14, 2012 at 08:39 PM

I don't think that 90 degree angles are possible in terrains. The heights are stored in a two-dimensional matrix of floats (default being 513x513) whereas the terrain is a (mostly) continuous surface. To calculate the height of the terrain at a given point, Unity just interpolates among the surrounding 2-4 heights in the height map matrix. Thus, unless one of your heights is infinity, you'll never get a 90 degree angle.

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

13 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

Related Questions

Blending edges of textures in the Terrain Editor 0 Answers

Terrain texture editor panel is whited out 0 Answers

Terrain Brush Disappeared 2 Answers

Curvy Shapes in Unity Terrain editor? 1 Answer

Why is my tree so gigantic? 2 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