Jump to content
  • Advertisement
Sign in to follow this  
giugio

lerp

This topic is 3286 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
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
Quote:
Original post by Evil Steve
It linearly interpolates between two values.

You use it when you want to linearly interpolate between two values.
+1

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!