How to make soft body interaction

Did you seen tetragedron making 13 - Writing a Tetrahedralizer for Blender - YouTube
Plugin for blender:
BlenderTetPlugin.py (16.7 KB)

Yes yes, i done that part. Now I have to export 3 jsons and repolace it in source code. That is my problem

You have mesh vertices, edges and tetragedronius ?

I do not have, i do not know how to export that information from blender

Export to format obj. In three.js use objLoader. After load into console you can see scene.children[0].geometry.attributes.position is vertices.

Thanks I will try and let you know :smiley:

Or ask that man how he done it via youtube or instagram.

I asked, he said he will do that in future tutorials.

1 Like

Here is my glb object WeTransfer - Send Large Files & Share Photos Online - Up to 2GB Free
Can you please please please help me to make this hoodie like yellow dragon?

I try plugin for blender and console log obj but no luck

Code have also edges, tetids, tetSurfaceTriIds i dont know how get it

Works not good and with not all models
Elastic change here:

sbConfig.set_viterations( 1 );
sbConfig.set_piterations( 1 );

dist_18.zip (600.3 KB)

Thanks :smiley: This help me :smiley:

Some models can be broken. I made model in 3ds max


My 3d model looks terrible, do you know how to fix that part

As i wrote, not all models work good.
You can change values:

const gravityConstant = -5;
createSoftVolume( pre, volumeMass, 10000 );
const bbbMass = 10000;
sbConfig.set_viterations( 1 );
sbConfig.set_piterations( 1 );

it is not clear to me which parameter is used for what. Do you have my 3d model? Please help me get the perfect look

Error for me. Maybe you can use solution from theme

image

Hi, did you ever find a solution on how to add interaction to soft bodies? I am trying to work based on the same example (Ammo.js softbody volume demo) and be able to drag the objects around.

Thanks in advance!

Not yet, but I hope I will find

Just this example https://blog.devgenius.io/create-an-elastic-material-with-three-js-ea8d0a394bcf