avogad

03-13-2007, 10:13 AM

Is there a way to change the interpolation between 2 keyframes ?!

View Full Version : Interpolation between keyframes

avogad

03-13-2007, 10:13 AM

Is there a way to change the interpolation between 2 keyframes ?!

Dodgy

03-13-2007, 10:23 AM

Look in SDK>Globals>Common:Animation Envelopes>keySet()

result = keySet( env, key, tag, value )

Set a value associated with a key. This can be the value of the key itself, the shape of the key, or one of the interpolation parameters. The result is true (non-zero) if the function succeeds and false (0) if it fails. The tag describing the value can be one of the following.

LWKEY_VALUE

The value of the key.

LWKEY_SHAPE

The curve type, an integer corresponding to the options in the graph editor:

0 - TCB (Kochanek-Bartels)

1 - Hermite

2 - 1D Bezier (obsolete, equivalent to Hermit)

3 - Linear

4 - Stepped

5 - 2D Bezier

LWKEY_TENSION

LWKEY_CONTINUITY

LWKEY_BIAS

The Kochanek-Bartels blending parameters.

LWKEY_PARAM_0

LWKEY_PARAM_1

LWKEY_PARAM_2

LWKEY_PARAM_3

The curve parameters. These are the Hermite coefficients for Hermite curves, and the incoming and outgoing tangents for 2D Bezier curves.

result = keySet( env, key, tag, value )

Set a value associated with a key. This can be the value of the key itself, the shape of the key, or one of the interpolation parameters. The result is true (non-zero) if the function succeeds and false (0) if it fails. The tag describing the value can be one of the following.

LWKEY_VALUE

The value of the key.

LWKEY_SHAPE

The curve type, an integer corresponding to the options in the graph editor:

0 - TCB (Kochanek-Bartels)

1 - Hermite

2 - 1D Bezier (obsolete, equivalent to Hermit)

3 - Linear

4 - Stepped

5 - 2D Bezier

LWKEY_TENSION

LWKEY_CONTINUITY

LWKEY_BIAS

The Kochanek-Bartels blending parameters.

LWKEY_PARAM_0

LWKEY_PARAM_1

LWKEY_PARAM_2

LWKEY_PARAM_3

The curve parameters. These are the Hermite coefficients for Hermite curves, and the incoming and outgoing tangents for 2D Bezier curves.

avogad

03-13-2007, 10:29 AM

Thx!

I'm gonna try with this and i'll let u know if it works.

Cheers

I'm gonna try with this and i'll let u know if it works.

Cheers

avogad

03-13-2007, 10:56 AM

Would u have any source example except the example in the LW SDK ?!

Dodgy

03-13-2007, 11:04 AM

Nope i do all my programming in Lscript (at the mo :))

avogad

03-13-2007, 11:21 AM

Thanks anyway.

avogad

03-14-2007, 03:09 AM

Would anyone have an example of how to set the inbetween keys ?!

avogad

03-14-2007, 06:56 AM

Need Help !!!!!!!!!

adamredwoods

03-19-2007, 11:42 AM

Hm. That example in the SDK is rather thorough.

You might want to state specifically what you're looking for that the example isn't showing. Someone may be able to help if they had more specifics.

You might want to state specifically what you're looking for that the example isn't showing. Someone may be able to help if they had more specifics.

avogad

03-20-2007, 02:38 AM

Don't worry anymore!

I've perform what I wanted to. I've developped 2 plugins, one performing a quaternion linear interpolation (that had the same resutl than QuaternionBooster) and another one performing the Quaternion Spherical Linear Interpolation (SLERP) that correct my bug. I just did it through a ItemMotionHandler.

Here is the result :

http://img261.imageshack.us/img261/1368/comparaison150307dd7.th.jpg (http://img261.imageshack.us/my.php?image=comparaison150307dd7.jpg)

Thanks to all those who helped me.

I've perform what I wanted to. I've developped 2 plugins, one performing a quaternion linear interpolation (that had the same resutl than QuaternionBooster) and another one performing the Quaternion Spherical Linear Interpolation (SLERP) that correct my bug. I just did it through a ItemMotionHandler.

Here is the result :

http://img261.imageshack.us/img261/1368/comparaison150307dd7.th.jpg (http://img261.imageshack.us/my.php?image=comparaison150307dd7.jpg)

Thanks to all those who helped me.

Dodgy

03-23-2007, 03:50 PM

Cool :) Sorry I couldn't help more, I've been in prague for the last week...

Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.