Useful functions for game designers - Cosine Interpolation

preview_player
Показать описание
While working on a previous video about Lagrange interpolation, I figured that it would be an interesting exercise to go over some other kinds of interpolation. In this video we go over piecewise linear, and cosine interpolations.

========== Social Media Links ==========

Twitter: @The_ArtOfCode

========== If you want to follow along ==========

Starting point:

End Point:

========== Other videos to watch ==========

Linear interpolation:

Lagrange interpolation:

Or using smooth minimums:

Or using Hermite interpolation (smoothstep):
Рекомендации по теме
Комментарии
Автор

"but first lemme just take a sip of tea"
*proceeds to grab a jug of tea*
this man is truly built different

Haykke
Автор

Your teaching takes me into a mathematical world where the equations are as easy to manipulate as play doh! Thank you so much for sharing!

jeffcummings
Автор

Nice! The advantage of Cosine over Lagrange Interpolation is that new points can be added by only touching the last point and adding a cosine function to it.

roberth
Автор

This was very helpful! I have used this to make smooth motions in the UI system I’m working on. Thanks a lot!

robotics_and_stuff
Автор

Excellent. I like the way you derive these from scratch, very cleverly done. I'd prefer quieter music, it's quite distracting

daviddawkins
Автор

thanks a lot buddy, that you make this nerd wisdom accessible for all us mortals

GonzoGonschi
Автор

Beautiful Beautiful!!!
Bezier interpolation, using things like Lerp() is also another beautiful way for a value x to approach another value y! It makes it smooth and i use it almost everywhere in UI design ( for example a text appearing form bottom to the center of the screen) !
Its great to see someone making such great vids! love ur vids

gchinmayvarma
Автор

I love this series your doing, man! If I ever need a curvy line I'll know where to come back to

kolosso
Автор

Great stuff! More interpolations, please, including Bezier.

Enherj
Автор

Great stuff! More interpolations, please! Newton interpolation, piecewise linear interpolation, Hermite interpolation, and cubic spline interpolation

hualee
Автор

That's actually a great interpolation for some kind of node editor, as in Blender, where you connect outputs to inputs on rectangular shapes (nodes). Looks best in such applications if lines end in a 90° angle to the box's border.

CodAv
Автор

You would make such a great math teacher!

piranha
Автор

Hello, BigWIngs! Great video as usual, thank you so much! Can you please recommend any useful books on applied mathematics for programmers to continue exploring such a thing! Thank you!

SayHelloToGrux
Автор

I love these videos. Could you also look at the natural spline, where the second derivative is zero at the points. It has a really nice look to it.

Adeith
Автор

learning about these small things is really cool and I get to learn more really cool techniques at a good pace from you .w.
keep up the great work yo>

SheepyPeka
Автор

Can you do a video on bezier curve as well? Not sure if it applies to 3d graphics a lot, but it is useful in some structural and graphic design at least.

Scy
Автор

"let me take a sip of tea" takes out a 2 liter glass of tea 💀

bubu
Автор

This is great but the music is very loud at the start.
I'm enjoying your shader stuff too. Subscribed

adrianshawuk
Автор

that's very cool, didn't know about that

gabitheancient
Автор

Very nice. I'm wondering can this interpolation be implemented for surface in 3D?

AlexSmolyankin
welcome to shbcf.ru