How do I constrain sth. to an nCloth?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  11 November 2009
How do I constrain sth. to an nCloth?

I've got a constantly deforming nCloth surface in my scene. Now I want to attach a locator to one of it's vertices. I mean it is easy to attach a nCloth vertex to a locator in order to keep the nCloth in its place, but I want it the other way round.

The locator is meant to be the point to attach an emitter, as I found no convincing way of having nParticles emitted from the deforming nCloth geometry.
"I love deadlines. I like the whooshing sound they make as they fly by" - Douglas Adams -
  11 November 2009
Have you tried using a Rivet?

Do a search for the rivet script on highend3d.

Hope that helps,

my amazing tumblr
  11 November 2009
Technically not the best way to do it but you can use Point to Surface Constraint (set to weld, 0 rest length) to pin a cube (or any shape) to a vert on the cloth object, with .0001 mass, high resistance settings to make it semi-rigid, turn Off collisions (although On can make some interesting fx) and basically constrain the object then make it an emitter. Tweaking other parameters such as giving the nParticles collisions with the cloth its emitting from, can give you some cool results..all depends on what youre exactly after.

Rivet will do it fast and easy, but using ncloth you can get some out of the box results that may result in some cool fx

here are 2 quick test - change the 2nd constraints Strength and Tangent Strength back down to 20 or so and itll sim alot faster, but the cube wont rest as tightly on the surface...
or you can change it to Spring and make the cubes mass much larger, to create a dangling object that interacts with the cloth, the constraint and itself all in the same dynamics system... many different things you can do with this method
Attached Files
File Type: zip (8.5 KB, 6 views)
File Type: zip (8.6 KB, 6 views)


Reel -
Filmography -IMDB

*please read-*

Last edited by HowardM : 11 November 2009 at 01:01 AM.
  11 November 2009
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 03:48 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.