MASH dynamics

392 views
Skip to first unread message

Gregor Samsa

unread,
Nov 25, 2017, 7:17:19 AM11/25/17
to maya_he3d
Hi Ian or anybody else who is more proficient with MASH than me..
Inspired by dynamics node ability I tried to make a biomedical simulation of blood flow and got some issues I stuck with for couple of days. The first and the most is bullet solver collider object don't catch mash particles as it was shown on Ian Waters youtube channel. The second question is about python node: I have curve warp deformer on my MASH1 system which forms part of vessel body (smooth muscle cells of vessel endothelium) and can't make it animated along curve without remaking it from scratch, how can I make it dynamic and collide with vessel while following the camera path? (for making scene more light). Adding dynamics node and bullet solver collider object don't work as well.

 PS: In attached file waiters are disabled except MASH1.
blood.mb

Phinnaeus OConnor

unread,
Nov 26, 2017, 6:06:48 PM11/26/17
to maya_he3d
Hey Mash/Maya people, I've been asked to animate a wall of bricks to appear brick by brick and maybe have some kind of funky fall off effect added, Is this something I could achieve using Mash?

Thanks in advance!

P



--
You received this message because you are subscribed to the Google Groups "maya_he3d" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maya_he3d+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ian Waters

unread,
Nov 27, 2017, 5:23:58 AM11/27/17
to maya...@googlegroups.com
Hey Gregor,

MASH1 network & CurveWarp & Rigid Body Dynamics
You have overlapping geometry - so this is never going to work with dynamics - the collisions will resolve, and you’ll lose your structure.

It looks like you’re trying to move the endothelium cells through the adventitia - if that’s the case, I’d just approach the problem differently.
Distribute onto some geometry, and then move that geometry through the adventitia using CurveWarp.
As the adventitia changes width in various places, you’ll also need shrink wrap the distribution geometry to the adventitia using closest point mode. You’ll need to play with a few settings (length and scale, sampling in Curve Warp and inflation in Shrink Wrap). See attached scene.

This works pretty well. Assuming this is the effect you’re after…

As for your other problem, you have complex concave shapes in your scene (eg. Lymphocyte1) and your collision mode is set to Automatic, helpfully the Solver is choosing ‘Mesh’ as your collision shape due to the concave nature of your shapes. However, for your needs, you should be using a spherical collision shape. It’s much faster, and more accurate.

Secondly, you need to delete history on the adventitia, it’s a mess :) - This will also speed up the sim.

Thirdly, select your MASH networks that you don’t need to deform (eg. MASH5) and go MASH > Utilities > Switch Geometry Type. This will change the model representation to instances, which are much faster to display.

Also, just a tip, you can rename MASH networks in the MASH Editor (in 2017) and in the Outliner (in 2018), it makes scenes much easier to understand - I’m bad at this myself!

Best,
Ian

EndotheliumCells.mov
TestAdventitia_01_iw.ma
blood.mb
MASH5.mov

Ian Waters

unread,
Nov 27, 2017, 5:24:06 AM11/27/17
to maya...@googlegroups.com
Sounds like it’s got MASH written all over it… :)

Phinnaeus OConnor

unread,
Nov 27, 2017, 5:34:19 PM11/27/17
to maya...@googlegroups.com, Ian Waters
Hi Ian, thanks! good to know, which leads me to the next question, which one of your tutorial videos would be best to watch to achieve this kind of affect?

Ian Waters

unread,
Nov 28, 2017, 8:19:54 AM11/28/17
to Phinnaeus OConnor, maya...@googlegroups.com
It’s a bit old, but this is a goodie:
(Use a Strength node not a Mute node when the tutorial says - the Mute node was deprecated a couple of years ago).

Phinnaeus OConnor

unread,
Nov 28, 2017, 4:21:13 PM11/28/17
to maya...@googlegroups.com, Ian Waters
Sweet, cheers Ian, this looks perfect!
Reply all
Reply to author
Forward
0 new messages