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 / interpolation methods...

Author
Message
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 19th Jul 2003 04:18
non-linear interpolations can be used to control the movement of sprites and objects, and can make things appear to move more like things in real life do... For instance, when I begin walking, I am not instantly up to speed, I accelerate... and when I get where I'm going, I slow down...

Does anyone have DBPro source for a function that can do non-linear interpolations?

Specifically, an ease in, ease out interpolation?

I used to own "Game Programming Gems I" and it had a great article on interpolation methods (including linear, ease in, ease out, and ease in out). The classes for doing these were ridiculousley small, and the important parts were really just a couple lines long... Needless to say, I no longer own this book (don't ask!)... and I've lost the sources... I would love it if someone could either post a DB implementation of this functionality, or the original C++ (which I would translate into DB and post)...

Actually, I really think DB should build this into the language... Ease In/Out interpolation is SO usefull for making object (and sprite) translations look a lot more realistic...

Login to post a reply

Server time is: 2026-07-21 12:49:52
Your offset time is: 2026-07-21 12:49:52