A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Discussion in 'Works In Progress' started by NWHCoding, Apr 21, 2017.
YAY! FINALLY WAVES THE ONE THING I BOUGHT THIS FOR!
I'd like to see a demo of that.
Hi, what ocean / wave system do you recommend for this plugin that can support both mobile, console, and PC-based VR platforms?
There is now a demo for Crest and Lux Water here: http://dynamicwaterphysics.com/doku.php/Demos
If you are using Dynamic Water Physics 2 I would recommend Crest for sure. It is open source and getting more and more polished with each update - and they come almost on daily basis.
Dynamic Water Physics now has a discord: https://discord.gg/59CQGEJ
I am trying to modeling a ship but when I run the program the ship tilts on the left side.
I have done an other ship before and I didn't have any problem.
Can you help me with this?
This one is easy to fix. Your center of mass is too high and therefore it tips over.
Just attach center of mass script that is included and lower the value on the Y axis.
If you already did that and it still tips over, make sure that the rotation of your model is correct (X-right, Y-up, Z-forward).
Thank you for the tips.
I am trying but in order to stay straight I have to lower the CoM with a quite a high value such as 9 and the draft of the ship is 6.
The axis are correct now (they weren't before).
I solved the problem using the hull of the first ship scaling it. The only remained issue is that the ship is rolling too much when I have rough sea. Can you explain what are the following parameters:
-Skin Friction Drag
-Dynamic Force Power
-Velocity Dot Power
I read what the parameters are on the code.
But I am still not able to have a good behavior in rough sea with the second ship: it jumps and turn a lot in all axis.
I am using DWP2 with Crest.
I am trying to modelling some big ships ,such as a Container Carrier with 325m of length. No matter what parameters I change, it seems to me that it is always rolling too much
please try inreasing the angular drag on the Rigidbody a bit.
Normally large ships have some kind of roll stabilization but this has not been implemented in DWP2.
Check this video:
Or this Wiki article: https://en.wikipedia.org/wiki/Stabilizer_(ship)
Increasing angular drag will help to some extent but a small script that applies counter torque to the ship would be better. I.e. when the ship is tilted left add torque in clockwise direction and vice versa.
I have added this as a TODO.
Hey! i'm looking at creating a river simulation, objects flowing down stream.. specifically a raft
the asset R.A.M. seems to cover the shader part of this, does your asset have support for R.A.M.?
and if so, how well does it handle drops/slopes in the river
I have contected R.A.M. publisher about two weeks ago and nothing. But since it is quite requested I will see what I can do. DWP2 supports both waves and water flow. I am preparing to do a larger update in the future.
try on discord
I am modeling a container carrier.
I am simulating a propeller that has always the same force and the ship is always reaching the same maximum speed, such as 17 knots.
If my ship collides with something it happens that ,using the same force, the ship reaches a much bigger speed, such as 20 knots.
I am applying the forces to the rigid body of Ship_local_pivot, the waterobject script is in "hull" gameobject and the collider is in "CollisionDetect" gameobject
Can you understand why this is happening?
Could it be that the collision pushes the ship slightly out of the water? This would reduce the drag on the hull and allow the ship to go faster.
After further tests I understood that this is happening always in a certain zone of a terrain. So it is not due to a collision.
Is there a way to know the value of the drag in each point?
That is interesting. What water are you using? A flat plane, Crest or something else?
We are using Crest
In that case - Crest uses LODs. I.e. the waves get finer and finer the closer you are to the origin. Could it be that if you are not using floating origin that the ship speeds up over LOD0 where the waves should be the highest resolution.
I'm just wondering if I can delete the Demo Content folder after import DWP2, it is around 200mb; also is there a tutorial for integrating with Crest
Hello. v2.2 will be getting rid of Demo Content folder and everything will be in a single directory so while you could in 2.1, the answer is no for 2.2. Besides, except for using space on your drive these files will not increase the size of your build.
As for Crest tutorial: http://dynamicwaterphysics.com/doku.php/WaterAssets
v2.2 will have some major improvements for Crest integration and make integrating 3rd party assets much easier tho. Check the posts above for the changes. The update is expected in a few days.
I am currently rewriting most of the docs for DWP2 2.2 as these have been updated so many times that I feel they lost some of the usefulness and do not cover all the bases.
Also, in 2.2 a new type of WaterDataProvider will be introduced: RaycastWaterDataProvider. RaycastWaterDataProvider can be used with any object that has a Collider attached to it. This should be useful for R.A.M. style assets or scenes that have rivers/streams/waterfalls implemented as a mesh with a scrolling texture.
I have a gameobject that represent the ship, it has a rigidbody with the mass of the ship.
This gameobject has several children:
-one gameobject that represent the "hull" of the ship and that contains WaterObjects script;
-some of the other children have colliders that I use for several purposes.
If one of these colliders is not symmetric respect the center of the ship and the "hull" collider the ship is going to stay bent on a side .
Can you explain what is happening here?
If I understood correctly the colliders for the object are not fully symmetric and therefore the ship tilts to the side?
This happens because unity calculates center of mass as a center of all colliders, as if they all have uniform mass.
To fix this add CenterOfMass script to your ship (to the object containing the Rigidbody) and adjust the X value in play mode until the ship is level. Then exit the play mode and use that value for center of mass.
Could you please upload video tutorials for RAM and Crest.
I followed the pdf manual and the boats and objects were not float.
I am stuck.
The demo scene of DWP2 works very well.
the highest supported version of Crest in DWP1 is Crest 6. Later versions have different API.
RAM is not supported and never was in DWP1.
DWP1 and 2 are very different assets with not much in common (ship controller is similar but the WaterObject code is completely new).
I am using DWP2
Ah, OK then. Please also check: http://dynamicwaterphysics.com/doku.php/WaterAssets
just in case the offline docs are outdated (should not be).
Which one are you using, Crest or RAM? I am asking because they have quite different setups.
Also, could you say which steps have you made? Does it float as if using flat water (i.e. does not register waves) or falls just straight through?
And finally, do you get any warnings or errors?
I tried both Crest and RAM.
The above is screenshot from RAM.
The followings are what I did.
1. I opened the demo scene of DWP2.
2. I disabled Water from Environment.
3. I added RAM Lake Polygon. Tag Water and Layer to Water (layer 4)
4. I changed RAMwaterprovider.cs.txt to RAMwaterprovider.cs.
5. I created Empty Object and assigned RAMwaterprovider.cs.
Play and all the objects were not float.
Could you PM me your project and I will take a look at it. Just remove the Library folder to reduce size. This will probably be the fastest way for me to debug it.