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 wamus · Oct 06, 2012 at 05:25 PM · animationgrassbending

Grass Animation

On my forum link (Here : http://forum.unity3d.com/threads/153621-Real-Time-Project-ShadeCreest-UnityTech ) its was a comment about the grass animation.

This is what the comment was

**> Your grass need some work, the hole

grass bends (Real-time grass only bends at upper parts.**

Does anyone knows how to get the grass only bends at upper parts ?

Thanks :D

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 shaderop · Oct 06, 2012 at 06:08 PM 0
Share

Ignore that comment. From the video your grass is looking just fine as far as I'm concerned. Trying to bend the individual blades at runtime will probably kill your performance.

avatar image Owen-Reynolds · Oct 07, 2012 at 02:47 PM 1
Share

I wouldn't take a comment too seriously from someone who didn't take the time to fix "hole," but ... the idea is grass bends in a non-linear fashion. The edge of bent grass is a curve ins$$anonymous$$d of a straight (diagonal) line.

To do that, give grass billboards more verts along the sides, and have the shader bend using something like windAmt*(localY squared). The thing is, there's a lot of grass, and the trick doesn't look that much better.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by iwaldrop · Oct 06, 2012 at 05:35 PM

The grass needs to be of multiple transforms, and each needs to bend it's own amount. The first piece will be the lower, and each successive piece will be placed at the top of the one before it. Child each transform to the one before it.

As you bend the first piece notice that all pieces bend with it. Now, simply apply your bending effect to each transform and adjust your settings accordingly to make it look natural.

You might also experiment with Random.Range(lower, upper) so that it has some divergence from the value you set in the inspector.

Have fun!

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 wamus · Oct 07, 2012 at 02:13 PM

Thanks it worked

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 iTextures · Jun 04, 2015 at 02:52 PM

yes ... here ..

http://forum.unity3d.com/threads/grass-animated-very-low-poly.330373/

or click 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

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

12 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

Related Questions

grass animation changing color 2 Answers

Vegetation animation on non-terrain mesh? [YES] 1 Answer

Can the animation editor create local rotational data? 3 Answers

Adding animation clips via script 2 Answers

Can I make animations snap to a frame? 1 Answer


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