Useful functions for Game Designers: Easing Functions

  Рет қаралды 17,602

The Art of Code

The Art of Code

Күн бұрын

Пікірлер: 38
@mikiex
@mikiex 2 жыл бұрын
Smoothstep ! :)
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
You got it!🤠
@AndreLaBranche
@AndreLaBranche 2 жыл бұрын
Easy for you to say! You're literally making it look easy. Anyway, take it easy. Ease out.
@CaptainGalactus135
@CaptainGalactus135 2 жыл бұрын
It's always a great day when Martijn blesses us with a new video
@jokerpb4778
@jokerpb4778 2 жыл бұрын
I use these functions almost everyday. Now all mystery goes away about how they work!
@sonu-jangir
@sonu-jangir Жыл бұрын
Thank you very much for this helpful video.🎉❤
@realcygnus
@realcygnus 2 жыл бұрын
Cool ! Extremely important basics
@MrSefsdf
@MrSefsdf 2 жыл бұрын
Just commenting to feed the YT algorithm. Please keep up your excellent work, truly appreciated
@ricopin
@ricopin 2 жыл бұрын
perfect timing. just so happens that I work on a game right now that needs some non linear movement :D
@adriancardenosocerezo
@adriancardenosocerezo 2 жыл бұрын
You are a really genius. This videos are all very cool!!! Thanks very much. I am learning very much !! :) (14:12 --> smoothstep()!!)
@sea-saw
@sea-saw 2 жыл бұрын
Lerping two functions was neat, but dropping smoothstep into another function as the input blew my mind.
@metalmastery5460
@metalmastery5460 2 жыл бұрын
I like your videos so much! Your lessons changed my perception and now everything is a function of something or a distance to some point.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
That's awesome! The way I think of it is that functions encode a relationship between two or more properties.
@neodos
@neodos 2 жыл бұрын
Fantastic tutorial and resources, thanks for making and sharing this, in Unity I use the visual curve widget(AnimationCurve) to tweak float or Vector3 variables with similar curves to those functions, but it's definitely better to know and understand the math.
@TimWalton0
@TimWalton0 2 жыл бұрын
The explanation is easy to follow, but imagine just stumbling upon that code one day and trying to work out what the hell it's doing!
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
Luckily I made a video about it ;)
@purplehierophant
@purplehierophant 2 жыл бұрын
Clear and demonstrative as always
@purplehierophant
@purplehierophant 2 жыл бұрын
This occurred to me when watching your 'Most Important Function...` video which had a lot of overlap, but figured I'd ask on this more recent video-my experience in procGen noise and images is people use Perlin's SmootherStep rather than SmoothStep. Is using the earlier/simpler polynomial to keep it clear for teaching? Or is there performance concern (as it's used hundreds of times) versus the modest improvement of the smoothing?
@greje656
@greje656 2 жыл бұрын
Great topic!
@Pracedru
@Pracedru 2 жыл бұрын
Very nice !!! Love those dancing letters. Didn't notice before now. I made a port of the rain shader to Godot btw :)
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
Awesome! Got a link?
@Pracedru
@Pracedru 2 жыл бұрын
@@TheArtofCodeIsCool yeah but KZbin removes links from the comments
@Firelordoli
@Firelordoli 2 жыл бұрын
thanks for the cool tutorials
@bradhammond923
@bradhammond923 2 жыл бұрын
Thanks for the great vids.
@BSGOST
@BSGOST 2 жыл бұрын
It seems to be a mistake in the formulas. You can check at 22:22 (for n = 2 and k = 2) there is no extremums, but at 23:25 there are two of them at the start and at the end according how yellow dot is moving.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
Looks like it! I did some investigation on this and there actually ARE extremums for n=2,k=2 on Desmos. They are just hard to see.
@adix64
@adix64 2 жыл бұрын
Very very very Useful! 👏
@CoolJosh3k
@CoolJosh3k 2 жыл бұрын
I have previously used “smooth” to give my RNG results some bias character.
@kafel4796
@kafel4796 Жыл бұрын
a blue dot function is a cosine function right?
@NikolaNevenov86
@NikolaNevenov86 2 жыл бұрын
Nice, for long time I wondered how to animate my shaders with controlled curve. Now I know. Thanks! That being said....I suppose we could also do a bezier quadratic or cubic function and control the smooth curve directly by imputing the curve handles? If we want a more specific look.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
Easing functions are nice because they are simple. But if you need more control, then absolutely Beziers are great. I'll do a video about Bezier at some point.
@odinmagick
@odinmagick Жыл бұрын
I like to use “ease into the highway, ease out of the highway”
@kostasismename9493
@kostasismename9493 Жыл бұрын
thanks chad
@hawns3212
@hawns3212 2 жыл бұрын
14:04 Is this smoothstep on the interval 0 to 1? Or is it different?
@TheArtofCodeIsCool
@TheArtofCodeIsCool 2 жыл бұрын
That right 👍
@mohammadhomsee8640
@mohammadhomsee8640 2 жыл бұрын
Function name is smoothstep 😉
@reubenstarsky7328
@reubenstarsky7328 11 ай бұрын
easy out to dance
@babelchips
@babelchips 2 жыл бұрын
If this video was a curve where 0 < x < 1, it’s definitely a 1
Live Coding an Alien Orb - God Rays & Translucency
28:52
The Art of Code
Рет қаралды 7 М.
Useful functions for game designers - Cosine Interpolation
25:12
The Art of Code
Рет қаралды 12 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Smoothstep: The most useful function
23:56
The Art of Code
Рет қаралды 66 М.
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 335 М.
Painting a Landscape with Maths
42:00
Inigo Quilez
Рет қаралды 726 М.
Useful functions for game designers - Lagrange Interpolation
18:01
The Art of Code
Рет қаралды 18 М.
Coding the Game of Life
30:01
The Art of Code
Рет қаралды 21 М.
How To PLAN your Game as a Solo Developer
16:26
Heartbeast
Рет қаралды 543 М.
Live Coding:Bending Light
24:29
The Art of Code
Рет қаралды 22 М.