PDA

View Full Version : Metallic Railing using nCloth


Mydrako
03-28-2007, 08:38 AM
Hey,
i have being trying to simulate a metal railing being hit by something and bending by the impact using nCloth. But I cant get the right behaviour and have some problem

First of all, I try making cylindrical bars using poly cylinder as a nCloth object but it doesnt really bend like a metal. Some part of the mesh interpenetrate . I guess it is due to the fact that within each circle there are no links. Any suggestion on it?

Another way I can think of is using a rectangular nCloth block that roughly cover the shape of the bars and use it as a influence object. Is this possible?

The other problem is the behaviour. Any one know how to make nCLoth behave like metal?

Thanks in advance...

Als
03-28-2007, 08:08 PM
What kind of object is bending the metal?
Can you post an image?

Set compression, strech and bend to at least 200.

To get metal to sort of go back to it's position, or how strong deformation can be, try something like this. This is like goal to original in soft bodies...
setAttr "nClothShape2.inputMeshAttract" 0.82644;
setAttr "nClothShape2.inputAttractDamp" 0.92562;
To dumpen the blow, and stop interpenetration, but higher value on collision Dump, and dump, for example like so:

setAttr "nClothShape2.damp" 3;
setAttr "nClothShape2.collisionDamp" 3;

Or higher...


Remember harder material should have higher mass. Also this ratio is gonna give you more or less denting...
Plus add a bit of rigidity since it's metal, and deform resistance...

Mass is always distributed per points, so where is mesh higher density, that's where it will bend more, or hit stronger.
Be sure to add enough subdivisions so that you can get result, but ONLY where it's needed.

All the numbers are hard to give, and depend on scale of your scene, speed of impact, but I think lot's of it from the mass, and number of points.
Both ncloth have to be active, but with paint, paint, paint... You can do prety nice control with painting attributes for cloth... and make the mass even this way...
Select ncloth object, right mouse button, select paint, and then what ever you need to paint.

Please find atached example, but rough, etc. but it can get you some ideas...

Hope this helps...


Als

Mydrako
03-29-2007, 04:53 AM
Thanks alot for ur reply. ur rough simulation look good already.

I am bending railings u see on bridges... Imagine a grid... but all metal bars...

In the end, I cant use nCloth because other members of my group (sch project :P) are not using 8.5 and of cos a lack of time, and so in the end, I will be just using a lattice deformer to deform the railings and use skinned lattice to deform it by hand.

Thanks for your suggestion.. I might try it when I got the time.. Anyway.. keep more suggestions coming in.

CGTalk Moderation
03-29-2007, 04:53 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.