CGTalk > Software > Autodesk Maya > Maya Dynamics
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 05-29-2013, 05:55 AM   #1
r4inm4ker
triangle noodle maker
 
r4inm4ker's Avatar
portfolio
Jefri Haryono
Taipei, Taiwan
 
Join Date: Oct 2006
Posts: 369
Preserve overall hair shape using maya Hair/nHair?

Hi all,
is there any efficient way to preserve the look of hair during simulation using Maya hair or nHair?

something like the results of some shots in this cinematic :
http://www.youtube.com/watch?featur...sqpThaFg#t=130s

(Katarina's hairs between 2:10 to 2:30)
__________________
http://www.brainyart.me
 
Old 06-03-2013, 04:03 PM   #2
Duncan
Expert
 
Duncan's Avatar
Duncan Brinsmead
Principal Scientist
Autodesk
Canada
 
Join Date: Jun 2002
Posts: 2,991
The simplest is input attract, but it might not look natural. To get the bend preservation and hold the groom make sure the follicle start directions are set to "start curve base".(rest pose should also be "same as start", or "from curve" if you have rest curves. You need twist resistance in addition to bend resistance. Extra bend links is also very helpful.. particularly for hairs with a high segment count. However make sure the hairs have as few segments as possible. If using pfx output you can use the subsegments to smooth the result(uses a close fitting hermite interpolation). There is a problem with the twist resistance currently in nHair where it becomes degenerate for straight segments... thus the hair is free to twist about straight sections, so if you can avoid any totally straight sections near the base of the hair it will help.

Another technique is to create constraints... both between hairs (component to component... perhaps using max distance) and between the hairs and the head.
 
Old 06-05-2013, 02:53 AM   #3
r4inm4ker
triangle noodle maker
 
r4inm4ker's Avatar
portfolio
Jefri Haryono
Taipei, Taiwan
 
Join Date: Oct 2006
Posts: 369
Thanks for the tips, Duncan!
I'd tried the component constraints before (by selecting output hair cvs), but it took very long time before the creation finished, and it appeared that everytime I pull back the animation time to start frame with output curves displayed on screen, it also took huge amount of time calculating something before being ready to move again. Hiding the curves or not displaying it (turning off curve view) eliminated this problem. Is it an inherent problem with current hair system or there is any setting I missed? Thanks again!
__________________
http://www.brainyart.me
 
Old 06-10-2013, 05:12 PM   #4
Duncan
Expert
 
Duncan's Avatar
Duncan Brinsmead
Principal Scientist
Autodesk
Canada
 
Join Date: Jun 2002
Posts: 2,991
There were some problems with dirty propagation within the dependency graph that made hair with curve output particularly slow. As well the constraint creation script had a method of getting the hair indices from the selected vertices that was VERY slow for a large hair system. (among other problems it indirectly called listHistory per cv which ended up walking the entire set of follicles and curves for each cv) These performance issues have been fixed in Maya2014.

If you need to use an older version I don't know of any workarounds for the constraint creation slowness issue when using selected cvs. (it is hundreds of times faster in 2014) If it was a critical problem you could perhaps copy the file createNConstaint.mel from a 2014 build and put it in your local scripts area. I think it would still work in 2013... but it might need some minor modifications.

However the slowness with curves you can workaround somewhat by using pfx output for previewing and hiding the curves and follicles. (although 2014 will still be faster)
 
Old 06-10-2013, 05:12 PM   #5
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
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 01:59 AM.


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