Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Milad · Jun 28, 2011 at 06:28 AM · wave

Dynamic wave on a plane!

Hi,

How can i make wave on a plane?

Thanks.

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 Dreamblur · Jun 28, 2011 at 06:32 AM 0
Share

From the very limited piece of information that you gave, I'm led to believe that what you want to do is to dynamically edit the mesh of the plane. If that's right, then edit it via the $$anonymous$$esh class.

avatar image FourSheds · Jun 28, 2011 at 07:18 AM 0
Share

Also, this could probably be done a lot easier in a modeling program (e.g Blender etc.), with an imported animation if necessary.

avatar image Milad · Jun 28, 2011 at 08:59 AM 0
Share

I need it for water wave simulation.in fact i want to do ship simualtion for my project.

anybody can guide me?

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by demize2010 · Jun 28, 2011 at 09:49 AM

I'm not sure I follow what you mean but my gut feeling is that you're underestimating greatly the scope of such a task. Have a good hard think about how many games actually use tech like this and not just surface decals ;)

For normal waves take a look at the water shaders available in Unity Pro for a non dynamic effect.

To get the plane to react to other objects in the scene and create "dynamic waves" is not really a simple problem. You will need to edit the verts in the mesh against a clever wave algorithm most likely using the contact[x].point's from a sphere cast.

This will be expensive as hell, as you will need to use a mesh collider to get the points you need. I'm not even 100% sure if mesh colliders will update automatically if you change the shape of their respective mesh.

The mesh class you will need:

http://unity3d.com/support/documentation/ScriptReference/Mesh.html

The collision class you will need:

http://unity3d.com/support/documentation/ScriptReference/Collision-contacts.html

A better route to take here would be to combine a non-dynamic effect with an animation model to show water displacement and blend that to decals maybe for wake.

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
-1

Answer by Nexgea · Nov 22, 2016 at 09:38 PM

I created package that does exactly that. But it isn't free. Link to Asset Store

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Spawn "n" Enemies Every "nth" Wave? 1 Answer

Spawning Waves: Second wave doesn't start? 0 Answers

Natural wave effect on cloth affected by wind? 1 Answer

Wispy magic effect 0 Answers

Is it possible to make grass, like in the terrain as a gameobject? 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