Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Storing an nCache

From: Creating Fur in Maya

Video: Storing an nCache

If our animation looks good then we can go ahead and render it, but there are a couple of things we need to do first. First of all the simulation is not fully in motion on frame one of the time line, it's all ready kind of standing straight up on frame one. Before we can render a dynamic simulation there's a couple things that we want to do. First of all we don't have an initial state to the simulation, it's in a kind of neutral state on frame one. And what I'd like to have is the grass fully in motion on frame one.

Storing an nCache

If our animation looks good then we can go ahead and render it, but there are a couple of things we need to do first. First of all the simulation is not fully in motion on frame one of the time line, it's all ready kind of standing straight up on frame one. Before we can render a dynamic simulation there's a couple things that we want to do. First of all we don't have an initial state to the simulation, it's in a kind of neutral state on frame one. And what I'd like to have is the grass fully in motion on frame one.

And to do that, we'll need to set an initial state. And this is similar to what you would do in other dynamic areas of Maya such as Ncloth or Particles. However, the process is kind of a lot different and kind of more complicated. What we need to do is we need to consider the nHairs start curves and rest curves. You can't see it here but there's multiple curve systems under the hood. And right now we don't have any conditions for the start curves or the rest curves.

And we need to define both of those. If we only define the start curves then we would never be able to get back to this neutral position. So we need to set the rest curves first. And to do that we need to select all the curves. So we can do that by just clicking and selecting on that group node in the outliner. Then go into the nHair menu and choose Set rest position from current and that means that the neutral state or the rest position is what we see currently.

And again, we needed to do that in case we ever want to get back to this neutral state. Okay. So, now, we can set the Start curves. We can play the simulation through for a few seconds until it's fully in motion that play until about frame 40 or 50 or so. Then, we need to reselect the output curves, because my add dropped us into selecting the follicles, for some reason. So we want to select those output curves. Go back into the nHair menu. And choose Set Start Position from Current, and then when we rewind we don't see any change because frame one has assumed the position of the curves on that frame we were on previously.

So now when we play, it's in motion on frame one. Alright, excellent. And if we ever need to get back to that neutral state we can select the curves and go back in the nHair menu, and choose Set start position from rest, and that would take it back to whatever the rest curve position was. I'm not going to do it this time because we have what we want now. Now the other thing that we need to do is to create an end cache. A cache is basically the simulation stored on disc and we need to do this for numerous reasons.

Most importantly if we fail to create an end cache then it's possible that the simulation might playback differently. During render time, or it might even break completely. Nucleus is quite robust and so the probability of that happening is pretty low. However, we don't want to take any chances. Additionally, if we don't cache the simulation, then our render times are going to be incredibly long because MAYA has to calculate the simulation on every single frame of the batch render.

And it additionally has to calculate all the frames up to the current frame of the Batch Render. Meaning that the render times on each subsequent frame will get longer and longer, and longer. And Maya's actually calculating the same simulation over and over, and over again on every frame. And that's obvious a huge waste of resources of time. so we need to create and end cache. To do that, I want to actually save a new version of my scene file. Because if I did the end cache currently with this scene file name then when you actually try to create the cache, you'll get an error saying that it already exists, so I'm going to actually save my scene out to a new file name.

And you don't need to do this and you actually shouldn't do this, but I have to do it. So I'm going to do File > Save scene as, and I'm going to call this one storing an end cache finished. Again I'm doing this, so that when you do this process, you won't get an error message saying that the cache already exists. Okay, so I've stored my scene file and now I want to create the cache, so this time I actually have to select the hair system not the curves and then going to be nCache menu and choose create new cache Options.

And by default, it's going to do the entire time slider. And I've got 240 frames in my timeline. And you'll see that it's going to store these cache files in a folder called cache in cache and then the scene file name. And that's all of course in the current project. And I'll go ahead and click create and that cache gets calculated. Okay our nCache is finished and now in fact we can actually scrub through the timeline. Which is something that we couldn't do before. And if we play it, it plays back at about the same rate, but that's just because it's loading a lot of information off the disk.

If it were a really lightweight simulation we might actually get real time playback from it. But that's the process of creating an nCache for an nHair system. And this scene is now ready to render. And that's how we can create dynamic fur using nHair. We've really only scratched the surface here. You could attach hair to an animated character and use that to draw fur as well.

Show transcript

This video is part of

Image for Creating Fur in Maya
Creating Fur in Maya

26 video lessons · 1898 viewers

Aaron F. Ross
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating Fur in Maya.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.