Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[bug] fluid object misaligned with obstacle objects #315
Earlier with the beta builds, I never noticed this slight misalignment of the obstacles with the fluids - now it's really bothering me.
Also, I've been trying lately to make good looking tall waterfalls over uneven surface - but failing. The fluid seems to be wild and stringy even though I've switched completely to PIC - and used many substeps and increased resolution. Perhaps you might have some helpful hints as to settings? I'm still experimenting.
Included is a file that I hope will show the misalignment along all three axes:
Thanks for reporting this! I just had a chance to look at the .blend file. There was a bug that was causing meshes to be misaligned when world scaling was enabled. This bug has been fixed and will be included in the next version update (1.0.3, hopefully available next week). Until that version is available a workaround is to either translate the domain or obstacles to manually align the meshes for rendering. Sorry for the inconvenience!
To create a waterfall sim like this I would suggest creating some realistic terrain/obstacle conditions for a waterfall. Right now, fluid is dropping ~10m directly onto a flat surface which can cause some harsh pressures/velocities that can fling particles around. Here are some notes that I suggested to another user interested in waterfall simulation:
For each level of the waterfall, I would create a basin of fluid for the falling water to collect into before falling over to the next level. Another suggestion I would make is to increase the size of the inflow object to generate more fluid. After some of these changes you may find the fluid is less chaotic, so lowering the PIC to FLIP ratio back down to 0.05 - 0.3 for a more accurate simulation might be good.
Here is an animation of a similar scenario except that the flow is more horizontal than vertical: https://gfycat.com/UniformQuarterlyKid
Hope this helps!
Thanks for your attention in this, Ryan! I've got some other possible world scaling problems to share with you now. I'm only testing for this last night and today- and I wish I'd done it earlier during Beta. For my rapids, I wasn't familiar enough with the addon so I just scaled everything up and it all worked great. However, I think that there are some other problems with world scaling.
I'm including a link to my test files so you can decide for yourself if what I'm seeing is real.
Here's what I'm seeing. With just scaling all the objects (I applied scale - don't know if that makes a difference) everything seems to work as expected.
When using world scale, I see differences in white water particle numbers (much less), proportional differences in the fluid as far as distance traveled, and I think that the FLIP/PIC ratio becomes much less useful as far as stabilizing the simulation. In the world scaling, the fluid becomes explosive - I've been fighting this issue with a waterfall scene I've been working on - so much that I tried adding miniscule amounts of viscosity - which makes everything ropey.
I just checked out the .blend files. There is a difference in size between the two setups:
A note on whitewater: the size of the domain will generally affect the amount of whitewater. The
For this simulator, it will not matter whether you apply scale. The addon will use the final geometry of the object.