|
|
interpolating a vector(cubic)
#331045
07/01/10 18:02
07/01/10 18:02
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
HI, I have a problem. I would like to learn how to interpolate a vector(cubic). Big problem:
Most things/documentations on the web are just like a dschungle and its not easy for me to understand them. I have never been that bad in math, but cubic interpolation is eating my brain.
Maybe someone can help me?(tips, help, advice, explanation)
Greets Rackscha
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: interpolating a vector(cubic)
[Re: MMike]
#331056
07/01/10 18:43
07/01/10 18:43
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
no, Cubi is a interpolation method
CUBIC, QUADRATIC,LINEAR
i have 2 positions, and want to interpolate a vector between them(cubic)
§dgs only has a linear interpolation function
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: interpolating a vector(cubic)
[Re: Lukas]
#331065
07/01/10 19:33
07/01/10 19:33
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
@Lukas: Thats right, but in one example someone just placed 2 vectors between them. (depending on the start and end velocity)
But maybe thats not a clean way.
What iam trying to do is to interpolate positions between multiplayer entities as smooth as possible(objectets speeding up and down).
For example: i wnat to scale a vector between the old and the new position. But i dont want it to be done linear. Scaling has to be done slow at the beginning and fast at the end.(within a given number of frames)
So lets say i want to interpolate between 5frames, i wnat the scaling to be at 100% on the 5th frame but not linear between 1-5th frame.
Last edited by Rackscha; 07/01/10 19:35.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
|