PDA

View Full Version : ncloth cache overriding geometry cache of input mesh


floju
01-30-2012, 05:37 PM
hey guys,

I've got a polygon mesh with a geometry cache applied to it.
I create an nCloth mesh from my animated mesh and use it as the animated Rest Shape of my nCloth (nMesh - Rest Shape - Connect Input Mesh as Rest Shape).

The "input motion drag" is animated from 1 to 0 at a certain frame, so my outputMesh is first attracted by the input mesh and then doing whatever it does. If I just play the sim everything is fine..

but if I try to cache the sim (nCache - create new nCache) it won't work any more. While caching my original geometry cache is ignored and is getting disabled.

Any advice how to solve this?

Thank u very much in advance.

floju
01-30-2012, 05:50 PM
so what I basically want to do is combine a geo cache and an nCache.

e.g.:

frame 1-50: outputMesh fully following inputmesh with geoCache applied
frame 51-x: cached nCloth (inheriting the velocity of my geoCache using "Input Motion Drag" of 1 till frame 50 and animating it to 0 at frame 51)

floju
02-01-2012, 09:31 PM
duncan maybe? :)

mandark1011
02-01-2012, 10:52 PM
could you......do what your doing and not cache the ncloth... instead duplicate the geo then wrap deform it to the original simulated mesh ...do a geometry cache on the new wrapped mesh?

maybe itll work.
good luck

conflictingalibi
02-05-2012, 07:24 PM
so what I basically want to do is combine a geo cache and an nCache.

e.g.:

frame 1-50: outputMesh fully following inputmesh with geoCache applied
frame 51-x: cached nCloth (inheriting the velocity of my geoCache using "Input Motion Drag" of 1 till frame 50 and animating it to 0 at frame 51)


Simplest way would to do a cache blend. I would do this as a geo cache(you can apply ncloth caches as geo cache) Unless both caches seamlessly transition to each other at frames 50-51 you may need to overlap the caches so you can blend blend between the two using the cacheBLend node. Use your trax editor or cacheNode to adjust start/end timing of the caches.

- JP

floju
04-03-2012, 12:59 PM
this workaround - blending the caches worked - perfectly. thanks a lot!

CGTalk Moderation
04-03-2012, 01:00 PM
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.