Newton's Cradle: Setting up Materials

  Рет қаралды 6,467

The Art of Code

The Art of Code

Күн бұрын

Пікірлер: 19
@LeutnantJoker
@LeutnantJoker 3 жыл бұрын
As a normal dev it always amazes me looking at this stuff knowing that it is just a shader, no mesh whatsoever involved, except maybe the quad this is rendered on. It always inspires me to think about what could be a shader instead of an actual object :) Looking forward to the recursive raymarching, which is how you'll get the reflections I assume :)
@playbyan1453
@playbyan1453 3 жыл бұрын
Great implementation, probably try blending material color because I need it.
@DoganAktay8
@DoganAktay8 3 жыл бұрын
I wonder if Martijn ever gets impressed by the stuff he makes :D "Hey this super cool thing I whipped up in about fifty minutes, yea it's not that cool" sips some tea
@daviddawkins
@daviddawkins 3 жыл бұрын
Could you convert the main GetDistance() to return a vec2 as you did for sdBall()? (This is what I thought you were going to do). You’d only have one set of object definitions, and make only a single “getDistAndMat()” call per frame. Excellent stuff as always, mind-blowing.
@TheArtofCodeIsCool
@TheArtofCodeIsCool 3 жыл бұрын
Yeah in hind sight I might have done it that way. Would have come out a little cleaner.
@daviddawkins
@daviddawkins 3 жыл бұрын
@@TheArtofCodeIsCool Maybe, but there’s a lot to be said for getting the job done without over-engineering, too.
@RayBellis
@RayBellis 3 жыл бұрын
TBH, this is what I was expecting to see, because having to reproduce the same logic in two separate functions is pretty unreliable. In my own experiments instead of a vec2 I use a "Hit" structure that contains the distance and a vec3 colour, but I might try replacing the colour with a material index instead.
@tobberh
@tobberh 3 жыл бұрын
Uhhh can't wait for the real reflections! :)
@PhilippeGauthier
@PhilippeGauthier 3 жыл бұрын
Thanks a lot, very clear, as always!
@AFE-GmdG
@AFE-GmdG 3 жыл бұрын
Cool Video and good explanations. One thing I don't link at your code is the naming of your variables and functions: proper naming would lead to much better readable code.
@wafoo42
@wafoo42 3 жыл бұрын
Hey, I like your videos a lot. You're a really good instructor and you're also really entertaining. I have a suggestion however, could you reduce the webcam size, or put it in the bottom left, so we can see the whole editor. It's not a big problem as you always edit code above your face, but it's a bit distracting that as the code writes your face moves near it. Also if you ever make videos using many input channels it could be a problem. Great work anyway !
@antoinedevldn
@antoinedevldn 3 жыл бұрын
Thanks a lot, very usefull!
@thomasbob3879
@thomasbob3879 3 жыл бұрын
wonderful.!
@Bleenderhead
@Bleenderhead 3 жыл бұрын
any reason to use const int instead of #define?
@TheArtofCodeIsCool
@TheArtofCodeIsCool 3 жыл бұрын
It doesn't matter much in this case
@TankorSmash
@TankorSmash 3 жыл бұрын
That 'click the bell icon' sound effect is real low quality, it always sounds weird when I hear it.
@realcygnus
@realcygnus 3 жыл бұрын
So superb as always. One of those priceless gems for which there is surprisingly few quality tuts on still. I strongly recommend $uppurting such channels, to those who can.
@d74g0n
@d74g0n 3 жыл бұрын
What if that is a very small cup he drinks from; and he's just an extra tiny tiny alien man. Thank you for sharing your knowledge with us tiny alien man.
@MartinToernby
@MartinToernby 3 жыл бұрын
There wouldn't be room enough for math-related neurons in his head then. But again - he knows how warp space more than most!
Coding a crazy weave pattern
43:46
The Art of Code
Рет қаралды 12 М.
Useful functions for game designers - Cosine Interpolation
25:12
The Art of Code
Рет қаралды 12 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 219 М.
Newton's Cradle - An AI Film by Jeff Synthesized.
6:46
Jeff Synthesized
Рет қаралды 56 М.
The Sketchbook Series | Katsuya Terada
16:40
Trojan Horse Was a Unicorn
Рет қаралды 58 М.
How to Create Cool Bounce Effects Using a Loop
26:32
The Art of Code
Рет қаралды 7 М.
Germany Math Olympiad | A Very Nice Geometry Problem
11:24
Math Booster
Рет қаралды 4,9 М.
Coding the Game of Life - Part II
32:56
The Art of Code
Рет қаралды 6 М.
DEEPSEEK Vs CHATGPT There Is A  Clear Winner !!
15:53
Rick Aqua
Рет қаралды 16 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН