mbattcock
Is there anyway using SOUP to control pressure on nCloth, either pre-vertex and with bounding objects or with a texture?

I assume that pressure is applied along the normals so I was wondering if I could use a point node to scale the normals around a bounding object thus affecting the pressure...?
pshipkov
I don't think this is exposed outside the solver.
Reply 0 0
mbattcock
Ok, and my idea of scaling the normals wouldn't work? Or I guess the solver would normalise the normals first so maybe it wouldn't have any effect.. unless they were scaled to 0? (just thinking out loud)
Reply 0 0
plarson
From what I've seen, adjusting the normals of the nCloth input mesh has no effect. The normals could be adjusted with an attributeTransfer or in a Point node's Normal tab tho.

Are you trying to give the appearance of just part of a mesh inflating? I've gotten something like that using the pointCloudField. With positions from the cloth's vertices, and direction from its normals. Then the PCF's magnitudePP from a bounding>attributeTransfer's weight. And the field applied back to the cloth.
Reply 0 0
mbattcock
Exactly, I want to control which areas of the cloth have pressure (since we don't have a texture map attribute for this). I think I understand your setup, so are you bypassing pressure entirely and making it yourself? Do you get the same result? Do you have an example scene I could look at?
Thanks
Reply 0 0
plarson
It pushes the cloth in the normal direction from each vertex on the cloth mesh. Here's a scene ( ma pointCloudField_nCloth_inflate_1.0.ma      )
Reply 0 0
mbattcock
Thank you very much, that's a clever trick!
Reply 0 0
scorpes
Is this controllable with a texture or vertex map as well?

Reply 0 0
scorpes
Got it :)
Reply 0 0
aley
Also you could use a vertex map or texture map in the the deformabilty
Reply 0 0
scorpes
I like the way how the pointCloudField_nCloth_inflate_1.0.ma scene of plars works, simple tests are awesome and I have texture controll but the problem I have if I put it on a highres mesh it becomes really really slow :-/
Reply 0 0
pshipkov
nCloth does not provide "pressure weight map" which prevents us from taking shortcuts and have to go for a brute-force approach.
Reply 0 0
Reply