Geometry caches only store the XYZ positions of an object’s vertices, not the translation, rotation, or scale of the object’s Transform node.
Create or import geometry caches
You can create single or multiple geometry caches for your objects, each of which can be comprised of a single frame, multiple frames, or a range of frames. If you create more than one geometry cache for an object, you can then blend its caches to create various deformation effects. See Blend and set the weighting of geometry caches.
In addition to creating new geometry caches, you can also import geometry caches that you have previously created. Importing geometry caches, even ones already used in your scene, will not override or replace any existing cache data attached to your objects.
To create a new geometry cache
Your objects’ deformations are cached using the Create Geometry Cache Options window’s current settings. See Geometry Cache > Create New Cache.
Single or multiple .mc files and an .xml description file are generated and placed in the file directory you specified in the Add New Geometry Cache Options window, cacheFile nodes (named objectShape#Cache# by default) are added to your objects, and all your objects’ current geometry cache nodes are disabled so that you can see only the new cache on playback.
When a One File or One File per Geometry cache exceeds the 2GB geometry cache size limit, it is automatically split and the resulting cache segments are blended.
If you selected a single object, the following files are created:
File Distribution | # of Maya cache files created | # of XML description files created | # of geometry cache nodes created |
---|---|---|---|
One File |
1 |
1 |
1 |
One File Per Frame |
Multiple, 1 for each frame |
1 |
1 |
If you selected multiple objects, the following files are created:
The Import file browser window appears. See Geometry Cache > Import Cache.
A new cacheFile node is created for the imported geometry cache and is automatically attached to the selected object’s cacheBlend node. This allows you to combine the imported cache with any of the selected object’s existing caches.
The name of the selected geometry cache node, and its corresponding cache clip, change to the name you typed in the cacheFile field.
You can replace an entire geometry cache file, or you can strategically replace individual cache frames in a geometry cache file. For example, you can improve an object’s cached deformations by remodeling parts of the object at specific frames and replacing those frames in its geometry cache file.
A cache is created for the selected object, replacing its current cache at the time range specified in the Replace Geometry Cache Options window. See Geometry Cache > Replace Cache.
To replace geometry cache frames
A cache is created for the frame or range of frames specified in the Replace Geometry Cache Frames Options window, replacing your object’s current cache at the specified time range, and backups of the original unchanged cache and description files are generated (named backup#_originalCacheName by default).
Undoing a replace geometry cache frames operation
When you replace geometry cache frames, backup files of the original cache data are automatically generated and named by prefixing the original cache file names with backup_, backup1_ and so on.
To undo a Replace Geometry Cache Frames operation
For example, to undo a Replace Geometry Cache Frames operation on a geometry cache named Ball, you would rename its backup_Ball.xml and backup_Ball.mc backup files to Ball.xml and Ball.mc.
When you replace geometry cache frames on a One File Per Frame cache, only the frames that are replaced are backed up. To undo a Replace Geometry Cache Frames operation on a One File Per Frame cache, the backup frame files that were generated need to be renamed to the original frame file names. For example, to undo a Replace Geometry Cache Frames operation on the geometry One File Per Frame caches named BallFrame1, BallFrame2, and BallFrame3, you would rename their backup_Ball.xml file to Ball.xml, and the replaced frame backup files backup_BallFrame1.mc, backup_BallFrame2.mc, and backup_BallFrame3.mc to BallFrame1.mc, BallFrame2.mc, and BallFrame3.mc.
A geometry cache is created for the frame or range of frames specified in the Append to Geometry Cache Options window and is added or appended to the enabled cache.
If the appended cache frames overlap in time with the enabled geometry cache, then they are automatically blended with that cache. However, if there is a gap in time between the enabled geometry cache and the appended cache frames, then the gap is linearly interpolated and no cache data for the gap is saved to the appended cache.
To detach all geometry cache files
The Delete Geometry Cache Options window appears. See Geometry Cache > Delete Cache.
All the selected object’s geometry cache nodes and clips are deleted and their corresponding cache files on disk are detached from the object.
To detach single or multiple geometry cache files
The Delete Geometry Cache Options window appears. See Geometry Cache > Delete Cache.
The selected geometry caches’ nodes and clips are deleted and their associated cache files on disk are detached from their object.
Enable or disable geometry caches
To enable or disable all of an object’s geometry caches
All your current object’s active geometry cache nodes and cache clips become inactive and are now not used by their object on playback.
All your current object’s inactive geometry cache nodes and cache clips become active and are now used by their object on playback.
To enable or disable individual geometry caches
The geometry cache node and its corresponding cache clip become active and are now used by their object on playback.
The geometry cache node and its corresponding cache clip become inactive and are now not used by their object on playback.
All of your object’s geometry cache nodes and corresponding cache clips are deleted. Whether or not your object’s geometry cache files on disk are also deleted depends on your current Delete Geometry Cache Options window settings. See Geometry Cache > Delete Cache.
To delete geometry cache frames
The frame or range of frames specified in the Delete Geometry Cache Frames Options window are deleted from your object’s geometry cache. The gap in your geometry cache resulting from the deletion of frames is interpolated linearly.
You can merge your geometry caches to bake them into a single cache. The caches you want to merge can be positioned sequentially or non-sequentially in time.
If the caches you want to merge overlap in time, the regions of the caches that overlap are blended according to their current Input Weight settings and any of their weight maps.
If the caches you want to merge aren’t overlapping, but have gaps between them, then the gaps are linearly interpolated and no cache data for those gaps is saved to the merged cache. For example, you have three caches that you want to merge: cache 1 (frames 15-25), cache 2 (frames 25-35), and cache 3 (frames 40-50). When you merge these caches, the length of the resulting merged cache will be frames 15-50, but frames 36-39 will contain no cache data.
The Merge Geometry Cache Options window appears. See Geometry Cache > Merge Caches.
All your object’s enabled caches merge according to the settings in the Merge Geometry Cache Options window, creating a new geometry cache node, cache file, and XML description file. See Geometry Cache > Merge Caches.
The geometry caches you merged are disabled and their corresponding cache files on disk are not overridden or deleted.
Blend and set the weighting of geometry caches
If an object has more than one geometry cache attached to it, then a cacheBlend node is automatically created to define and manage the weighting of the object’s multiple geometry caches. See cacheBlend.
When geometry caches overlap in time, their overlapping cache regions are automatically blended together using the caches’ current Input Weight values on their cacheBlend nodes.
Also, cache weights are normalized between overlapping caches. So if two overlapping caches have the same weight values (i.e. 1.0 and 1.0, 0.5. and 0.5 and so on), then they will both equally contribute to the deformations in their cache blend regions on playback.
To blend geometry caches and set their weights
When a geometry cache’s weight is 1.0, it is blended with the current object’s other caches and it fully contributes to the object’s deformations during playback.
When a geometry cache’s weight is 0.0, it is not blended with the current object’s other caches and it does not contribute to the object’s deformations during playback.
After you adjust each cache’s weight value, -click on their weight attributes and select Key Selected from the context-sensitive menu that appears.
This adds keys to your geometry caches, creating weight curves. You can then manipulate these weight curves to smooth the transitions between your object’s overlapping (blended) caches.
Painting geometry cache weights
You can interactively apply, distribute, and blend the weights of multiple caches on a single object by painting your object’s geometry cache weights directly on its surface. For example, with the Paint Cache Weights Tool, you can paint one cache on the arm of a biped model, paint another cache on the chest of the model, and then blend the two caches at the model’s shoulder to create a smooth transition from the arm’s geometry cache to the chest’s geometry cache.
To paint geometry cache weights
The Paint Cache Weights Tool settings appear in the Tool Settings window. See Geometry Cache > Paint Cache Weights Tool.
For descriptions of these tool settings, see Artisan Tool Settings in the Artisanguide.