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 laurienash · Feb 23, 2015 at 01:14 PM · animationterrainblendercompression

Terrain that compresses when player walks over it

Hi - I was wondering if anyone could give me any pointers on the best way to create the effect that when the player moves over the terrain, it deforms or compresses.

Should I create a plane in Blender and apply animations to different areas of the terrain, and call these animations in Unity when the player is close to them?

I just thought I'd ask if this was the best way of going about it, as I'm still quite a noob (and slow) at unity.

Best, Laurien

Comment
Add comment · Show 3
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 Mmmpies · Feb 23, 2015 at 01:48 PM 1
Share

That's actually quite a complex thing to do, do you need a complete permanence or just interested in rendering a trail for a few seconds?

You might find something useful in here:

Rendering-trails

avatar image Owen-Reynolds · Feb 23, 2015 at 06:24 PM 0
Share

Seconding the complex notion. Esp. if anything else is on the terrain. When the ground flexes back, things might drop through it.

Often easier to sink the player down a bit (feet sinking into the ground,) and other visual tricks for a "she's really doing a number on that ground" look.

avatar image laurienash · Feb 23, 2015 at 09:26 PM 0
Share

Thanks for all your ideas - I'm just going through all these options now!

No - I don't want complete permanence, a trail for a few seconds would be ideal.

I think it wouldn't be a problem with objects falling through the terrain, as I wouldn't have anything over where the ground is defor$$anonymous$$g, and I could put a collider over the top of the terrain? The player is only able to follow set paths, so I would only apply animations to these paths so the other objects in the scene aren't affected?

I don't think rendering a trail would work, as I want the ground to look like it's physically defor$$anonymous$$g when the player is near, not simply that the player is unusually heavy and is sinking into the ground. (the player won't appear to be actually touching the terrain)

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by _Seph · Feb 23, 2015 at 01:50 PM

You can just write to the terrain height map directly with TerrainData.SetHeights, you might want to keep the original heightmap data so that you can bounce the terrain back up (otherwise the player can keep walking until it all is down).

But to prevent everything looking very rough you are going to end up with a very high detail terrain mesh in a small area. A better way would be to represent the result with shaders by writing a series of decals to the normal map with techniques explained here.

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 Mmmpies · Feb 23, 2015 at 02:15 PM

Or watch this tutorial footsteps as long as you don't actually need the terrain to be physically affected.

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

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

Related Questions

creating a disolvable ik rig in blender for unity3D mecanim 0 Answers

Unity Partially Ignoring Blender Animation 1 Answer

Animation for rigged chest in blender does not work in Unity 0 Answers

importing destructible object from blender 0 Answers

Unity Rotation In Animation Goes In Opposite Direction 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