Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Dynamics & Special Effects (https://simplymaya.com/forum/forumdisplay.php?f=33)
-   -   ncloth collision problem (https://simplymaya.com/forum/showthread.php?t=29548)

mio 09-04-2008 06:25 AM

ncloth collision problem
 
1 Attachment(s)
Hi I'm working on this for a university project and I'm having trouble with the ncloth passive rigid obejct.

The cloth is sandwiched between two objects back and front. I want both objects to collide with the cloth, but at the moment only the back object is successfully colliding.

I have checked the normals on the front object and the geometry seems to have enough verts for a collision. I have tried turning up the damping.

Does anyone have any more suggestions?

thanks

tweetytunes 09-04-2008 07:06 AM

When I was working on my movie I was having a simular problem but it really comes down to tweaking all the settings.

There was a small problem with ncloth in 8 and 8.5 where a attribute gets locked in ncloth with joints in the scene, and I had to get someone from Autodesk to send me some code. It meant that once the cloth was simulated once it would not perform it probably again if there was bones in the scene. I see from the screen shot that there is so give it a try

Here is the code (I saved this email) #

open the script editor ant type

getAttr -l time1.ihi

hit Enter... if the Result is "0" then the attribute is not locked.. if the result is "1" then type

setAttr -l 0 time1.ihi

to unlock it

hope it helps

mio 09-04-2008 09:07 AM

Quote:

Originally posted by tweetytunes

open the script editor ant type

getAttr -l time1.ihi

hit Enter... if the Result is "0" then the attribute is not locked..


Thanks for your reply. I tried this code in the script editor but it doesn't return anything...does that mean the result is 0?

I'm trying to change various things in the scene i.e. trying the collision objects at different distances from the cloth to see if that is an issue, and just messing with the parameters for the nclothShape to see if anything helps. No joy as yet.

The collisions seem to fail when the obejcts get really close together.

ragecgi 09-04-2008 09:15 AM

Have you tried simply faking it with a non-rendering poly object as the passive in place of your actual geo?

Also, just to make sure, the 2nd object you are trying to make passive, it is polys correct?

Let us know:)

mio 09-04-2008 02:51 PM

I've tried lots of things now including replacing both passive rigids with non-rendered planes (if nothing else, this helped to get a clearer view of what's going on and rule out geometry issues)

It's not perfect yet, but what seems to have helped the most is in the rigidShape attribute box there's an option to display the collsion thickness. By tweaking the collison thickness for each object and moving the objects different distances apart I am finding that the ncloth is now coliding with both rigids.

I think ncloth doesn't much like being squashed between two rigids like this, but hopefully I can make it work now.

Thanks for your posts : )

ragecgi 09-04-2008 07:17 PM

Sweet!

Good to know as I'm "POSSIBLY" starting work on an nCloth SM video this Sat. and during my tests I've noticed that same sort of problem.

I'll email Dunkan B. about it to see if he has anything to help us regarding that:)


All times are GMT. The time now is 07:39 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018