CGTalk > Software > Autodesk Maya > Maya Character Setup
Login register
Thread Closed share thread « Previous Thread | Next Thread »
 
Thread Tools Search this Thread Display Modes
Old 12-27-2012, 12:03 PM   #1
maorlavi
Explorer
portfolio
Maor
TLV, Israel
 
Join Date: Dec 2012
Posts: 12
fixing animated uv's WITHOUT deleting history

Hey, just thought about sharing this, since I was swimming in forums and couldn't find an answer..
I was rigging a character, the face in particular which obviously took a while, and then I noticed that when animating (the geometry) the UV's got all screwed up, probably because when I was UVing I used the automatic mapping (can't think of another reason..)
so I tried deleting history which of cores deleted the rig, then tried deleting only the non-deformer history - which did fix the UV problem, but all the cluster work was destroyed as well - and there was really some complex stuff there.

so the work around was actually quite simple - all you need to do is duplicate the base mesh, delete history and freeze trans. for the DUPLICATED mesh;
then simply warp-deform to the original (screwed animated uv's) one, checking in the options for exclusive bind and auto-weight threshold.
then just hide the original - problem fixed.
 
Old 12-29-2012, 11:46 AM   #2
republicavfx
Expert
 
republicavfx's Avatar
portfolio
Scott Turner
Generalist/ Coordinador Animación 3D, Instituto Arcos
Vina Del Mar, Chile
 
Join Date: Mar 2004
Posts: 650
Might be cleaner to duplicate the mesh, skin it and copy the kin weights from original. Same result but u avoidhaving a deformer and 2 meshes in the scene
__________________
Scott Turner
http://www.republicavfx.com
 
Old 12-29-2012, 05:23 PM   #3
gmask
Obfuscator
 
gmask's Avatar
gmask
Power Sitting
Topanga, USA
 
Join Date: Oct 2002
Posts: 6,937
Quote:
Originally Posted by blade33ru
Might be cleaner to duplicate the mesh, skin it and copy the kin weights from original. Same result but u avoidhaving a deformer and 2 meshes in the scene


well he'd also have to reconnect the clusters etc.. not as easy/obvious..

I think if you look at the DAG in the hypergraph connections you'll see an a copy of the skinned shape labeled Orig. I believe if you replace it with your edited shape with the new UV maps you won't need to copy weights or connections to clusters etc. What you'll want to do is to select the connections from it and break them. Then copy the results of the commands printed in the script editor and then change disconnectAttr to connectAttr and use the name of your new shape instead of the old one. You'll also want to parent the new shape under the transform of the old one and then you can delete the old shape.
__________________
blah blah blah
 
Old 12-30-2012, 07:51 AM   #4
maorlavi
Explorer
portfolio
Maor
TLV, Israel
 
Join Date: Dec 2012
Posts: 12
too complicated connection network

Quote:
Originally Posted by gmask
well he'd also have to reconnect the clusters etc.. not as easy/obvious..

I think if you look at the DAG in the hypergraph connections you'll see an a copy of the skinned shape labeled Orig. I believe if you replace it with your edited shape with the new UV maps you won't need to copy weights or connections to clusters etc. What you'll want to do is to select the connections from it and break them. Then copy the results of the commands printed in the script editor and then change disconnectAttr to connectAttr and use the name of your new shape instead of the old one. You'll also want to parent the new shape under the transform of the old one and then you can delete the old shape.


I admit I didn't go down that road, but by itself - it is a nice approach to it - and thank you for the advice, but the thing is just too complex - it didn't work, and of course you were right before about copying the skin weights - it's impossible: bones, clusters, curves and even geometry effect the mesh, and each have there own weights assigned, on to of blendshapes it just didn't work sadly - but again thank you for the advice.
 
Old 12-30-2012, 10:52 PM   #5
gmask
Obfuscator
 
gmask's Avatar
gmask
Power Sitting
Topanga, USA
 
Join Date: Oct 2002
Posts: 6,937
I think another possible solution is to use the transfer attributes function to copy the UV's to that original shape and then delete history on the shape. I'm certain one of these two things has worked for me in the past
__________________
blah blah blah
 
Old 01-02-2013, 07:47 PM   #6
gmask
Obfuscator
 
gmask's Avatar
gmask
Power Sitting
Topanga, USA
 
Join Date: Oct 2002
Posts: 6,937
BTW I just tested connecting a duplicated mesh with the new UV's and breaking connections from the original shape node and then connecting to the new shape mode with the updated UV's and it worked as I expected.
__________________
blah blah blah
 
Old 01-02-2013, 11:28 PM   #7
maorlavi
Explorer
portfolio
Maor
TLV, Israel
 
Join Date: Dec 2012
Posts: 12
thanks for the digging

I appreciate it,
for some reason - anything that has to do with any kind of history delettion - skrews everything or part of everything.
transfering the UV's is not nescesary - in the bind-pose the UV layout is perfect on the Original mesh - it just gets skrewed when animating it, deleting the history is what freezes those animatable UV's - but the mesh is not just influenced by a simple joint set, it's a whole compound of stuff, joints, clusters, blendShps, influential curves and influential geometry affecting the weights,and having themselfs influ-vertecies: all those mean things that give you perfect lip twists and moves, if it was a simple weight copying - I wouldn't ask twice, deleting history simply destroys some/all (depending on what history is deleted) that work.
gmask - thank you again for your input, I'll be sure to try it under different circumstance, or better yet - pay more attention before any kind of bind...

in any case, since it was only the head - and the shapes are perfectly aligned - the wrap deformer calculates very quickly (RT) and basically - it's just like having one more blendshape. thank again, I'll hopefully be smarter next time..
 
Old 01-03-2013, 12:13 AM   #8
gmask
Obfuscator
 
gmask's Avatar
gmask
Power Sitting
Topanga, USA
 
Join Date: Oct 2002
Posts: 6,937
Quote:
Originally Posted by maorlavi
in any case, since it was only the head - and the shapes are perfectly aligned - the wrap deformer calculates very quickly (RT) and basically - it's just like having one more blendshape. thank again, I'll hopefully be smarter next time..


Well that's fortunate.. I'm still certain the method I'm suggesting would work no matter how many deformers were placed down stream from the original shape.. no history deletion required.
__________________
blah blah blah
 
Old 01-03-2013, 01:04 PM   #9
tobbew
Know-it-All
Torbjörn
Sweden
 
Join Date: Apr 2005
Posts: 434
And it's not just that your uv-projection node is downstreams from the deformers (ie projecting on the already deformed mesh)?
 
Old 01-03-2013, 01:35 PM   #10
maorlavi
Explorer
portfolio
Maor
TLV, Israel
 
Join Date: Dec 2012
Posts: 12
Nope...

Quote:
Originally Posted by tobbew
And it's not just that your uv-projection node is downstreams from the deformers (ie projecting on the already deformed mesh)?


part of the problem is that the part of the chain consists of tweekUV's inbetween all those deformer nodes, if it wasn't, I could just delete all nodes downstream from the skin node and fwd, without any need to duplicate.

the entire thing was a disaster as far as pipeline goes
 
Old 01-03-2013, 06:10 PM   #11
tobbew
Know-it-All
Torbjörn
Sweden
 
Join Date: Apr 2005
Posts: 434
you could try using the node editor or hypergraph and change the order in the chain so the uvs are in the same relative order but before all deformations. (have you tried deleting non deformer history?) otherwise you might also find something interesting in the tutorial on how to keep uvs on animated pfx trees by djx at djx.com.au
 
Old 01-03-2013, 06:17 PM   #12
tobbew
Know-it-All
Torbjörn
Sweden
 
Join Date: Apr 2005
Posts: 434
but that would probably be slower than your wrap deformer. But if you are lucky moving the uv nodes could actually work.
 
Old 01-25-2013, 09:56 PM   #13
mirkoj
c:\>format c:_
portfolio
Mirko Jankovic
Banja Luka, Bosnia and Herzegovina
 
Join Date: Feb 2003
Posts: 751
Send a message via MSN to mirkoj
wait, I;ve bin outside of maya for some time now but.. you can't simply fix or make another UV map or something without deleting whole history and breaking up everything?
could you share couple images of problem and solution as well please?
__________________
www.cgfolio.com

Need some help with rendering an Redshift project?
http://www.gpuoven.com/
 
Old 01-25-2013, 11:11 PM   #14
gmask
Obfuscator
 
gmask's Avatar
gmask
Power Sitting
Topanga, USA
 
Join Date: Oct 2002
Posts: 6,937
Quote:
Originally Posted by mirkoj
wait, I;ve bin outside of maya for some time now but.. you can't simply fix or make another UV map or something without deleting whole history and breaking up everything?
could you share couple images of problem and solution as well please?


It is possible but whenever you edit the UV maps of an object that already has deformers those edits will be added to the construction history after the deformers instead of before them. There is a delete non deformer construction history function but it doesn't always work with complex setups.

It is however possible to put the changed UV map before the deformers as I've explained above.
__________________
blah blah blah
 
Old 02-16-2013, 03:35 AM   #15
NolanSW
No Coffee=Grumpy Rigger
 
NolanSW's Avatar
portfolio
Sean
Character TeeDee
2k Games
USA
 
Join Date: Apr 2003
Posts: 498
I think this tip might help your issue. Pretty simple and cleaver.
http://www.youtube.com/watch?featur...d&v=uzN_5ugDxa8
__________________
===============
snolan.net

 
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 08:51 PM.


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