CGTalk > Software > Maxon Cinema 4D
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 02-18-2013, 07:23 PM   #1
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Constraining an object to a rig

Sorry to post this one--theres a ton of threads like this, and several ways to do it, but looking to find the best solution.

I have a small object that is free-floating which eventually lands on a particular spot on a rigged object. Its not a character---its a sort of complex protein (medical stuff).

Once the object lands on the larger object, I want that object to stick to its surface, so as the larger object bends and changes shape (via its joints) it will move accordingly.

Basic stuff, but still giving me a headache..

Here are the options I'm aware of.
I could:

A. Just drop the small object as a child beneath the particular joint that will move it.

B. Use a constraint tag. Theres a clamp function that allows me to choose surface or point, but not getting good results.

C. I usually use the point node in xpresso for things like this, but that doesnt handle rotation, just position. I can sometimes update rotation using the point normal port linked to HPB of the small object but not exact enough.

D. Polygon node? not working for me.

E. Could just make a poly selection and use matrix or cloner object to lock a clone to it.

F. One of the deformers?

Whats the best way to go?
THANKS
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-18-2013, 07:57 PM   #2
ernia
Mad Knight
 
ernia's Avatar
portfolio
Arik Thuesen
USA
 
Join Date: Jan 2005
Posts: 1,050
I would use the spring constraint, Joel. Just animated the strength up when you want it to "stick" to the surface.
__________________
C4D R14.034 Studio/MacPro/8gbRAM/Snow Leopard 10.6.8
"Yeah, it could be anything, but it's got to be something!"
 
Old 02-18-2013, 08:14 PM   #3
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Thanks for the suggestion ernia.

I havent looked at the spring mode (not for a while at least).
My only question would be how to lock to a particular point so it adheres to the surface normal as well.

I just did this test using a matrix object locked to a poly selection of a deformed object. Then using a single clone to lock to that matrix object. Only awkward part is animating the clone.

https://dl.dropbox.com/u/19000888/constrain_mograph.mov

Will look again at the constraints now...
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-18-2013, 09:52 PM   #4
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Using Clamp constraint utilizing a poly selection and setting that to surface mode works...however, there is quite a bit of lag. The object isn't locked to the poly/normal direction.

"Align": is set to "Normal" and use normals and lock position are checked.

Tried adjusting the tag's priorities and placed the object low on the OM list.
Also tried point caching the rigged object.

Still getting lag.

The mograph method seems to be working best so far.
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-18-2013, 10:20 PM   #5
tcastudios
Steady now!
 
tcastudios's Avatar
...
Sweden
 
Join Date: Jan 2003
Posts: 4,246
Pumping out a dozen mograph clips on a daily basis,
many of the C4D tools are the base of most of them, sadly
90% of the work can not trust the broken priority options
of many of the native tools, constrains being one of the worst offenders.

The sooner you can take a few weeks getting into basic scripting/expressions,
getting control of basic animation functions, the better.

Cheers
Lennart
__________________
MSA | OSX | xfiles ...Cinema4D Tools
 
Old 02-19-2013, 12:41 AM   #6
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Thanks Lennart. Good advice.

And good to know there are issues there and its not all me.
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-19-2013, 05:59 AM   #7
olirgpin
PRO
 
olirgpin's Avatar
portfolio
1berto Rodrigues
Animadon and CG director
Petit Fabrik
Manaus, Brazil
 
Join Date: Aug 2008
Posts: 111
SURFACE deformer may work, depending on he mesh it lands upon.
__________________
1berto Rodrigues
www.petitfabrik.com
 
Old 02-19-2013, 02:42 PM   #8
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Thanks olrgpin

I was going to try the surface deformer too. There are some issues with that one that make it not the best choice for what I need to do, but will try anyway.
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-19-2013, 02:58 PM   #9
Horganovski
Freelance Animator/Rigger
 
