Coding Adventure: Ray Marching

  Рет қаралды 1,108,441

Sebastian Lague

Sebastian Lague

Күн бұрын

Пікірлер: 915
@SebastianLague
@SebastianLague 5 жыл бұрын
Hi everyone :) Not sure if this was clear from the first video, so to preempt any possible confusion about how this episode connects to the hydraulic erosion one -- it doesn't! The plan for this series is just to explore a variety of topics as I discover/become interested in them. So while I'll definitely be returning to the erosion project, there'll probably be a bunch of random stuff before then. With that said, I hope you enjoy the video! And as always, links to my project files, as well as the resources I used to learn about this stuff are all in the description.
@junpeiiori4720
@junpeiiori4720 5 жыл бұрын
S'all good, man! you can make a video on any topic and it'll still be a joy ride.
@SliphRahl
@SliphRahl 5 жыл бұрын
I'd be intrested to see more about the erosion project. Might be interesting if it worked toghetter with the Procedural landmass generation in some way.
@HadiExtreme
@HadiExtreme 5 жыл бұрын
Ray marching is super interesting! As is this series. I've learned a lot from you over the years, so thank you mate. I also had a ton of fun working on a fork of the Path Creator project 2 months ago, check it out if you have some time :)
@collinpearce310
@collinpearce310 5 жыл бұрын
Is there any chance you'll finish the ai series? The start of it was really great!
@tomasdougan1419
@tomasdougan1419 5 жыл бұрын
What you are doing with this series is fantastic, intuitive, and very entertaining. I love the improvisational nature of it where any given episode isn't related necessarily to the last. With each release, I find myself enthralled in your new project and in admiration of your curiosity. Keep up the incredible work! And thank you!
@monochr0m
@monochr0m 5 жыл бұрын
That pythagoras animation had me in tears
@erichlof
@erichlof 5 жыл бұрын
I actually LOL'd, which I rarely do
@adamprice4658
@adamprice4658 5 жыл бұрын
Pythagoras, the master programmer.
@Skyefaux
@Skyefaux 5 жыл бұрын
same lol
@pushqrdx
@pushqrdx 5 жыл бұрын
me too 😂 didn't see that coming
@Definitely_a_Fox
@Definitely_a_Fox 5 жыл бұрын
Slap slap
@CodeParade
@CodeParade 5 жыл бұрын
Your visuals are so nice looking! I'm interested to see what else you do with ray marching :)
@SebastianLague
@SebastianLague 5 жыл бұрын
Thanks, means a lot coming from you! I’ve had so many people recommending your videos in the comments, and I can see why - your work is incredible.
@randomsnow6510
@randomsnow6510 5 жыл бұрын
Hello cp! Btw your non euclidean engine could of been done in quake live since that game has seamless portals.
@isaacspiegel2395
@isaacspiegel2395 5 жыл бұрын
It would look so good in marble marcher👀
@lucywucyyy
@lucywucyyy 4 жыл бұрын
hello code parade i was just thinking of you for some reason lol
@samuelthecamel
@samuelthecamel 3 жыл бұрын
Aren't you the guy who made an entire game out of ray-marching fractals?
@BlukBlukGames
@BlukBlukGames 5 жыл бұрын
I really like this format of videos. As usual awesome
@SebastianLague
@SebastianLague 5 жыл бұрын
Thanks, happy you like it! :)
@slavcabbage2619
@slavcabbage2619 3 жыл бұрын
Sebastian Lague has to be my favorite coding youtuber. Its just the fact that all of his coding adventures are so interesting, entertaining, and most importantly inspiring.
@RoySchl
@RoySchl 5 жыл бұрын
those 2d visualizations showing how the algorithms work are awesome. (the rest of the video too)
@Jabrils
@Jabrils 5 жыл бұрын
Seb I watched the entire video with my jaw dropped because I have no idea what the hell you're doing. You've truly transcended into Ultra Instinct. Proud of you man 😭 also, request: can you visualize 3D ray marching like you did 2d?
@anujv2909
@anujv2909 5 жыл бұрын
Hello jabrils
@SebastianLague
@SebastianLague 5 жыл бұрын
Thanks :D Had a quick go at your request. It's a little ugly, but take a look here kzbin.info/www/bejne/ZnubpX59n6p4a7M
@djobbo
@djobbo 5 жыл бұрын
@@SebastianLague wow that's awesome
@manualvarado2212
@manualvarado2212 5 жыл бұрын
Love to see you here Jab!
@DoomRater
@DoomRater 4 жыл бұрын
Hey don't feel too bad, while I get a lot of these "free" calculations and renders are the result of caching the results of the technique and then coding stuff with those cached results, I can't visualise the actual code using those cached results in my own head.
@jordananderson2728
@jordananderson2728 5 жыл бұрын
4:30 "Dormammu, I've come to bargain!"
@parker9163
@parker9163 5 жыл бұрын
Exactly what it reminded me off
@ccricers
@ccricers 4 жыл бұрын
I wonder just how many particle and smoke effects in VFX for movies are based off fractals.
@ugur5721
@ugur5721 4 жыл бұрын
@@ccricers I wonder are they writing codes when making CGI.
@NStripleseven
@NStripleseven 3 жыл бұрын
Lol
@pinkajou656
@pinkajou656 3 жыл бұрын
HA
@jonathanravenhilllloyd2070
@jonathanravenhilllloyd2070 5 жыл бұрын
It feels so good to hear you say "I have no idea how the code works, but..." :D
@TranceDaNight8
@TranceDaNight8 5 жыл бұрын
Some technique like this one was used on the movie “Annihilation” for the alien life form, pretty spectacular
@bjarnes.4423
@bjarnes.4423 5 жыл бұрын
This format made me activate the bell. Keep up the good work!
@liaia7375
@liaia7375 5 жыл бұрын
I don't understand anything in this video But still enjoy it
@willmungas8964
@willmungas8964 4 жыл бұрын
Pretty shapes and colors!
@dazza2350
@dazza2350 3 жыл бұрын
Same
@xd123_
@xd123_ 5 жыл бұрын
4:23 rgb version of what you see when you press down on your eyeballs
@mihailazar2487
@mihailazar2487 5 жыл бұрын
02:49 HOLY VOLUMETRIC BOOLEANS OMG THIS IS BRILLIANT
@ValemVR
@ValemVR 5 жыл бұрын
This is so cool to render boolean surfaces at real time ! Loved it !
@momoaraki7934
@momoaraki7934 3 жыл бұрын
You are amazing teacher. I love how you focus on foundational functions to express conditional intersections and blends!
@kristinawaldt
@kristinawaldt 5 жыл бұрын
Your videos are amazing-the visualisations are so clear and easy to understand! Thank you for sharing this with us, it's very helpful and inspiring.
@himselfe
@himselfe 5 жыл бұрын
Expected the video to be trendy clickbait, learned about ray marching, clicked subscribe. As other comments have said, really nice format! No over-complication, just clear explanations backed by simple and easy to understand examples. Nicely done!
@soumyajitkushari675
@soumyajitkushari675 4 жыл бұрын
4:30 this looks like the extra terrestrial being from Annihilation
@RegahP
@RegahP 4 жыл бұрын
It does! That movie was awesome
@laurentrinks1111
@laurentrinks1111 4 жыл бұрын
I was looking for this comment! I know the visual person or whoever made a lot of the shapes very mathematical. Like the flowers and the mold were fractals. So I bet it was planned and the alien was that shape!
@adamglueckski8064
@adamglueckski8064 3 жыл бұрын
That extra terrestrial being was based on the mandelbulb! Same thing
@Hyuts
@Hyuts 4 жыл бұрын
Thank you for being such an amazing and generous person Sebastian!! The world needs more people like you.
@marty34534
@marty34534 5 жыл бұрын
Absolutely mind boggling! This kinda reminded me of old-school CSG in raytracing
@Jejkobbb
@Jejkobbb 5 жыл бұрын
Thats so fucking cool. And I agree that object blending is satisfying as hell. Keep up these amazing videos
@SpaceKebab
@SpaceKebab 2 жыл бұрын
object blending would be so useful for blending meshes!
@mikaxms
@mikaxms 5 жыл бұрын
That 2D sphere tracing looks so awesome!
@jaugretler9140
@jaugretler9140 2 жыл бұрын
Beautiful. Especially the visualisation of the Mandelbrot bulb has some otherworldly beauty to it
@bountyhunterj6822
@bountyhunterj6822 4 жыл бұрын
The eerie music was from one of my favourite games, Mindustry! **happiness noise**
@asherdemareuil8188
@asherdemareuil8188 6 ай бұрын
Realy?! I didn’t even notice!(also very happy I found a fellow comrade here)
@MrFedX
@MrFedX 5 жыл бұрын
I don’t understand how you can make a video that cool looking, yet at the same time super informative... And it’s just 5 minutes! That is really impressivez Thank you.
@grunch346
@grunch346 4 жыл бұрын
You could use the subtraction technique at 2:47 for making your clouds interact with the mountains and not go through them
@Vr0sen
@Vr0sen 5 жыл бұрын
By far the most easily understood Ray Marching video I've seen! I love the was you showcase code examples in a non-intrusive way, but still enough to get a basic understanding,
@Kiloku2
@Kiloku2 5 жыл бұрын
You already had my like when you put Pythagoras tapping away at a laptop
@kharekelas4259
@kharekelas4259 4 жыл бұрын
I watched this video 3 month before and had no idea what you talking about. But during the time I started to learn some basics about shader and ray marching, now by rewatching it, I found myself able to understand it and even comprehend some math logics you've used for certain effects.
@zumpiez
@zumpiez 5 жыл бұрын
Ahh, I see you have discovered the special effects from Annihilation
@ben_burnes
@ben_burnes 5 жыл бұрын
Was definitely my first thought too; was such a cool effect.
@Zi7ar21
@Zi7ar21 4 жыл бұрын
What do you mean
@ShimrraJamaane
@ShimrraJamaane 3 жыл бұрын
@@Zi7ar21 The movie Annihilation. The alien object looks almost exactly like the mandelbulb.
@Zi7ar21
@Zi7ar21 3 жыл бұрын
@@ShimrraJamaane I just searched for the scene and it appears that it is indeed a mandelbulb, with some transformations applied to it
@ShimrraJamaane
@ShimrraJamaane 3 жыл бұрын
@@Zi7ar21 I'm glad I now know the name for what that thing is. I want to render an hour long version of that and use it for my Zoom background :)
@ThefamousMrcroissant
@ThefamousMrcroissant 5 жыл бұрын
Very clean format. One of the easiest to listen to youtube tutors as well. Keep up the excellent work
@philosoaper
@philosoaper 5 жыл бұрын
so.. after ray marching comes ray jogging? ray sprinting? ray marathon? ray expedition racing?
@BradenBest
@BradenBest 4 жыл бұрын
ray podracing
@whimsy5623
@whimsy5623 4 жыл бұрын
Ray cross country.
@serbancercelescu6693
@serbancercelescu6693 5 жыл бұрын
Man, I don't usually comment on youtube for quite obvious reasons, but your channel is amazing. As a serious competitive programmer for four years and discrete algorithmics student, I can say that your videos are a truly incredible blend of theory and actual codings. A lot of kudos
@nrxpaa8e6uml38
@nrxpaa8e6uml38 3 жыл бұрын
OMG just imagine the "3D Mandelbrot" thing implemented for VR! It would be trippy af!
@narutolll
@narutolll 5 жыл бұрын
I'm still relatively new to programming and these coding adventures are refreshingly creative. I'm loving every second of these. Can't wait for the next one.
@FaffyWaffles
@FaffyWaffles 4 жыл бұрын
4:21 it the furnucking thing from annihilation.
@forfox
@forfox 3 жыл бұрын
that what i wontet to say
@manualvarado2212
@manualvarado2212 5 жыл бұрын
Woah, Sebastian! 8D Most of the images in this video were incredibly satisfying! Thank you so much for diving into these adventures, and for sharing them with us
@MrMusAddict
@MrMusAddict 5 жыл бұрын
Congratulations. You can now apply to become a visual effects artist for Marvel. That mandlebulb looks exactly like the quantum realm!
@doxxius3536
@doxxius3536 5 жыл бұрын
NO! If a recruitment agent gets him, no more this kind of videos. Company secret. Fuck Marvel and CGI studios!!! For someone is a lifetime opportunity and for others is slavery to trade secrets and other corporative BS. A similar thing happened to some YT channels.
@TaarLps
@TaarLps 4 жыл бұрын
I come back to this video and the one about marching cubes so often. I just love it.
@tranl1050
@tranl1050 5 жыл бұрын
4:33 Dormmamu, I have come to bargain
@mutyaluamballa
@mutyaluamballa 3 жыл бұрын
The fact that, all this stuff is done though code is itself mind blowing..
@electratix
@electratix 5 жыл бұрын
The 3D Visualisation of the Mandelbrot set reminds me of the film, Annihilation. WARRRPP warp warp bum BRRRUUUUUM
@MichaelProstka
@MichaelProstka 5 жыл бұрын
That is just about the single best explanation of ray marching I have ever come across. Very well done!
@antae5979
@antae5979 5 жыл бұрын
YES PLEASE, I don't mind having another 3Blue1Brown in my life
@JohnJohnson-ei5iy
@JohnJohnson-ei5iy 4 жыл бұрын
My head just exploded, God is watching your videos as a learning tool
@bakbak4960
@bakbak4960 5 жыл бұрын
"I messed around with it for a little bit" *do something I really need to improve my gaming development skills in such an easy way*
@segelsonproduction
@segelsonproduction 5 жыл бұрын
BEST video on SDF and Ray Marching, so clear and easy to follow, thanks!
@aiexzs
@aiexzs 4 жыл бұрын
I'm a simple man. I see 3D fractals, I click.
@tennohack6704
@tennohack6704 Жыл бұрын
0:17 I'm sorry but this is the funniest thing I've seen all week
@AK-ry5lh
@AK-ry5lh 5 жыл бұрын
Dude I love these videos. Any tips for someone to get started with such topics? I have extensive "standard" software engineering knowledge, but really no idea about graphics and all the other cool stuff you do.
@bencai605
@bencai605 5 жыл бұрын
Yeah these coding adventure videos make me wanna play around with stuff like this as well but im not sure where to even start ...
@MarioMazzotti
@MarioMazzotti 4 жыл бұрын
I have completely lost on that pythagoras!! You sir are awesome! Keep up the good work
@yyny0
@yyny0 5 жыл бұрын
Man, I love raytracing, even if it isn't computationally viable (yet)
@GameGonLPs
@GameGonLPs 5 жыл бұрын
But keep in mind that this is NOT raytracing, this is raymarching, they are not the same. Both are awesome though.
@SerBallister
@SerBallister 4 жыл бұрын
@@GameGonLPs Arguably ray marching is more expensive.
@thegreypoet9518
@thegreypoet9518 4 жыл бұрын
I was never great at maths. But maths and design intersect on a level that makes me marvel. To me, a religious person, it feels like the design of the universe is so mathematic. Watching these is like watching a sermon xD. But better tbh. Gorgeous work.
@antiscribe4150
@antiscribe4150 4 жыл бұрын
It makes me sad that I will never be able to play with the shapes from 3:18 because it is physically impossible
@goldyloxeg
@goldyloxeg Жыл бұрын
these visualizations were amazing for helping me understand ray marching. thank you!!
@Obyvvatel
@Obyvvatel 5 жыл бұрын
1:21 "we'll start by calculating distance to the scene". What does that mean?
@diegomendes1998
@diegomendes1998 5 жыл бұрын
I think is the distance from your point to the nearest point in the scene.
@SerBallister
@SerBallister 4 жыл бұрын
@@diegomendes1998 Yup, for a given 3D start point and direction (ray), you have a function that returns the distance to hit (distance function).
@MylaRolettoPingarelli
@MylaRolettoPingarelli 5 жыл бұрын
You're an inspiring person my man, I'm not on this level of coding but the things you do just captivate me. Love to see more of these videos maybe even longer videos either way I'm here and entertained
@QuadraAce
@QuadraAce 5 жыл бұрын
What tools/frameworks does he use?
@henryso4
@henryso4 5 жыл бұрын
it probably isn't too hard just to do a really basic opengl renderer and throw in imgui, with some inputs hooked to shader constants--then again raymarching is all in the fragment/pixel shader (whether you're an opengl or d3d guy!!) If you wanna get started on raymarching you can use shadertoy.com -- it sets up all the opengl stuff behind the scenes and lets you just write fragment shaders
@jhinius7689
@jhinius7689 4 жыл бұрын
I watched this a long time ago but recently started learning ray marching and omg this made things make so much more sense
@antiscribe4150
@antiscribe4150 4 жыл бұрын
Watched this video like 5 times and I'm still trying to understand it
@Srcsqwrn
@Srcsqwrn 4 жыл бұрын
I've only recently started in unity and learning coding. It's wild how only a short time ago I didn't understand most of anything you were talking about for code, or what I was seeing, but I thought things were interesting. Now I get little inklings of clues as to what is going on. I can't wait to keep on learning, and then eventually mess around with code in the same way you do!
@violenttriangles
@violenttriangles 3 жыл бұрын
Just shared this on twitter to explain this to an artist. Thank you for helping!
@MrWaketeu
@MrWaketeu 5 жыл бұрын
You are a genius, this visual are insane : thank you so much to share your experimental work with us, it is truly inspiring
@flobbinhoodgames8117
@flobbinhoodgames8117 5 жыл бұрын
Wow, this was really phenomenal! I like this format because you can experiment without being forced to slow down for long explanations and tutorials. That being said, I'd be thrilled if some of these videos turn into a tutorial series!
@FelheartX
@FelheartX 5 жыл бұрын
Awesome video dude. I love how you include all those steps, the many visualizations, the stuff you played around with (like 3:49).
@strivenlen640
@strivenlen640 5 жыл бұрын
Omg! These raymarching simulations are pure gold. I really enjoy every single video of coding adventures.. keep it up Sebastian
@davef21370
@davef21370 9 ай бұрын
Beautiful! At the start it looked like the cosmos giving birth to something as yet unknown.
@infinite_cows
@infinite_cows 5 жыл бұрын
that object blending is SO COOL
@zikaura
@zikaura 2 жыл бұрын
This man is a living legend
@michon96
@michon96 5 жыл бұрын
How can this video only have 200k views.. this channel is so awesome
@JacksMacintosh
@JacksMacintosh 5 жыл бұрын
I have no idea what I was looking at in the end, but it was beautiful
@sebastianrodriguezbojorge7123
@sebastianrodriguezbojorge7123 5 жыл бұрын
I like the video editing and how you acknowledge and describes your struggles as well. That pitagoras was 😂
@DerXavia
@DerXavia 5 жыл бұрын
amazing stuff, have to try it myself! The use of the distance function, to show/hide intersections of two objects, blew my mind
@Mrmr-ly3kz
@Mrmr-ly3kz 4 жыл бұрын
Seriously.. your programing is art.
@shoryaagarwal561
@shoryaagarwal561 3 жыл бұрын
Videos like these make me wonder why youtube doesn't let me like a video multiple times. Amazing work mate !
@MopeyFand
@MopeyFand 3 жыл бұрын
Your channel is a total gem. Subscribed for life.
@carmelwolf129
@carmelwolf129 10 ай бұрын
this stuff is extremely interesting. thank you for showing us all the experimentation results! i hope that once i have more time in my life i'll be able to mess around like this too
@thezachlambert
@thezachlambert 4 жыл бұрын
Thank you Sébastien for helping love math again!!!
@nullpointer9722
@nullpointer9722 5 жыл бұрын
Wow, your content deserves more views.
@bassemb
@bassemb 3 жыл бұрын
I recently started using MagicaCSG, a SDF-based modeling tool, and this helped demystify it for me, thanks!
@SonyCommander
@SonyCommander 5 жыл бұрын
Sharing this knowledge with us is such a wonderful thing to do, thank you very much
@urban24
@urban24 5 жыл бұрын
My jaw dropped at the object blending, and then you completely blew my brain out with the mandelbulb visualisation! So simple, yet so beautiful.
@Ivan_1791
@Ivan_1791 5 жыл бұрын
Geez, this is one of the best channels ever.
@DevanSoni
@DevanSoni 5 жыл бұрын
This is my most anticipated video series. Keep up the great work Sebastian!
@RSTao77432
@RSTao77432 5 жыл бұрын
Very cool video, probably my favourite coding video i've found so far...
@josh_swanson
@josh_swanson 5 жыл бұрын
Just what I was looking for! Currently prototyping a game that deals with clay and needed to figure out how to blend geometry seamlessly. This will be helpful.
@cmilkau
@cmilkau 5 жыл бұрын
If you know the ellipsoid method for solving linear systems, it provides a nice way of reducing the number of iterations on near-misses / almost parallel hits of flat surfaces (i.e. only works with boxes). If you don't know it, it (linearly) transforms flat shapes so that the closest one always stays at the same distance, while preserving volumes. This is the sames as squishing the distance sphere near flat surfaces to a pancake, so that you can move farther parallel to the surface in a single step.
@edwardslayd7816
@edwardslayd7816 5 жыл бұрын
Amazing Sebastian! I'm glad I stumbled across your videos! You have sparked creativeness in my brain! I hope to show you something you have inspired some day!
@someone5781
@someone5781 4 жыл бұрын
You're the bob ross of coding, I love these videos!
@dbolan
@dbolan 5 жыл бұрын
Digging the delaunay triangulation at the start!
@veda-powered
@veda-powered 5 жыл бұрын
Ray marching is cool, I particularly like Ray marching based and casting hybrids for voxels, which marches one distance each step, then tests intersection of the eight surrounding cubes, making a relatively speedy Ray casting engine for rendering voxels.
@ThomasGiles
@ThomasGiles 3 жыл бұрын
It's kind of insane you managed to explain how this all works in 5 minutes XD
@dabartos4713
@dabartos4713 5 жыл бұрын
Ok mate if you're enjoying this format, you just found the niche. Everyone seems to be loving it (me included) so if you're into it as well, keep it up! (I used to watch your videos 'at some point' when it popped up in my feed, on the second day and so on, but now I am going straight for it, pretty much like I do with Primitive technology ..)
@cocoarecords
@cocoarecords 5 жыл бұрын
This channel has a prosperous future
@jakemccallum7468
@jakemccallum7468 5 жыл бұрын
Instant subscription, brilliant video and fascinating topics .
@VerumBit
@VerumBit 4 жыл бұрын
wow, you are pushing it so much! the fractal end is Amazing! my best compliments
@altheslacker4198
@altheslacker4198 5 жыл бұрын
Thank you for easily the most interesting and enjoyable channel I have seen.
@dr20231may
@dr20231may 2 жыл бұрын
this visualization is very good , i understood much about Ray marching now
@tgsoon2002
@tgsoon2002 5 жыл бұрын
Coding adventure is the best series I have seen, beside some cold fusion video
Coding Adventure: Compute Shaders
5:25
Sebastian Lague
Рет қаралды 795 М.
Coding Adventure: Clouds
12:50
Sebastian Lague
Рет қаралды 1,2 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 28 МЛН
From Small To Giant 0%🍫 VS 100%🍫 #katebrush #shorts #gummy
00:19
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 91 МЛН
Yay😃 Let's make a Cute Handbag for me 👜 #diycrafts #shorts
00:33
LearnToon - Learn & Play
Рет қаралды 117 МЛН
Signed Distance Functions & Ray-Marching
24:14
Sum and Product
Рет қаралды 32 М.
Coding Adventure: Solar System
12:12
Sebastian Lague
Рет қаралды 865 М.
Ray Tracing: How NVIDIA Solved the Impossible!
16:11
Two Minute Papers
Рет қаралды 799 М.
I Made A Blob Shooting Game With Ray Marching
13:33
Visionary 3D
Рет қаралды 42 М.
How Ray Tracing (Modern CGI) Works And How To Do It 600x Faster
32:06
Josh's Channel
Рет қаралды 581 М.
Coding Adventure: Boids
8:35
Sebastian Lague
Рет қаралды 1,6 МЛН
Better Mountain Generators That Aren't Perlin Noise or Erosion
18:09
Josh's Channel
Рет қаралды 419 М.
Coding Adventure: Ant and Slime Simulations
17:54
Sebastian Lague
Рет қаралды 1,9 МЛН
I made this 3D game with ONLY code
9:06
Carter Semrad
Рет қаралды 445 М.
Ray Marching, and making 3D Worlds with Math
6:28
SimonDev
Рет қаралды 256 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 28 МЛН