Hi,
one for the devs here I guess. Using mpm fibers when I switch off collide constrained on a constrain mpm node I seem to get a double 'un solved/ un simulated' set of fibers. See images. When the strands are extruded it also shows up (obvioulsy)
regards
Phil
Solved! Go to Solution.
Solved by stamatk. Go to Solution.
Hi @PhilRadford
It's a bit difficult to tell what's going on without first understanding the setup. Which geometry are you using as constraint and which is the collider? If you could share a scene it would be super helpful.
Thanks!
Kosta
Wouldn't allow me to attach here, trying again, only 119kb - I am getting an error.
The attachment circular strands.mb content type (application/octet-stream) does not match its file extension and has been removed.
Awesome thanks!
So from a quick glance at your set up:
- Make sure you don't connect both the output from "make_mpm_fiber" and the output from "constrain_mpm" into the sources of the simulate. This means you are creating two sets of strands, one that is constrained and one that is not. All you need is only the output from the constrain_mpm.
- Currently the constrain_mpm node only supports the bounding box or bounding sphere of the input geometry, not the exact input geometry. So in this case, although you are trying to constrain where the strands meet the the ring, it's actually constraining inside the ring too. This means, the entire length of all your strands are constrained inside the bounding box of the ring
What happens when collide constrained is enabled, is it forces collisions with points even if they are constrained, so when your sphere comes down, it still displaces the strand points even though they are constrained.
We do plan to add support for exact geometry for constraints in the future.
Sorry for the inconvenience, hope this helps.
Cheers,
Kosta
Firstly thank you for your time in looking into this. Did you also have issues at frame 13?
The double strands only seems to happen when the constrain is set to collide constrain (or off, I cant remember) . Actually I have created quite a few fibers set ups now and having both fiber source and constrain connected to simulate mpm sources hasn't caused a problem until this update but its a good shout to move away from that work flow.
Good to know about more constrain shapes and the possibility of using actual meshes is coming that will be really handy and to be honest when I saw bounding box and bounding sphere in the constrain settings it did give me a clue to that but I chose to ignore .
Fibers is mega powerful, when it works properly it will be awesome. For now I will use some work arounds .
One other thing, kind of related... Any chance we might get a create strands from 'face normal' so that we only get one strand per planar surface instead of the 4 strands per planar we currently have ?
many thanks
Phil
Hey @PhilRadford no problem,
The double strands happen because of the double connection to the simulate compound, they have nothing to do with the constrain_mpm. They are overlapped onto one another so you don't notice them until one is affected by the constraint collision and the other is not.
I do notice the slow down on that frame, I believe it's because the solver is struggling between constraining the points and having them pushed by the force of the collision - these two forces contradict each other.
As for the face normals, I will suggest it to the team, thanks!
Kosta
Hi Phil,
I made a quick graph that does strands along face normals.
I could do this quickly because:
Hope this is helpful both to solve your problem and as a code example for how to iterate the mesh!
Can't find what you're looking for? Ask the community or share your knowledge.