Adaptive Viscosity Solver Plugin for Houdini
Source code from the SIGGRAPH 2019 technical paper An Adaptive Variational Finite Difference Framework for Efficient Symmetric Octree Viscosity
To build this project in Houdini (Linux):
Install Houdini 17.0 or higher.
Go to install folder (/opt/hfs.xx).
Type "source houdini_setup" to get the necessary environment variables.
Make a build folder the top level of the repository.
Run cmake .. in the build folder (if Eigen is preferred over native Houdini's Conjugate Gradient method, include -DUSEEIGEN=ON).
Run make in the build folder.
Verify that it was added to Houdini by:
- Launch Houdini.
- Press "tab" in the Network Editor and select a "DOP Network" and place it in the editor.
- Jump into the DOP Network, press "tab" again and verify that "HDK Adaptive Viscosity" is searchable.
Build your liquid simulation scene.
Unlock the FLIP Solver by right clicking on the DOP and selecting "Allow Editing of Contents".
Dive into the FLIP Solver, find the viscosity solver DOP called "gasviscosity" and disable it by selecting the "Bypass" radial menu option.
Place the "HDK Adaptive Viscosity" solver, wire it into the disabled "gasviscosity" DOP.
Copyright 2019 Ryan Goldade
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.