Sign in to follow this  

linear vertex animation and maintaining relative distance?

This topic is 2047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello everyone, i'm attempting to do linear vertex animation, but i've come to the realization that direct linear animation means not maintaining proper relation between each vertex, the test example below clearly demonstrates the problem:


[img]http://i47.tinypic.com/29fqlxh.png[/img]

[img]http://i48.tinypic.com/2mxhlwk.jpg[/img]

[img]http://i49.tinypic.com/f0w9rp.png[/img]

[img]http://i47.tinypic.com/11raero.png[/img]

[img]http://i50.tinypic.com/akd8ao.jpg[/img]


In short, is their a particular term i should be looking up for what i want to accomplish?

Share this post


Link to post
Share on other sites
To clarify, are you moving each vertex in a straight line to it's destination as a way of animating a rotation? Depending upon your end goal, skeletal animation with vertex skinning is popular. It enforces relationships between various things, e.g. certain lengths that must be fixed, and interpolates other vertices based upon how strongly they are associated to one or more bones.

Share this post


Link to post
Share on other sites
[quote name='jefferytitan' timestamp='1336623144' post='4938874']
To clarify, are you moving each vertex in a straight line to it's destination as a way of animating a rotation? Depending upon your end goal, skeletal animation with vertex skinning is popular. It enforces relationships between various things, e.g. certain lengths that must be fixed, and interpolates other vertices based upon how strongly they are associated to one or more bones.
[/quote]

ah, yes, i'm doing straight line linear interpretation. I have done skeletal animation before, and i would absolutely love to in here as well, unfortunately, it's not an option, as were only able to work with .obj files, so no way to get skeletal animation from them, we are essentially loading a series of .obj's at specefic frames, and animating them.

I was hoping their might be a moderate solution to this problem, other than providing more keyframes, but i find it doubtful since my google results don't seem to turn up anything particularly useful.

Share this post


Link to post
Share on other sites
The first 'solution' that comes to mind is to record the length of each edge on your key-frames, and then after generating an interpolated frame, iterate each edge and apply a length constraint to it with the interpolated key-framed lengths in order to restore them to their intended sizes.

If you're unfamiliar with length-constraints, in [url="http://www.pagines.ma1.upc.edu/~susin/contingut/AdvancedCharacterPhysics.pdf"]advanced character physics[/url] there's an example of using them to maintain a collection of points in the shape of a ragdoll.

Share this post


Link to post
Share on other sites

This topic is 2047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this