azmisov / snow Goto Github PK
View Code? Open in Web Editor NEWOpenGL and Houdini snow simulation (material point method)
License: GNU General Public License v2.0
OpenGL and Houdini snow simulation (material point method)
License: GNU General Public License v2.0
Hi, Your code is easy to understand in engineering point of view, it's well coded. And I almost went over all part of the 2d version, but there is one place I can not understand due to lack of some mathematics background (I think so):
Particle::energyDerivative()
below
const Matrix2f Particle::energyDerivative(){
//Adjust lame parameters to account for hardening
float harden = exp(HARDENING*(1-def_plastic.determinant())),
Je = svd_e.product();
//This is the co-rotational term
Matrix2f temp = 2*mu*(def_elastic - svd_w*svd_v.transpose())*def_elastic.transpose();
//Add in the primary contour term
temp.diag_sum(lambda*Je*(Je-1));
//Add hardening and volume
return volume * harden * temp;
}
I can not find anything about this derivative on the original paper, but I think this does what the equation (6) suppose to do in the original paper.
And I reviewed a lot of time between the paper and this method, but still can not understand why you calculate equation (6) in this way, can you give me some hints on why you did in this way?
Thank you very much for taking time for this issue.
P.S. Of course I skipped all implicit solver parts which are a lot more harder to understand by now :P
[*] Note: This is the first time I encounter to calculate partial derivative in computer language, it's so interesting to figure out how to.
I can build the Houdini plugin without any problems (lots of warnings, but no errors), but when I try to run, it crashes. Houdini immediately crashes when I try to load the mpm_setup.hipnc, but will load mpm.hipnc; the crash happens when I play, to simulate.
I tried setting HOUDINI_DSO_ERROR to 5, and I didn't see any errors related to this node, but it's still crashing for some reason.
Any ideas? I'm on Linux Mint 17, btw. What are you building under?
Thanks
Crash report from chris; Houdini FX Version 13.0.582 [linux-x86_64-gcc4.6]
Traceback from Wed Nov 12 21:41:04 2014
Caught signal 11
AP_Interface::coreDumpChaser(UTsignalHandlerArg) <libHoudiniUI.so>
AP_Interface::si_CrashHandler::chaser(UTsignalHandlerArg) <libHoudiniUI.so>
signalCallback(UTsignalHandlerArg) <libHoudiniUT.so>
UT_Signal::UT_ComboSignalHandler::operator()(int, siginfo*, void*) const <libHoudiniUT.so>
UT_Signal::processSignal(int, siginfo*, void*) <libHoudiniUT.so>
killpg <libc.so.6>
SIM_SnowSolver::solveGasSubclass(SIM_Engine&, SIM_Object*, SIM_Time, SIM_Time) <SIM_SnowSolver.so>
GAS_SubSolver::solveGas(SIM_Engine&, SIM_Object*, SIM_Time, SIM_Time) <libHoudiniSIM.so>
GAS_SubSolver::solveObjectsSubclass(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
SIM_Solver::solveObjects(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
GAS_SubStep::solveObjectsSubclass(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
SIM_Solver::solveObjects(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
SIM_SolverMulti::solveObjectsSubclass(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
SIM_Solver::solveObjects(SIM_Engine&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_ObjectArray&, SIM_Time const&) <libHoudiniSIM.so>
SIM_Engine::doSimulationStepForMetaObject(SIM_MetaObject&, SIM_Time const&) <libHoudiniSIM.so>
SIM_Engine::doSimulationStep(bool) <libHoudiniSIM.so>
SIM_Engine::setSimulationTime(SIM_Time const&, bool, bool, bool) <libHoudiniSIM.so>
DOP_Parent::setDOPTimeSubclass(SIM_Time const&) <libHoudiniOP1.so>
OBJ_DopNet::setDOPTimeSubclass(SIM_Time const&) <libHoudiniOP3.so>
DOP_Parent::setDOPTime(SIM_Time const&) <libHoudiniOP1.so>
JEDI_View::opuiUpdateNodeInfo(OH_NodeInfo*) <libHoudiniAPPS3.so>
OH_OpHandler::opuiUpdateData() <libHoudiniUI.so>
OP3D_View::doUpdate() <libHoudiniAPPS3.so>
JEDI_View::opuiUpdateData() <libHoudiniAPPS3.so>
OH_OpHandler::trigger() <libHoudiniUI.so>
UI_Queue::processNextEvent() <libHoudiniUI.so>
UI_Queue::drain() <libHoudiniUI.so>
UI_Queue::eventLoop() <libHoudiniUI.so>
main <libHoudiniUI.so>
__libc_start_main <libc.so.6>
_start <houdinifx-bin>
I am trying to generate the initial snow (with particles) in Blender, but the result is bad, so I wonder what algorithm you use to generate the snow particles in Houdini? I want the result from your video.
Here is my result in Blender:
Do you have any suggestions? Thank you for taking your time to read my issue.
I just built the Houndini 14.x plugin on my macOS Big Sur, I fixed a lot of building error with some ugly hacks for C++ headers.
Finally, I built the plugin, but Houdini just crash after importing the otl
file.
I just can't do anything to it, just head to here for help, if the author of this plugin can take time to build the plugin with the newest Houdini and fixed some error for us?
I searched GitHub for MPM snow simulation implementations, but this project is the best solution. So It would be awesome to run the plugin and understand the code.
Any help?
BTW, This is the error while installing the plugin without building SIM_SnowSolver.c
in the latest Houdini 18. I think this is the problem of otl
file and the latest Houdini.
Hi, I read tutorial.txt in SnowHoudini and I don't know how to install SIM_SnowSolver.c
My OS is : OS X EI Capitan 10.11.6
And I found some possible directories:
"/Applications/Houdini 15.5.673" : Houdini can be opened from Houdini.app in this directory.
"/Library/Frameworks/Houdini.framework" : I see folders named Headers, Libraries etc. here. But *.h files are actually at /opt/local/include
So, what directory should I use to install SIM_SnowSolver.c?
Hi, guys
This solver is very inspiring.
But 3D houdini version snow always tend to fall apart like sand.
It can not produce chunky parts like original paper or 2d version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.