Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Object Interpolation

Author
Message
Nemo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Bangor, Northern Ireland
Posted: 30th Sep 2004 18:14
Hi there.

I am using set object frame to control my animations and set object interpolation to make them smooth. This is nearly working but I have a small problem.
When I turn the interpolation on, my object will morph to a rather twisted position between two specific animation frames.

I thought this might be to do with my code selecting the wrong frames at certain points but I set up some keys to flick through the animation and found that the transitions between certain frames are indeed causing strange morphing of the object.

The object in question is a bird and the flap cycle of the wings is what I am working on. The flap cycle is 10 frames in length and there are only three keyframes for the motion in milkshape.

I have also found that if I increment the animation by one frame each time the strange morphing will happen between frame 9 and 10, while if I increment by 5 frames the animation works fine.

I would really appreciate any thoughts on this as I am out of ideas, and sanity.

In the future we will not spank the monkey, the monkey will spank us.
Nemo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Bangor, Northern Ireland
Posted: 1st Oct 2004 17:57
Hi there.
Just checked the bug reports page for anything about this and although i read the two posts i found i am still none the wiser.

It seams like it might be a bug but its not very clearly stated from what i could find. Does anyone know for sure one way or the other?
If its not a bug can anyone tell me how many chickens i need and exactly where to stand in the pentagon?

In the future we will not spank the monkey, the monkey will spank us.
Mobiius
Valued Member
22
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 1st Oct 2004 20:36 Edited at: 1st Oct 2004 20:37
First off, you are weird for that chicken thing, And I mean that in a good way! But you get kudos for the jay and bob strike back sig quote, so your cool!

Secondly, Set the interpolation between keyframes, not individual frames. If the flapping keyframes are 1, 5 and 10, then use thest as the interpolation frames. (As these are the only frames with actual animation data, using the other frames makes DBP interpolate the position of the frames before and after the current position, to interpolate the frame needed. (That makes no sense on purpose)

So, in closing, interpolate keyframes only.

(I gotta be the craftyest mutha fu*ka alive! I told them you love the c0ck!)
Nemo
22
Years of Service
User Offline
Joined: 31st Oct 2002
Location: Bangor, Northern Ireland
Posted: 1st Oct 2004 23:30
heh. Great Movie. Jay and Bob rock.

Thanks for the help mate. I had a feeling that my problems were down to not having all the knowledge. Will re-code when i get home from work and all will be well i think.

The chickens are safe......... for now.

Cheers mate.

In the future we will not spank the monkey, the monkey will spank us.

Login to post a reply

Server time is: 2025-06-21 05:15:55
Your offset time is: 2025-06-21 05:15:55