Hey, Im trying to make an animation on my text to looks a scaling, bringing up the text to scene (like coordinate z).
First of all I implemented a new interpolation method (elastic ease out, http://easings.net):
float a = value1.GetFloat();
float b = value2.GetFloat();
const float c = b - a;
if( t == 0.0f )
return a;
if( t == 1.0f )
return a + c;
float p = 0.3f;
float d = c;
float s = p / 4;
return (d * pow( 2, -10 * t ) * sin( (t - s)*(2 * M_PI) / p ) + c + a);
The animation looks right, but I dont know why this dont looks smooth, check:
I’ve already tried to use the IM_LINEAR interpolation method, but the same problem happens.
My code to apply valueanimation on the text it’s:
Sure, I understood the problem, probably I will need to use Text3D and use this animation on scale.
@The problem its bcoz when I change Font Size, engine always will create a new font. What I need its just change the size on render. @Anyway to change the size of texture 2d from font on render?