CGTalk > Software > Autodesk 3ds max > Plugins & Add-ons
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 03-10-2013, 02:34 PM   #1
savat
Expert
portfolio
salvo triolo
Italy
 
Join Date: Jun 2005
Posts: 327
Send a message via MSN to savat

ThinkingParticles: how to change sc joint type by several inputs?

Hi,
I'm studying TP from few days, tons of head aches...
In my demolition test I would to control sc joint types by several parameters.
The first idea is to transform joints nearest a broken one from fixed to spherical (for a better transition from rigid to collapsed structures).
An espression helper (an if/then cycle) would be a good starting point:

if the "x" joint was connected with a broken joint then changes from type (1) to (0), else remains to type (1).

How can I detect "x" joints?
 
Old 03-10-2013, 06:38 PM   #2
Glacierise
precise defab worker
 
Glacierise's Avatar
portfolio
Hristo Velev
MD/FX artist
Bottleship VFX
Bulgaria
 
Join Date: Aug 2006
Posts: 4,231
You can use a PSearch or PPassAB, its particle output into a joint counter. Then the joint counter - into joint data node, and you can read the properties of the joints from there.
 
Old 03-10-2013, 08:34 PM   #3
J-Bond
Frequenter
portfolio
Igor
Russia
 
Join Date: Jun 2011
Posts: 202
If you want to switch joint types in progress prepare for problems
 
Old 03-11-2013, 12:05 PM   #4
savat
Expert
portfolio
salvo triolo
Italy
 
Join Date: Jun 2005
Posts: 327
Send a message via MSN to savat

thanks for reply,
The image I've linked is what my brain is able to do at this time and I'm not sure that joint counter and joint data are right.
the upper scheme is what I wish to obtain...
Attached Images
File Type: jpg tp_joint.jpg (54.7 KB, 8 views)
 
Old 03-11-2013, 12:39 PM   #5
J-Bond
Frequenter
portfolio
Igor
Russia
 
Join Date: Jun 2011
Posts: 202
Make joint breakable. This work fine for dynamic impacts.
Changing type often can cause a problems in stability.
 
Old 03-11-2013, 04:49 PM   #6
Glacierise
precise defab worker
 
Glacierise's Avatar
portfolio
Hristo Velev
MD/FX artist
Bottleship VFX
Bulgaria
 
Join Date: Aug 2006
Posts: 4,231
You'll get better results if you put the joint center between the two objects, like (pos1-pos2)/2 + pos1
 
Old 03-12-2013, 06:04 PM   #7
savat
Expert
portfolio
salvo triolo
Italy
 
Join Date: Jun 2005
Posts: 327
Send a message via MSN to savat

J-B: I think you are right...complex joint explodes, 4 iteration per frame works fine in "simple" situations (and spring joints are orrible creaturs).

Hristo: TP is a new tool for me. I've spended the last 2 neurons of my brain to understand that I can offset joint positions by the world position input using expressions (as I think you've suggested me ).

However, thanks for your effort...you helped me considerably to improve my TP learning.
 
Old 03-12-2013, 06:08 PM   #8
Glacierise
precise defab worker
 
Glacierise's Avatar
portfolio
Hristo Velev
MD/FX artist
Bottleship VFX
Bulgaria
 
Join Date: Aug 2006
Posts: 4,231
Yeah sorry Glad you figured it out!
 
Old 03-12-2013, 06:08 PM   #9
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
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


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 04:48 PM.


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