NVIDIAGameWorks / FleX

Other
664 stars 100 forks source link

Fluid sticking to triangle edges #5

Open Hurleyworks opened 7 years ago

Hurleyworks commented 7 years ago

Howdy,

Thanks for making such a great library available!

I'm writing a Flex based plugin for LightWave3D and am hitting a problem when fluids with high Adhesion settings start sticking to the triangle edges of the underlying mesh. ( see attached image )

Definitely not a show stopper, since reducing Adhesion and/or subdividing the mesh more can reduce the artifacts but it's definitely the most common tech support question I'm getting. :)

Is this a bug or just a limitation of Flex?

adheretoedges

mmacklin commented 7 years ago

Hi there,

I think this is an artifact of way Flex handles internal triangle edge collisions. Essentially each particle on an edge will receive two contacts (one for each triangle). Each contact applies its own adhesion force, meaning particles are overly attracted to these edges. We would need to do some form of contact reduction to improve this (which would be a good idea for other reasons too).

Thanks for the report, we'll keep this in mind for future release.

Cheers, Miles

Hurleyworks commented 7 years ago

Great, thanks for looking into it.

Speaking of future releases. : ) I'm getting a lot of request for Smoke support as seen in some of your demo videos .... any idea when Smoke will make it's way into the SDK/Demo

mmacklin commented 7 years ago

We're not actively developing the smoke module for Flex. You might be interested to check out Flow though: https://developer.nvidia.com/nvidia-flow.