|
Rikard Lundstedt
|
| September 09, 2010, at 02:46 AM | Rikard Lundstedt / PmWiki / MorphableAnimatedModel |
|
General Interactive 3D Current projects Old projects Support Development notes Music Maintenance |
MorphableAnimatedModelCode written in Java, requires jMonkeyEngine API. Makes it possible to morph an animated 3D model between a series of shapes. I can load an animated (or non animated) model and add keyframes to it which are versions of the same model (non animated) with displaced vertices. It is possible to addKeyFrameBefore and addkeyFrameAfter and then control the morphing in real time, while the animation is playing, through an input floating point variable morphPosition from 0.0 to 2.0. 0.0 is at the point in the morph of the first added before-keyframe, 1.0 is at the original model and 2.0 is at the last added after-keyframe. According to the morphPosition, the models vertices positions are interpolated between the keyframes. This was originally made as an attempt to visualize how it could look if objects were to move in ana and kata, the four dimensional directions, as it would be perceived in three dimensions. I had to modify the class SkinNode in jMonkeyEngine to make this work. Added function updateInfluenceOffsets(Geometry morphedSkin).
|
| Validate the XHTML and CSS of this page. | Page last modified on July 23, 2008, at 12:14 AM | Edit History Print Recent Changes |
|
Powered by PmWiki |
||