Sign in to follow this  
giugio

lerp

Recommended Posts

It linearly interpolates between two values.

You use it when you want to linearly interpolate between two values. For instance, if you have a point A, and a target point B, and you want to move from A to B over T seconds, you lerp from A to B with a lerp value of curr_time/T.

Share this post


Link to post
Share on other sites
Hi,
there's a lot of information in linear interpolation on wikipedia (http://en.wikipedia.org/wiki/Linear_interpolation). There's a number of applications for linear interpolation in games, from calculating the colour of a pixel to texture coordinate information. Games are full of interpolation, graphics are not an exact art, infact, often computer graphics are calculated about as far from the real thing as you could imagine, simply because computers cannot support more realistic graphics models like photon and ray tracing in real time. Why linear interpolation? Because it's the fastest form of interpolation which is critical for real time graphics.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this