Home Artists Posts Import Register

Content

Hello from sunny Bocas del Toro, Panama! I hope you are all keeping safe and happy with all the COVID shenanigans going on in many parts of the world.

I thought lets take a break from shaders and focus on some more mathy foundational stuff. In this video I'll explain a very powerful way to make a polynomial function that goes through a bunch of arbitrary points. This is very useful in many tasks you encounter as a game developer or graphics coder.

Enjoy, and let me know what you think!

Martijn

Files

Useful functions for game designers - Part I - Lagrange Polynomials

In science, technology and engineering it is very common to have to interpolate between data points. One of the many ways to do this is through Lagrange interpolation. In this video I'll go through how it works and if you go to desmos.com you can follow right along. ========== Social Media Links ========== Twitter: @The_ArtOfCode Facebook: https://www.facebook.com/groups/theartofcode/ Patreon: https://www.patreon.com/TheArtOfCode ShaderToy: https://www.shadertoy.com/user/BigWIngs PayPal Donation: https://paypal.me/theartofcode ========== If you want to follow along ========== Starting point: https://www.desmos.com End Point: https://www.desmos.com/calculator/zsnqrj1xu3 ========== Other videos to watch ========== Check out my video about linear interpolation: https://www.youtube.com/watch?v=NO5JGFJJ_Kk Or using smooth minimums: https://www.youtube.com/watch?v=YJ4iyff7zbk Or using Hermite interpolation (smoothstep): https://www.youtube.com/watch?v=60VoL-F-jIQ

Comments

Anonymous

You have a real talent for explaining math concepts simply. I look forward to part 2. I've yet to try it, but my intuition tells me I should be able to extend this idea into the 3rd dimension...

Anonymous

Here's my shadertoy implementation of Lagrange interpolation: https://www.shadertoy.com/view/NssyRn