Viewpoint Forums
Viewpoint Forums
Viewpoint Scene Builder
Morphing animation with multiple meshes|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Member |
Hi gamester,
Make sure you follow the instructions here when importing your obj files to create multiple morph targets: http://developer.viewpoint.com/newsletter/2002/v02_i10_s04_p01.html then, have a look at this example to see how to code you morph animations between multiple targets: example: http://3w3d.com/vet/morphs/ source: http://3w3d.com/vet/morphs.zip HTH, Daimen |
|||
|
| <gamester>
|
Thank you for the kind help duncan,
got it running! However, I do not unterstand the code in total, to be honest. I knew the newsletter and managed the base-single-target-case without any problems. The first part of your solution isn't difficult to understand, too, but the additional timelines, esp. the STOP property I didn't get. I just made a "generalization" of the code. Would you be so kind to explain the semantics of "MTSTimeElem base" and "MTSTimeElem cycle" with an explicit sentence on "MTSTimeLine T3", please. I think there are shortcuts I didn't get (e.g. having 5 times and a 2 element time line a.s.o). With very best regards gamester |
||
|
|
Member |
Hi gamester,
So lets start at the beginning... 'change' and 'change2' are the two morph targets, and 'base' is the original mesh. so a morph happens between the 'base' and the target at values between 0 and 1. So the 'base' mesh would morph halfway to 'change' at a value of 0.5 so far so good? so the animation named 'base' sets both morphs (change and change2) to 0... this leaves you with the original mesh 'base'. now the animation 'cycle' animates to each of the morphs (change and change2) at different keyframes, so the effect is morphing between several (two in this case) targets. So in most of the animations the stop property of the animation 'cycle' is set to 1 (in T3) so that the 'cycle' animation stops and does not interfere with the currently triggered animation. (note that the 'cycle' animations 'clamp' property is set to 0 so that it loops when triggered.) HTH, Daimen |
|||
|
| <Joe Sandler>
|
Hi
I'm new to morphing is there a tutorial where i can see how to code your morph animations between multiple targets? The link above does not work. Thanx |
||
|
|
Member |
Hi Joe,
You might want to start with the "Exporting 3D Mesh Deformations" tutorial on our developer central website at: http://developer.viewpoint.com/dc/resources1.shtml?tab=TOOL&sub=RSRC Regards, Viewpoint Support |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Viewpoint Scene Builder
Morphing animation with multiple meshes
