PDA

View Full Version : Reactor and Morphs


JHN
10-14-2003, 01:40 PM
On page 97,98 in the Reactor Manual it says:

"The sphere's sides bulge out as it deforms into an ellipsoid shape, but this happens outside the control of the physics engine and therefore appears to happen instantaneously. This sort of thing can happen quite often, particularly in situations where meshes are being generated automatically (e.g. in character animation a skin mesh around a set of bones deforms based on the position of the
bones).
....the surrounding affected objects should move. In this case, the deforming mesh will cause the two blocks on either side to be pushed outwards away from the sphere. The Havok system needs to be told that an object's geometry may deform outside of its control in order to achieve this result."

Especially the last sentence, how do I tell reactor my objects morph and that the morph should be considerd in the simulation....

Basicly I want my corn to pop and the morph should trigger the jumping of the corn... Is this possible and if yes, where do I tell reactor to use mesh deformation for the simulation... Other suggestions are welcome as well!

Thnx in advance!
Johan

peekoot
10-15-2003, 05:16 AM
i'm not sure if i understand you well...

but.. have you tried adding mesh to deformable mesh collection (DM Collection)? this should be used when you have character for example wich has to behave as deflector... i think it should work in your case also..

peekoot
10-15-2003, 05:42 AM
ok... i red your post again and figured that answer i gave you is not what you're looking for... :rolleyes:

what i understand is that you want to run simulation with objects that morphs but in same time they have to be affected by collisions, gravity etc... if so.. my answer would be.. no.. i don't know how to do that with reactor.. :p DM collection works only when you just need changable mesh to act as deflector...

BUT... i have one workaround that might work... or this post would not have any sense... :)

you need reactor to be aware of mesh morphs... right?! but when you start reactor it just remembers starting shape... well.. i've tried something here... and it works... it's a bit brute force approach, true, but it works...

during frames in wich your objects morphs just run simulation for one frame only e.g 0-1 1-2 2-3 3-4 etc. untill objects are done with morphing... some scripting would be usefull here especially if your sim is complex...

i'm well aware that this method will not work in all situations... but i hope it helps in yours... ;)

cheers...

peekoot
10-15-2003, 05:44 AM
or... you could wait couple of days hoping that max6 is capable of such things... :p

i know that realflow can do it...

JHN
10-15-2003, 09:58 AM
Your solution sounds great but I can't seem to get it to work...

Could you maybe send me you're test file so I can examen it? It would help a lot!

Hope it's ok!
Thnx alot
Johan

peekoot
10-15-2003, 03:02 PM
pm me mail adress to wich i can send test files...

CGTalk Moderation
01-16-2006, 08:00 AM
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.