Horganovski's Avatar
portfolio
Brian Horgan
Graphite9
Dublin, Ireland
 
Join Date: Apr 2007
Posts: 4,871
One other option is the CD Nail constraint in the CD Constraints plugin. I use it for things like attaching face sculptor control objects to a morphing face and that kind of thing when face rigging (similar to how people use Follicle nodes in Maya, my 'Lowman4D' face rig uses several of them). I find it works pretty consistently even if the mesh it's attaching to is deforming. The native Clamp constraint should work too, but it's not as easy to work with in my experience (the CD Nail has attach/release buttons and the object doesn't even have to be directly on a surface to be nailed to it) and was buggy up to R14 (it would act weird with rotation as you mentioned).

Cheers,
Brian
 
Old 02-19-2013, 03:08 PM   #10
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Thanks Brian

I dont have cactus dans tools. I dont do much character work. If I did, it seems like I'd need to purchase it--as I've noticed many here find it a better alternative to the native character tools.

As mentioned above, I have tried the clamp mode, but I get lag and the object isnt perfectly "nailed" to the surface.

Appreciate the input.
-Joel
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-19-2013, 03:43 PM   #11
Horganovski
Freelance Animator/Rigger
 
Horganovski's Avatar
portfolio
Brian Horgan
Graphite9
Dublin, Ireland
 
Join Date: Apr 2007
Posts: 4,871
Yeah, that's the thing with the native stuff sometimes, it can be tricky to get the priority right, this is compounded by the fact that we don't have priority control access to lots of the deformers and effectors in Cinema. I've requested that we get more control, hopefully in a future version.

Re CD constraints, it has many uses outside character stuff, for me it's well worth the $50, it's paid for itself many times over even in just time saved and bugs avoided .

Cheers,
Brian
 
Old 02-19-2013, 08:35 PM   #12
demafleez
Frequenter
 
demafleez's Avatar
fleezinator
USA
 
Join Date: Mar 2005
Posts: 123
what if you added a 'phantom' joint to the chain that's unseen by the weight tag and PSR constrain to that?

https://vimeo.com/60024859
 
Old 02-19-2013, 08:53 PM   #13
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Thats a good idea! Thanks for that. Will give it s shot. And for the record--the object I used in my example was vastly simplified. Its pretty complex and the several sticking objects needs to lodge into a specific grooves and stay locked.

Nonetheless, your idea should work.
Attached Images
File Type: jpg Screen Shot 2013-02-19 at 3.54.25 PM.jpg (70.7 KB, 22 views)
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Old 02-19-2013, 09:30 PM   #14
AdamT
oh ... what?
 
AdamT's Avatar
Adam Trachtenberg
Modeler, Animator, Attorney
3D Anvil
Miami, USA
 
Join Date: Jun 2002
Posts: 10,509
Have you tried the parent constraint? Seems to me you should be able to animate the object into position and then turn on the parent constraint (constraining to the appropriate joint).
 
Old 02-19-2013, 09:40 PM   #15
JoelDubin
Lard of the pots
portfolio
Joel Dubin
Creative Director
MadMicrobe
United%2BStates
 
Join Date: Aug 2002
Posts: 6,568
Quote:
Originally Posted by AdamT
Have you tried the parent constraint? Seems to me you should be able to animate the object into position and then turn on the parent constraint (constraining to the appropriate joint).



Hi Adam--thanks

I did try that--I dont remeber exactly what the outcome was---maybe will try again.

I need the connecting object to lock to a specific spot on the mesh. (actually, many such objects at different locations)

As mentioned above--I've used the point node to do this but rotation becomes an issue.
I've used the clamp constraint using a poly or point selection but I get lag and incorrect rotation. Mograph seems to work well.

demafleez suggests adding joints into the rig that are there solely for the purpose of being there for the object)s) to bind to. I have yet to try this.
__________________
_____________________________

MadMicrobe
MadMograph (blog)
Behance
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

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


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