I am learning so vet very much! As a CFX TD, I was really REALLY excited for the simulation section with Claudia Chung (love her!). There are so many things that I'd like to test on my own like multiple hair systems on one character to mic really thick hair. We sort of did that for Steve ( the red haired man on my demo reel) but his hair is a series of polygons. I want to go crazy with actual hair.
I'm sure I'll edit this post tonight, but I just have to say again how amped I am. I would love to work in dynamic simulation forever and ever!!
~Melissa
Monday, August 6, 2012
Thursday, July 26, 2012
Hair Script - Progress #6 / What ever happened to that hair script?
Is what I'm sure you're wondering.
I'm still working on it, but I ran into a problem that, for the longest time, I had no idea how to solve. I asked for help on CGTalk, but no one ever responded. Here's how far I got on my script before I ran into a titanium wall:
Create a UI (done for testing purposes, but as I add to/delete code, I'll update the UI to reflect these changes)
Duplicate the hair mesh, group it
If the hair is made of polygons, convert them to NURBS, group the NURBS
Get the surface curves
Allow the user to choose which way the hair is growing (if in the U direction, select all U spans and the leading V span. If in the V direction, choose all V spans and the leading U span. The leading span [or "root" as I've been calling it] is the span the hair grows from, and then the hair length follows the "growing" spans.)
That all works, and moving the original polygon hair and/or the updated NURBS hair effects the position of the curves perfectly, meaning, once the hair is rigged, you can animate the hair and the dynamic hair curves will follow. So what's the problem?
If a modeler modeled a characters hair on one side, then mirrored it, the direction of the curves changes. If they deleted the history then I'm SOL ("sadly" out of luck).
Note the image above. Both of the highlighted spans are technically the U spans, but because one was mirrored, U now looks like V and V looks like U. I've been looking for a way to automatically detect if the spans are uniform and heading in the same direction, but I haven't had any luck. Then I figured I'd just go for a dirty solution. I hate it, but I really don't have much of a choice. My solution is to have the user select the pieces of hair where the curves were going in the wrong direction and press a Switch Direction button. It would use the Reverse Surface Direction command, which is pretty self explanatory. In essence, it will switch U and V spans and all will be right with the world.
This is what would have to happen in my Switch Direction proc:
Store the name of the curves, groups, etc. that have been created for this piece of hair
Delete EVERYTHING the script has created for this piece of hair so far
Reverse Surface Direction command
Recreate and restore the names to everything in the proper order
Make sure everything goes to the proper group
I looked in the GMH script that a reader recommended to me and got my hands on it. It's a pretty darn fantastic script and I learned a LOT from it, but it has the same flaw mine currently has. If the user mirrored some of their hair, the script will fail and there is no way to fix it. But I THINK with the steps I outlined above, I can fix the problem. Now that I'm getting a little more comfortable with Python, I think I can use a mix of MEL and Python to do this efficiently.
I think...
I'm open to thoughts and suggestions.
~Melissa
I'm still working on it, but I ran into a problem that, for the longest time, I had no idea how to solve. I asked for help on CGTalk, but no one ever responded. Here's how far I got on my script before I ran into a titanium wall:
Create a UI (done for testing purposes, but as I add to/delete code, I'll update the UI to reflect these changes)
Duplicate the hair mesh, group it
If the hair is made of polygons, convert them to NURBS, group the NURBS
Get the surface curves
Allow the user to choose which way the hair is growing (if in the U direction, select all U spans and the leading V span. If in the V direction, choose all V spans and the leading U span. The leading span [or "root" as I've been calling it] is the span the hair grows from, and then the hair length follows the "growing" spans.)
That all works, and moving the original polygon hair and/or the updated NURBS hair effects the position of the curves perfectly, meaning, once the hair is rigged, you can animate the hair and the dynamic hair curves will follow. So what's the problem?
If a modeler modeled a characters hair on one side, then mirrored it, the direction of the curves changes. If they deleted the history then I'm SOL ("sadly" out of luck).
Note the image above. Both of the highlighted spans are technically the U spans, but because one was mirrored, U now looks like V and V looks like U. I've been looking for a way to automatically detect if the spans are uniform and heading in the same direction, but I haven't had any luck. Then I figured I'd just go for a dirty solution. I hate it, but I really don't have much of a choice. My solution is to have the user select the pieces of hair where the curves were going in the wrong direction and press a Switch Direction button. It would use the Reverse Surface Direction command, which is pretty self explanatory. In essence, it will switch U and V spans and all will be right with the world.
This is what would have to happen in my Switch Direction proc:
Store the name of the curves, groups, etc. that have been created for this piece of hair
Delete EVERYTHING the script has created for this piece of hair so far
Reverse Surface Direction command
Recreate and restore the names to everything in the proper order
Make sure everything goes to the proper group
I looked in the GMH script that a reader recommended to me and got my hands on it. It's a pretty darn fantastic script and I learned a LOT from it, but it has the same flaw mine currently has. If the user mirrored some of their hair, the script will fail and there is no way to fix it. But I THINK with the steps I outlined above, I can fix the problem. Now that I'm getting a little more comfortable with Python, I think I can use a mix of MEL and Python to do this efficiently.
I think...
I'm open to thoughts and suggestions.
~Melissa
Labels:
curves,
Hair Script Progress,
MEL,
Python
SIGGRAPH is a GO! 9 days and counting!
One months salary later and... it's official. I'm going to SIGGRAPH this year! Will anyone else be there? I hope I get to meet some more hair/cloth TDs. I'll be there from Sunday to Thursday and I plan to do as much as I can while I'm there. I'm ridiculously excited! I'm almost ready to go. I just need to make sure everything on my list is checked off.
I'm cutting it pretty close with some of those things, but my schedule has been beyond intense these past few months so my progress with this has been slow. Oh well. I'll get it done.
~Melissa
- Finish new demo reel and upload it
- Print business cards
Update Resume- Create a few self playing DVD's with my demo reel/other information in case someone wants it
- Buy clothes that fit (yeah, I kinda lost 120lbs and my clothes situation is pretty crazy)
- Print out everything I need for the flight, hotel and SIGGRAPH
- Pack
- Contact some studios/companies before hand and setting up an interview (done to a small extent)
- Make sure my $$$ is in order
I'm cutting it pretty close with some of those things, but my schedule has been beyond intense these past few months so my progress with this has been slow. Oh well. I'll get it done.
~Melissa
Monday, July 23, 2012
Reposting: Brave New Hair
http://www.fxguide.com/featured/brave-new-hair/
If you're interested in hair simulation at all, I'm begging you to read this article. But be aware, there are one or two small SPOILERS.
I was very inspired (and intimidated) by this article. There's so much I have to learn and getting a job where people know this much would be amazing and terrifying. Well, that's the fun of it all, isn't it?
~Melissa
If you're interested in hair simulation at all, I'm begging you to read this article. But be aware, there are one or two small SPOILERS.
I was very inspired (and intimidated) by this article. There's so much I have to learn and getting a job where people know this much would be amazing and terrifying. Well, that's the fun of it all, isn't it?
~Melissa
Thursday, July 5, 2012
Cloth tutorial - Cloth Attributes Explained
nCloth Attributes Explained
http://www.joelstutz.com/nCloth.html
I think this document was created by a man named Joel Stutz, but I'm not sure. If I'm wrong, please let me know and I'll make any necessary corrections to this post.
He created a document that explains what 95% of the nCloth attributes are and what they do. If you're an nCloth novice, or if Maya's help docs are confusing to you, I highly implore you to read it.
~Melissa
http://www.joelstutz.com/nCloth.html
I think this document was created by a man named Joel Stutz, but I'm not sure. If I'm wrong, please let me know and I'll make any necessary corrections to this post.
He created a document that explains what 95% of the nCloth attributes are and what they do. If you're an nCloth novice, or if Maya's help docs are confusing to you, I highly implore you to read it.
~Melissa
Sunday, June 24, 2012
REBLOG: 076: Hair and Cloth Simulation (Pixar Visit #3)
076: Hair and Cloth Simulation (Pixar Visit #3)
For all you hair and cloth lovers out there, you should really give this podcast episode a listen! Good stuff!
~Melissa
For all you hair and cloth lovers out there, you should really give this podcast episode a listen! Good stuff!
~Melissa
Wednesday, April 25, 2012
Hair Script - Progress #5 / What a glitch
I started testing my script on modeled hair instead of polygon planes and I ran into three glitches.
Glitch 1 - Happens if the modeler modeled hair for one half of the body then mirrored it to the other half. When I create and duplicate my curves, it will duplicate the U spans on one side, but the V spans on the other. I "think" I can fix this glitch by rebuilding all of my NURB surfaces once they've been created. I didn't want to do this because it's messy, but I'll just do some "create grouping" and hopefully no one will notice...
Glitch 2 - Happens if the modeler has combined all of the small hair meshes into one super mesh. The script still works, I think it'll make rigging the original hair a lot harder.
Glitch 3 - Happens when the modeler has groups in groups. My script works by selecting one hair group instead of marquee selecting all of the hair. So if you select one top group, my script will end up duplicating the groups IN that group then when a for loop get to that transform node, the entire script will stop working. Ugh, what a mess.
~Melissa
Glitch 1 - Happens if the modeler modeled hair for one half of the body then mirrored it to the other half. When I create and duplicate my curves, it will duplicate the U spans on one side, but the V spans on the other. I "think" I can fix this glitch by rebuilding all of my NURB surfaces once they've been created. I didn't want to do this because it's messy, but I'll just do some "create grouping" and hopefully no one will notice...
Glitch 2 - Happens if the modeler has combined all of the small hair meshes into one super mesh. The script still works, I think it'll make rigging the original hair a lot harder.
Glitch 3 - Happens when the modeler has groups in groups. My script works by selecting one hair group instead of marquee selecting all of the hair. So if you select one top group, my script will end up duplicating the groups IN that group then when a for loop get to that transform node, the entire script will stop working. Ugh, what a mess.
~Melissa
Labels:
MEL
Monday, April 23, 2012
Hair Script - Progress #4 / Maya Fluid Explosions!
Remember that nuke explosion that I talk about once every 6 months? I'm STILL working on it lol. I got a little side tracked with ground explosions. I'm learning about shaping my fluids with multiple emitters and volume axis fields. I'm also learning about lighting my fluids and rendering them out in separate passes. Fun stuff. I'm still inexperienced when it comes to texturing fluids, so if anyone out there has any good tips/resources they'd like to share, I'm all ears!
Anyway, my hair script!
Progress! The polygons to nurbs feature works better than I could have hoped for. I had to completely destroy and rearrange 50% of what I had to get it to work, but it works! Of course, if you could nest procedures in MEL, I wouldn't have had any problems. (Another reason for me to start working with Python). My curve duplication is well on it's way to working too. I'm just trying to figure out the best way to name my curves. I know I don't HAVE to, but I think it looks bad to have duplicatedCurve40388 in your scene, even if the user will never see it.
The next thing I have to worry about is grouping everything so the user isn't left with a messy scene, but that's not going to be too bad.
I don't know what I want to tackle once I get the curve creation thing to work. I could create the paint effects hair, or rig the hair. Rigging will be harder, and it's about 60% of the entire script so I might tackle that first and get it out of the way.
Progress - ????% I don't even know anymore.
~Melissa
Anyway, my hair script!
Progress! The polygons to nurbs feature works better than I could have hoped for. I had to completely destroy and rearrange 50% of what I had to get it to work, but it works! Of course, if you could nest procedures in MEL, I wouldn't have had any problems. (Another reason for me to start working with Python). My curve duplication is well on it's way to working too. I'm just trying to figure out the best way to name my curves. I know I don't HAVE to, but I think it looks bad to have duplicatedCurve40388 in your scene, even if the user will never see it.
The next thing I have to worry about is grouping everything so the user isn't left with a messy scene, but that's not going to be too bad.
I don't know what I want to tackle once I get the curve creation thing to work. I could create the paint effects hair, or rig the hair. Rigging will be harder, and it's about 60% of the entire script so I might tackle that first and get it out of the way.
Progress - ????% I don't even know anymore.
~Melissa
Labels:
Maya Fluids,
MEL
Saturday, April 14, 2012
nHair demonstration! What's new in Maya 2013?
New Features in Maya 2013 - Check out the original site!!
I'm geeking out over the nHair demonstration in this video! Features I love already:
- Adjusting the thickness of hair strands.
- I'm hoping that attributes are paintable here like they are with other nObjects.
- Collision. The hair looks like it reacts to itself better (and faster) and we'll be able to set up complex collision objects instead of being confined to the HORRIBLE collision spheres and cubes that just don't work well at all.
- It's ability to interact with other nObjects like nCloth and nParticles.
- CONSTRAINTS THAT DON'T SUCK!!!
I hope that in the future we'll get to see tools (brush, combs [scissors? Please???]) that will aid in the styling process. But I'm really happy with the people at Autodesk right now. Really, really happy. Seriously. I'm the happiest girl in the world right now. I can't wait to get my hands on this.
~Melissa
Labels:
nHair
C++
I have a dream. A dream of being fluent in MEL, Python, Perl, C++ and LINUX/UNIX shell scripting. I love programming. I really, really REALLY, REALLY do. I just wish I were better at it. I can scrape along, ask the right questions when I'm stuck, but there's so much more for me to learn.
I want to know more. I want to be better. I've decided to take a Fundamentals of Unix/Linux class as well as a C++ class this summer, but I started studying early. I've learned a lot already. There are still things I struggle with, but I know I'll get the hang of it. I hope. MEL, Python now C++. Let's hope my brain doesn't mix these all up.
~Melissa
I want to know more. I want to be better. I've decided to take a Fundamentals of Unix/Linux class as well as a C++ class this summer, but I started studying early. I've learned a lot already. There are still things I struggle with, but I know I'll get the hang of it. I hope. MEL, Python now C++. Let's hope my brain doesn't mix these all up.
~Melissa
Subscribe to:
Posts (Atom)