MoI discussion forum
MoI discussion forum

Full Version: Cloth simulation

Show messages:  1-20  21-40  41-60  61-73

From: Max Smirnov (SMIRNOV)
9 Feb 2014   [#1]
This will be my next script ;)
Tomorrow I'll think about interface. Do you have any ideas or advices?






From: BurrMan
9 Feb 2014   [#2] In reply to [#1]
The only thing that comes to mind is a holy smokes Max....
From: DannyT (DANTAS)
9 Feb 2014   [#3] In reply to [#1]
Are you pulling our leg Max!? because it would be cruel giving us false hope ;) Is that even possible in MoI? I'm confused?

Looks great BTW.

-
From: bemfarmer
9 Feb 2014   [#4]
http://cg.alexandra.dk/2009/06/02/mosegaards-cloth-simulation-coding-tutorial/

A mere 580+ lines of C++ code :-)
How much JavaScript code would that take?

Then turn it into Nurbs?

- Brian

Some verlet integration in javascript?
http://www.cores2.com/blog/?p=244
From: bemfarmer
9 Feb 2014   [#5]
So I'm guessing, calculate a lot of points, at some density, ?
Turn the points into curves, like a fishing net with square holes?
Apply Network command?
From: Michael Gibson
10 Feb 2014   [#6] In reply to [#1]
Really cool Max, looks like you're having a lot of fun!

Re: interface - not sure what tips to give on that yet without knowing more details - is the movement of the ball something that's happening in the simulation code as well or is that responding to mouse movements?

I guess first thing that comes to mind with what you're showing there is something to control the grid density of the cloth?

- Michael
From: bemfarmer
10 Feb 2014   [#7]
I did a little reading, based upon google search of "verlet integration cloth simulation," and found lots of good sites with excellent information.

Select collision object(s), i.e. the sphere.
Cloth width.
Cloth height.
Grid density, or vertex distance.
Vertex "marble" distance, to prevent self intersection.
Attachment points, if any, i.e. 2 corners.

http://graphics.stanford.edu/~mdfisher/cloth.html

Another site explained collision.

- Brian
From: Max Smirnov (SMIRNOV)
10 Feb 2014   [#8]
Hi guys!

DannyT
>>Is that even possible in MoI?
Yes, it's possible. And it works even faster than I thought before.

bemfarmer
>>How much JavaScript code would that take?
I used three.js javascript library. It's so big! I need to clean all unused functions.
At the moment the code size is about 2000 lines. :)

>>So I'm guessing, calculate a lot of points, at some density, ?
I think 40x40 points will be enouth.

Michael Gibson
>>is the movement of the ball something that's happening in the simulation code as well or is that responding to mouse movements?
In the first video the ball movement was predefined. But it's possible to control it manually.


bemfarmer
In fact it's very easy. Really. Very simple mathematics.
>>Turn the points into curves, like a fishing net with square holes?Apply Network command?
Exactly! :)
From: bigseb
10 Feb 2014   [#9]
Not sure if this is helpful but Blender can also do a cloth simulation thing...

http://www.youtube.com/watch?v=2zd1AI198I8
From: Rich_Art
10 Feb 2014   [#10] In reply to [#8]
That is really cool...

Peace,
Rich_Art. ;-)
From: TpwUK
10 Feb 2014   [#11] In reply to [#9]
Hi Sebastian, that's just it, there are plenty of poly modelling apps that do cloth sims, but this is first I have seen of it in NURBS, so unless anyone knows different, this is going to be unique to MoI.

Martin Spencer-Ford
From: bemfarmer
10 Feb 2014   [#12]
Will the user be able to select a "bending stiffness" for the cloth?

Will there be a "Hair" mode ? :-)

- Brian
From: Max Smirnov (SMIRNOV)
10 Feb 2014   [#13] In reply to [#12]
Hi Brian
>>Will the user be able to select a "bending stiffness" for the cloth?
Afraid not. At least not in the first release.
From: Mauro (M-DYNAMICS)
10 Feb 2014   [#14] In reply to [#11]
TpwUK
<<Hi Sebastian, that's just it, there are plenty of poly modelling apps that do cloth sims, but this is first I have seen of it in NURBS, so unless anyone knows different, this is going to be unique to MoI.>>

Agree with you Martin
I understand also Sebastian's point of wiew:he belong to other branch of MOI's users:molders,cnc,3dprinters..for them this stuff could be not necessary

anyway Max that's amazing !! I also saw- Moi3d camera- on your youtube...we have to expect this too??...all for free..?? :) :)
From: wastzzz
10 Feb 2014   [#15]
Can't wait to try it out. Thanks for your contribute! About interface.. Uhm, guess you could type in the name (group) of the colliding objects, that would make it easy
From: Tommy (THOMASHELZLE)
11 Feb 2014   [#16]
Brilliant! :-)
From: Max Smirnov (SMIRNOV)
11 Feb 2014   [#17]
Hello!
Today I've started to making the interface.


I don't know when I'll finish it. I'm very busy at work.
Maybe this weekend.. Maybe later.
From: BurrMan
11 Feb 2014   [#18] In reply to [#17]
Insane Max....... Cant wait to try it!
From: Denis (SPACELAND)
11 Feb 2014   [#19]
Simply amazing, great work.
From: Mike K4ICY (MAJIKMIKE)
12 Feb 2014   [#20]
Holy mother of pearl!

Oh... there are going to be possibilities. ;-)




So! Will there be a 'pause' or 'reverse' of some sort? Would you be able to affect it by a chosen object; like the sphere being moved into it?
And yes, rigidity or tensile viscosity would be a nice touch too, but never mind me, I've been amazed at your result and can't wait to play with the final script.

Show messages:  1-20  21-40  41-60  61-73