Shader Coding: Space GIF step-by-step

  Рет қаралды 26,756

The Art of Code

The Art of Code

Күн бұрын

Пікірлер: 86
@RusticRaver
@RusticRaver 6 жыл бұрын
my favorite GLSL learning channel by far, thx guru
@marcasrealaccount
@marcasrealaccount 5 жыл бұрын
9:40 not gonna lie, even though it screwed up the circles i still liked the effect.
@lordsqueak
@lordsqueak 4 жыл бұрын
Indeed cool effect. Also the [buy him a beer] pop ,,,lmao
@changemaker9751
@changemaker9751 4 жыл бұрын
@@lordsqueak Haha ..He hides these kind of details in his videos as a movie director.Only the man who has divine wisdom can see them :O
@satychary
@satychary 5 жыл бұрын
Excellent way to show 'code -> art'.
@ryanfuxa6738
@ryanfuxa6738 5 жыл бұрын
Man this some mind control level stuff right here man.
@BetaTester704
@BetaTester704 5 жыл бұрын
The fact the you say Gif as Jif is unforgivable.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
You mean unforJifable?
@BetaTester704
@BetaTester704 5 жыл бұрын
@@TheArtofCodeIsCool Possibly.
@MartinToernby
@MartinToernby 5 жыл бұрын
Hurray! I've done a shader without sticking 100% to your approach. This is the first time, I've actually added something intentional and making it work - rather than just enjoying graphical screw-ups. I'll display my utter happiness by posting the entire thing: void mainImage( out vec4 fragColor, in vec2 fragCoord ) { // Normalized pixel coordinates (from 0 to 1) vec2 uv = (fragCoord-0.5*iResolution.xy)/iResolution.y; // Time varying pixel color vec3 col = vec3(0); vec4 mo = iMouse / iResolution.xyxy; vec2 gv = fract(uv * 10.)-.5; vec2 id = floor(uv * 10.); float dm = smoothstep(0.,6.,2./(length(mo.xy - (uv * 0.5) - vec2(.5,.5))*6. ) * 0.5); float m = 0.; for(float y = -1.; y
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
nice one! Share it on the facebook group if you like :)
@prietjepruck
@prietjepruck 2 жыл бұрын
Another great video Martijn. Dank je wel.
@ikesau
@ikesau 6 жыл бұрын
super cool. Definitely a fan of these short and sweet effects. They cover a lot of ground.
@xamogxusx
@xamogxusx 6 жыл бұрын
Cheers man! You are great teacher! And that shader looks very cool
@rtcwkillz
@rtcwkillz 5 жыл бұрын
Could you do a tutorial explaining each Built-in Functions in glsl?
@davidmurphy563
@davidmurphy563 3 жыл бұрын
Sorry, I'm up to 6:25 - shouldn't line 15 be `gv-offs` not `gv+offs` as you put?? It doesn't make a difference with perfect circles but with a non-symmetric shape you'll have the wrong side surely? Maybe I've miscalculated, I'll play around with it this evening. I'm so blown away by your channel btw, this stuff was always a black art and you just make it so clear. Thank you so much buddy.
@gijsb4708
@gijsb4708 6 жыл бұрын
Incredible recreation!
@afr65536
@afr65536 6 жыл бұрын
Thank you for creating this video. It is very informative.
@changemaker9751
@changemaker9751 4 жыл бұрын
Anyone who wants to convert radian into degree ,just do this: float radianToDegree = (45 * 3.14 ) / 180; float sine = sin(radianToDegree); float cosine = cos(radianToDegree);
@СергейФёдоров-щ8ш
@СергейФёдоров-щ8ш 5 жыл бұрын
Nice Shader Coding space FX ) thanx
@JustYesntMan
@JustYesntMan 6 жыл бұрын
another great tutorial !
@mkgamesartvisuals
@mkgamesartvisuals 2 жыл бұрын
Love your videos, awesome work!!!
@DaveAlexKD
@DaveAlexKD 6 жыл бұрын
Love your videos man!
@4.0.4
@4.0.4 6 жыл бұрын
This was a very good explanation.
@grodzillaaa
@grodzillaaa 6 жыл бұрын
This is so cool, I love it!
@mecdos
@mecdos 2 жыл бұрын
i wasn't able to recreate this in Metal. I can't get the circles to animate at different pace.
@DenilsonSa
@DenilsonSa 6 жыл бұрын
Feedback: the keyboard noises are painful to hear when using headphones. Otherwise, great content, I learned some stuff from your video!
@lukegilb6783
@lukegilb6783 6 жыл бұрын
yeah i definitely had to switch to speakers
@dimontools
@dimontools 4 жыл бұрын
Great tuttorial. Thank's a lot !
@mrdixioner
@mrdixioner 3 жыл бұрын
Big Thanks!!!
@lumixraku
@lumixraku 4 жыл бұрын
It is so amazing!
@d74g0n
@d74g0n 5 жыл бұрын
Do you pronounce it "Jraphic interchange" ? Dinosaur fan stuff?
@nietaki
@nietaki 5 жыл бұрын
Hey Martijn, one more question: in line 28 in the final shader you use `smoothstep` where the second argument is smaller than the first argument. If I'm reading the GLSL docs right, the first arg should be smaller than the second one or else the result is undefined. Can you say what result were you aiming for and why it's going to work in the configuration you put in the video? Once again thanks for making these videos, they are incredibly useful and inspiring
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
When you swap the values it goes from high to low, instead of low to high. in other words: smoothstep(high, low, t) = 1 - smoothstep(low, high, t) For some reason this is not in the spec but it works, and everyone is using it.
@nietaki
@nietaki 5 жыл бұрын
@@TheArtofCodeIsCool thank you!
@Bubatu7
@Bubatu7 6 жыл бұрын
Great video, thank you!
@clearwavepro100
@clearwavepro100 5 жыл бұрын
Great video!
@CCV334
@CCV334 5 жыл бұрын
Add .5 to id to center the effect e.g. vec2 id = floor(uv)+.5;
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
Good point!
@ferhat3223
@ferhat3223 6 жыл бұрын
perfect.
@saege1173
@saege1173 10 ай бұрын
of course it is tea
@donaldviszneki8251
@donaldviszneki8251 6 жыл бұрын
When you were writing your "xor" function it might have been nice if you plotted this function on its own
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
You are right. Maybe in a future video!
@GrinyaPLAY
@GrinyaPLAY 6 жыл бұрын
Thank you! Do you know local or offline version of Shadertoy or alternative?
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
No, but I'm sure there are programs like that. You could also use unity (see my beginners shader tutorial for unity) and convert shaders from shadertoy to unity (I also have a video on that)
@grodzillaaa
@grodzillaaa 6 жыл бұрын
During shader battles (showdowns) people use Bonzomatic (github.com/Gargaj/Bonzomatic)
@limbicD
@limbicD 6 жыл бұрын
VS Code + shader-toy
@AmanKumar-tu2og
@AmanKumar-tu2og 5 жыл бұрын
Kodelife
@BriceMarnier
@BriceMarnier 5 жыл бұрын
Also found "Shader Editor" on Google Play Store to work on my tablet (or smartphones...)
@filmarto12
@filmarto12 5 жыл бұрын
awesome thx
@MrNixaboo
@MrNixaboo 4 жыл бұрын
Thanks!
@sumloser8650
@sumloser8650 5 жыл бұрын
what's iResolution... Its coming up as a undeclared variable
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
It shouldn't, are you sure you spelled it right?
@stephaneduhamel7706
@stephaneduhamel7706 6 жыл бұрын
0.707 is not pi/4 but it's (approximately) sin(pi/4)=cos(pi/4)=inversesqrt(2)
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Yeah I got my constants mixed up. 0.707 is about 1/sqrt(2) like you mentioned. It does need to be pi/4 though which is about 0.785
@josephkalathil9354
@josephkalathil9354 6 жыл бұрын
Noooiiiiccceee
@frequencymanipulator
@frequencymanipulator Жыл бұрын
Ahh, the use of the word 'Interweb' denotes an individual of class and sophistication.
@bhuwansharmaa
@bhuwansharmaa 4 жыл бұрын
buy him a beer! :xd ... lol
@ArthurStammet
@ArthurStammet 6 жыл бұрын
...-and another one : www.shadertoy.com/view/WsXXWr using a complex wave for turning on and off many lights
@euglossine_tristanwhitehill
@euglossine_tristanwhitehill 6 жыл бұрын
🔥🍄🌳❤️⭐️
@LightManDavid
@LightManDavid 5 жыл бұрын
Wow, I just discovered this channel, my 'watch it later' list just exploded. Nice effect, kind of reminds me to this part of this demo kzbin.info/www/bejne/nIbEqKurp6qEgLc
@LightManDavid
@LightManDavid 5 жыл бұрын
An also this one: kzbin.info/www/bejne/Y4vbgZt6eJKladk also related to the torus video effect ;)
@ruben7420
@ruben7420 5 жыл бұрын
Did he just say JIF .... I swear to jod I am going crazy.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 5 жыл бұрын
I know, what I did was unforJifable.
@shahriyarshahrabi6321
@shahriyarshahrabi6321 6 жыл бұрын
hey, wanted to say thanks, used your idea as geometry pattern for my procedural color scheme algorithm www.shadertoy.com/view/3s23D3
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
Very nice!
@Anticitizen666
@Anticitizen666 6 жыл бұрын
JIF = Jraphical interchange Format :)
@Tynach
@Tynach 6 жыл бұрын
Just like how NASA = National Ahronautics and Space Administration? Acronyms and abbreviations can be pronounced differently than how the letters are used in the words they're derived from. The developers of the .gif standard chose to pronounce it like the peanut butter brand, so it is correct to pronounce it that way.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 6 жыл бұрын
LOL ;)
@Anticitizen666
@Anticitizen666 6 жыл бұрын
@@Tynach Thanks Cholin!
@СергейФёдоров-щ8ш
@СергейФёдоров-щ8ш 5 жыл бұрын
Terminology - weapon of manipulator. Oo
@coleraby
@coleraby 5 жыл бұрын
I made use of that pattern here... www.shadertoy.com/view/tdsXWf
@Rend3d
@Rend3d 2 жыл бұрын
Why did you lie? I know you drank beer. You can't do this job sober. )))
Hexagonal Tiling Explained!
29:21
The Art of Code
Рет қаралды 59 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
LiveCoding - The Universe Within - Part 1
33:26
The Art of Code
Рет қаралды 38 М.
Coding Adventure: Boids
8:35
Sebastian Lague
Рет қаралды 1,6 МЛН
Shader Coding: Truchet Tiling Explained!
37:38
The Art of Code
Рет қаралды 61 М.
Inside the V3 Nazi Super Gun
19:52
Blue Paw Print
Рет қаралды 3 МЛН
An introduction to Raymarching
34:03
kishimisu
Рет қаралды 168 М.
Introduction to shaders: Learn the basics!
34:50
Barney Codes
Рет қаралды 396 М.
Shader Coding: KIFS Fractals explained!
36:11
The Art of Code
Рет қаралды 32 М.
The BEST Mechanical Display You've EVER Seen!!
13:51
Tin Foil Hat
Рет қаралды 616 М.
10 Minutes vs. 10 Years of Animation
19:29
Isto Inc.
Рет қаралды 1,6 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН