djx
I've posted a scene that contains an example of using velocityPP to control the strength of an nCloth matching mesh constraint. I've been using this setup to make cloth follow a skinned mesh when it moves at high speeds, blending back to the cloth dynamics as it slows down. I've had better results with this method than trying to do the same thing with inputMeshAttract.

This is a technique that may be of interest to others, but my (selfish) reason for posting here is that it also illustrates a difference between the way the soup point node appears to be working in the latest 2012_09_16 soup release, compared to the 2012_07_15 release. (My tests are all on win x64 maya 2013sp1)

http://www.djx.com.au/SOuP/pointNode_changesExample01.zip

I found that the point node in this setup will not compute if I do not connect its outGeometry to some other node. So if you graph the point node you'll notice a connected mesh called "pointNodeOutGeometry_do_not_deleteShape".

Ok, so the difference between the two releases is that in the latest version that mesh node must be visible in the scene. If not the pointNode fails to compute. In the previous release this mesh can be hidden.

@ Peter: Obviously this is no show stopper, but I'd prefer to be able to hide that dummy mesh. Is there some other way to make the point node evaluate other than connecting something to outGeometry? Or can you work out what has changed between releases?

thanks
David
Reply 0 0
JeremyR
IN previous versions when this was necessary I would just connect the displayComponent to the outGeo of the point node. This could be easily hid away by turning off the components as well as display some info if required.
Reply 0 0
SGIFreak
Interesting method. Soup makes many things possible
Reply 0 0
pshipkov
Oh, i finally got what you meant about the point node.
Yes, it has to be like that. It was like that originally but i changed it not to require outgeometry connection at some point later. This led to instabilities, because i am pushing the sysytem a bit with this node. People reported crashes and recently i had to revert to the original design. I think it is a good tradeoff stability on the expense of one additional connection. You can tweak the display overrides of the dummy geo so it does not bother you visually.
And if you can talk to developers to open up the scripting engine in the api :)
Reply 0 0
pshipkov
Very nice example you got there. I think more people should know about it.
Reply 0 0
djx
@Jeremy, Thanks for the suggestion. I had not thought of using displayComponents before now. That works well and, like you say, I can even use it to display component info.

@Peter, thanks for the explanation. Makes sense. We did have a SOuP discussion with some devs a while back after one of those future tech presentations. They said they were "already working closely with you", or something like that.

cheers
David
Reply 0 0
firas3d
@djx and @Peter, thanks a million.
behance.net/firas3d
Reply 0 0
Kornelius
Forgive my curiosity (and ignorance), but why do you want the nCloth to match the inputmesh when the speed increases?
Is because of simulation issues at high velocity?
I was just using your setup to work with a collision constraint and this question just came in my mind.
win 7 maya 2014 x64
Reply 0 0
JeremyR
@Kornelius Yes, instead of increasing substeps to control wayward point velocities  this method uses input mesh but only on points with high velocity as you have already noted. I assume the sim times are faster than upping the substeps - nice idea.
Reply 0 0
djx
Yep, pretty much what Jeremy said. In my case it was not just about the speed of the sim. I had a situation where the character would go from slow and floaty to fast and erratic. It was difficult trying to key a whole bunch of attributes to keep the cloth behaving correctly throughout. The solution was to drive these attributes with the point velocity. A lot of the time the simplest thing to do was to raise the matching mesh constraint strength during fast movement (the matching mesh being a skinned fk/ik version of the clothing).

I have to say, the example I posted here does not really calculate speed very well at all, since the expression in the point node just averages the speed along each axis. I'll post a better example when I have some time, where the output of the velocity node connects to the normal in of the point node and the expression is:

float $V[3] = {$NX, $NY, $NZ};
$W=sqrt(dotProduct($V, $V, 0));

David
Reply 0 0
Kornelius
Ok, great! now I got it. Thank you very much for the explanation guys!!
win 7 maya 2014 x64
Reply 0 0
noizfactory
Thanks for sharing this neat technique!
Reply 0 0
Reply