Welcome to Ray Tracing

  Рет қаралды 204,856

The Cherno

The Cherno

Күн бұрын

Пікірлер: 287
@TheCherno
@TheCherno 2 жыл бұрын
Thanks for watching! ❤️ Who else is super excited for this series? I’ve left some resources and extra info for you to check out in the description box. To brush up on your math, I highly recommend you take a look at Brilliant! I deliberately chose them as the sponsor for this series because they’ve got so many relevant courses and they’re really well made and engaging; visit brilliant.org/TheCherno to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
@oamioxmocliox8082
@oamioxmocliox8082 2 жыл бұрын
;)
@zxuiji
@zxuiji 2 жыл бұрын
I'll offer my tidbit here in case it's useful for the series, you can use the original 2d cell ray tracing thing on 3d cells if you split the 2 angles into their own normalised x/y axis first then multiply the 2 y axis against each other to get the actual y destination point, then the x axis for one angle's result is to be treated as the z axis, from there the usual whichever is lower (assuming I remembered that right) should be usable on the 3 values, plan to do my own experiments with it as soon as I get my instanced triangles on screen with just the uniforms I'm sending the GPU (all my vertices are set to 0 to eliminate them as a variable). **Edit:** I would convert 3d non-cellular scenes to cells with on the fly arrays 9 with pre-allocated memory for the cell I would work with, do a spiral fill of the max objects I'll process (anything outside the range will just get drawn normally as they'll be using low resolution textures), filling each cell's array with a list of objects that fall into said cell, then simply decided what to do non-cellular ray tracing on based on what cells are caught from the cellular ray tracing.
@webgpu
@webgpu 2 жыл бұрын
Hey Cherno! please, enable the "Thanks" button, just below the video, for us to "pay a cup of coffee"! 😀☕
@LimitedWard
@LimitedWard 2 жыл бұрын
For naming, I like "Halide". Silver halides are the chemicals used in analog film photography which capture the light on the film. It doesn't quite fit into the nut-based naming scheme, but it's a vague riff off the word Hazel.
@Nick-lx4fo
@Nick-lx4fo 2 жыл бұрын
@@RandomUser2401 Nut Tracing
@bersK00
@bersK00 2 жыл бұрын
@@RandomUser2401 as opposed to nut traces
@leobottaro
@leobottaro 2 жыл бұрын
I already started my own copy of the code to learn this! I'm very excited! ray tracing rendering is something I always wanted to try, but the amount of boilerplate and complexity to even show something simple on screen always kept me back, I'm really glad you did awesome by providing us a workable template. Thank you!
@samochreno
@samochreno 2 жыл бұрын
Great timing, just wanted to learn ray tracing im excited for this series
@davidm2.johnston684
@davidm2.johnston684 2 жыл бұрын
+1 haha
@HalfStab
@HalfStab 2 жыл бұрын
So excited for the series. Was just trying to learn ray tracing!
@webgpu
@webgpu 2 жыл бұрын
random fact: in brazil, whenever we read "excited" it immediately brings "sexual excitement" to mind, because that's the only meaning of this word over here 🕺💃 ( "i am excited" ("eu estou excitado") is interpreted by all brazilians as "i have a boner")
@evan_game_dev
@evan_game_dev 2 жыл бұрын
For anyone confused at 17:56 the reason we store it seemingly backwards is because of endianess. Modern computers store data in little endian, meaning that the low bits, or the last digits we write will be stored first, effectively flipping it in memory. I would highly recommend anyone to play around with this concept
@randyprime
@randyprime 2 жыл бұрын
who knew math was good for game dev lmfao I use Brilliant on the daily, highly recommend
@TheCherno
@TheCherno 2 жыл бұрын
True story, saw you mention Brilliant (being brilliant) in yesterday's changelog. Hope that linear algebra is going well!
@Nick-lx4fo
@Nick-lx4fo 2 жыл бұрын
@@altblock + Discrete Mathematics
@anders5611
@anders5611 2 жыл бұрын
computers do math, so yeah.
@Bobbias
@Bobbias 2 жыл бұрын
Cherno, I really love what you've been doing. You somehow manage to be extremely clear in your explanations while also being quite concise. Now if only someone would cover compiler writing in the same way :)
@silvertakana3932
@silvertakana3932 2 жыл бұрын
Ray tracing was the reason I learn programming! Thanks Cherno!
@TheCherno
@TheCherno 2 жыл бұрын
Me too!
@t3v727
@t3v727 2 жыл бұрын
funny to find you here too :)
@moskito98
@moskito98 2 жыл бұрын
Such an amazing timing for me as i was looking for something like this to start in the next couple of days.. thank you so much
@mihairadita9313
@mihairadita9313 2 жыл бұрын
Hello Cherno. You're making very interesting and useful videos. What series I mostly want to continue is the Game Engine Series.I really miss that series.I hope you will continue with that because you're doing a great job.Thank you for these wonderful tutorials
@KennyTutorials
@KennyTutorials 2 жыл бұрын
Maybe he will continue this series but in complete different format, because the more the engine grows, the more things are added, the more difficult it becomes to tell and the more to make a video and eventually it just becomes impossible. Jan seemed to say on the stream that in December or January he would do mono integration for C# scripting, but this did not happen. Then I started implementing scripting for my engine from scratch, I've never worked with something like this at all. It took me about 3 months, of course, in my free time from studying, to integrate Mono and scripting, and now there are bugs with some components, especially with physics. So here I understand Jan)
@tambow44
@tambow44 2 жыл бұрын
Wonderful, as always. Signed up for Brilliant - it really is, thanks!
@mr.mirror1213
@mr.mirror1213 2 жыл бұрын
for some odd reason KZbin didn't notify me bruh , I AM LOOKING FORWARD TO THIS SERIES SOO MUCH
@kangarht
@kangarht 2 жыл бұрын
whoa I did not expect a raytracing video having not a single word about raytracing :)
@jonathangrahl
@jonathangrahl 2 жыл бұрын
Been waiting for a series like this! A colleague mentioned Path Tracing to me a few days ago but I felt it was too complex to jump into. This will be a great start :)
@Prdification
@Prdification Жыл бұрын
Thanks for doing this, just set it up and rendered my sweet noise, looking forward to see the progress!
@msoulforged
@msoulforged 2 жыл бұрын
Loved this series! Can't wait the next video. Kudos!
@oolongtee1198
@oolongtee1198 2 жыл бұрын
i found the second edition of physically based rendering just last night in my friends apartment and bought it home with me! a quick skim by itself made my head spin but im really excited to scratch the surface this summer
@mascit
@mascit 2 жыл бұрын
this is much more than a series on RayTracing. Can't wait for the next episodes :D
@mikeytrw
@mikeytrw Жыл бұрын
This is perfect!! I'm already about 35% through the RT in a weekend tutorial, taking my time with it to understand exactly what's going on and make subtle changes.
@simongido565
@simongido565 2 жыл бұрын
Always when I start learning something and I am struggling, TheCherno comes to save the day :D
@iXmerof
@iXmerof 2 жыл бұрын
Dear IMGui and GLFW, YES! I was about to start learning these, please do not skip aaany of the tiny tiny details :) I am hungry not only for basics how to use, how to start with, but for variety of use cases, traps, patterns, optimizations and other real life world stuff, especially once we want to play with Vulkan which is another big YES from me! If you want to consider multi-hours long streams? Yes, please!
@williamist
@williamist 2 жыл бұрын
heck yeah! i've been waiting for this for a while. nice to see you finally do it :)
@rankail
@rankail 2 жыл бұрын
I just worked trough the raytracing in one weekend series. Perfect timing. I really didn't know how to make it faster/run on the gpu. Totally hyped for this series. 👍
@yuppieyup8188
@yuppieyup8188 2 жыл бұрын
Hey, were you able to generate the image shown on the cover of Raytracing in the weekend first course?
@rankail
@rankail 2 жыл бұрын
@@yuppieyup8188 yes. Took some time though because i only have a laptop and it's not the best. I finished the second course too. Just had some problems with the third.
@neo-mashiro
@neo-mashiro 2 жыл бұрын
Fantastic! I have been waiting for this series for years!
@arnedebeer
@arnedebeer 2 жыл бұрын
Oh boii does this series come at the right time! I'm really hyped!
@helpfulsquid2502
@helpfulsquid2502 2 жыл бұрын
Can't wait for the next videos!!
@anl5460
@anl5460 2 жыл бұрын
I'm really excited Cherno! Good luck 👍👍
@paviWasHere
@paviWasHere 2 жыл бұрын
ok... this is sick. thanks for making this series. I've always wanted to get into computer graphics but was scared and didn't really know where to start/how.
@constantin1693
@constantin1693 2 жыл бұрын
Hello, Cherno. Thanks for the series, I love your videos lot! Can you create a lesson about hybrid rendering and how to use ray trasing and rasterization at the same time for example about bvh tree, and how to work with it, because I think this structure also can help solve collision detection problem?
@not__nugget
@not__nugget 2 жыл бұрын
I think naming it "Macadamia" or maybe "MacadamiaRT" would be a pretty cool name!
@tljstewart
@tljstewart 2 жыл бұрын
I’ve been waiting for this series, thanks 🙏
@matheusreidopedaco
@matheusreidopedaco 2 жыл бұрын
How don't you have 1 trillion views? Your content is incredible.
@ahmadashbat
@ahmadashbat 2 жыл бұрын
Keep it going man, I wondering if there is a nice and motivated guy like you in KZbin!
@MoeGunz
@MoeGunz 2 жыл бұрын
I’m not great at math or am I a game dev but I watch these videos every time they drop and watch them in it’s entirety.
@jonatanperret8165
@jonatanperret8165 2 жыл бұрын
Can't wait for the episode 2, hurry pls 😜
@metashrew
@metashrew 2 жыл бұрын
that sponsor integration was super smooth. it makes perfect sense here too
@patvax137
@patvax137 2 жыл бұрын
Well I'm not really a graphics/rendering guy, more of a hardware guy actually, but I think the series will be very interesting. Also I think it was by far the best sponsor section I have seen done by him up until now :D
@DeathAtYourDoorStep
@DeathAtYourDoorStep 2 жыл бұрын
good video man! looking forward to this one for sure. walnut seems very interesting too... love the imgui docking branch :)
@XxxGuitarMadnessxxX
@XxxGuitarMadnessxxX 2 жыл бұрын
I know you said you wont reveal any more secrets in the video, but are there any plans on taking advantage of constexpr/consteval for something like creating shader tables or something similar at compile time? I've been messing around with compile time stuff recently, but only for some small const array population; if you plan on using those features I will be absolutely stoked lol I've been struggling with their usage in templates and could gain to glean some insight from ya lmao Anyways, super stoked for this new series and as always, thank you for the time you spend on putting these videos together!!
@Snail5008
@Snail5008 2 жыл бұрын
really excited!
@hassannawazish9300
@hassannawazish9300 2 жыл бұрын
I have already complete this 1st book but i like the way you explained, keep it up.
@pvtnewb
@pvtnewb 2 жыл бұрын
Oooh a new series, imma tune in
@ayanfecoker4996
@ayanfecoker4996 2 жыл бұрын
You could name it "TRACENUT"
@flance911
@flance911 2 жыл бұрын
I remember I made a ray tracer in pure javascript with coloring points in canvas. I learned how we see things, how light works etc. There were cubes and spheres, I made mirrors and glass.
@quillaja
@quillaja 2 жыл бұрын
ha, yea. I prototyped my first one in JS. Boy that was slow.
@avram_traian
@avram_traian 2 жыл бұрын
This is so exciting! Great work!
@scrambledmandible
@scrambledmandible Жыл бұрын
Hell yeah it's about time Ray Tracing In One Weekend got the limelight!
@charlestheanimator1676
@charlestheanimator1676 2 жыл бұрын
I'm quite excited to go through this series! I'm honestly still a newb here but I love content. I'm a year two CS student and these series are just so insanely interesting!
@razorstone3088
@razorstone3088 2 жыл бұрын
I am so excited for this series and thank you for giving references to these resources it will be very helpful
@VioletGiraffe
@VioletGiraffe 2 жыл бұрын
Not the first of your videos I watched, but this one got me excited and prompted to subscribe. Gonna follow with a Qt application at first, at least for the CPU part, already set up the skeleton project!
@EETechStuff
@EETechStuff 2 жыл бұрын
Many many thanks. I recently started (again) on the Raytracing In One Weekend CUDA version, and I've been trying to figure how to integrate IMGUI, etc., so this is great timing (since CUDA was giving me a headache). BTW, I cloned the code and it works perfectly, and I've been tweaking the Application.cpp "Select GPU" section to allow me to select either of my 2 GPU's (GTX1080ti and RTX2070Super) using VkPhysicalDevice. FWIW my render time for the random image is about twice yours (10mSec vs. your 5mSec), no matter which GPU I chose. EDIT: Oh, wait...I forgot that it depends on the size of the window/image you're rendering. DOH!!! Just made it a bit smaller and got 5mSec. Anyway, thanks again.
@Metalwrath2
@Metalwrath2 2 жыл бұрын
Super excited for this series
@zoiyoknd
@zoiyoknd 2 жыл бұрын
This series is going to be so cool!
@newbiex11
@newbiex11 2 жыл бұрын
Another awesome series thanks Cherno, you rocks
@AllexWallker
@AllexWallker 2 жыл бұрын
Thanks for your work man :)
@cgmaxman
@cgmaxman 2 жыл бұрын
This is awesome ! Really interested !
@santiagobarbosa615
@santiagobarbosa615 2 жыл бұрын
So excited for this series :) is there any vs theme you use? Or is it like really customized? I really like the colors
@masterjj1
@masterjj1 2 жыл бұрын
It comes with Visual Assist which costs money
@santiagobarbosa615
@santiagobarbosa615 2 жыл бұрын
@@masterjj1 F, thanks!
@jc-aguilar
@jc-aguilar 2 жыл бұрын
Thank you so much for sharing!!
@davidm2.johnston684
@davidm2.johnston684 2 жыл бұрын
Hey great idea for a series, thank you! However, is it possible to get an introduction to wallnut? I would have loved for such a series to really feel like it's from scratch, so that we can really understand everything that's happening. Thank you for considering it ;)
@99ZULU
@99ZULU 2 жыл бұрын
I'm not even interested in the graphics side of programming, but still somehow interested in this series.
@OG1Soul
@OG1Soul 2 жыл бұрын
Cheers Cherno for the great video!!
@heavycloud9545
@heavycloud9545 2 жыл бұрын
Mate you HAVE to do a reaction video on the unreal engine 5 train station video, it’s a serious game changer, the best anyone has seen up to now, please, it’s terrifyingly real.
@antoinedevldn
@antoinedevldn 2 жыл бұрын
The one we have been waiting for!
@manucousin3721
@manucousin3721 2 жыл бұрын
So happy to finally see this series. Do you guys know any good material to learn vulkan or is it ok just with opengl knowledge!?
@Basel-ll8fj
@Basel-ll8fj 2 жыл бұрын
very excited for this series 🌹
@demon_hunter9547
@demon_hunter9547 2 жыл бұрын
Finally, this is what I have been waiting for.
@siberskitigar
@siberskitigar 2 жыл бұрын
Spasibo Cherno
@trashkassett
@trashkassett 2 жыл бұрын
This was highly motivating. Looking forward to the new ray tracing videos.
@nickst2797
@nickst2797 2 жыл бұрын
Question: The 'Ray tracer in one weekend' series, end up creating a static ray tracer - not a real time one, is that correct? In your approach you will create a completely real time, dynamic one?
@luizgarciaaa
@luizgarciaaa 2 жыл бұрын
Amazing new series!
@LiamNebe
@LiamNebe 2 жыл бұрын
How about BunyaNut for the RT section of Hazel? Bunya trees kinda have a lot of straight branches, like rays, from the central trunk and matches the nut theme with some Aussie flavour.
@joysaha3927
@joysaha3927 2 жыл бұрын
Very much excited to learn this ❤️😇❤️. Thank you cherno master!
@DennisVlaanderen
@DennisVlaanderen 2 жыл бұрын
Considering is ray tracing and the sun sends out a tonne of rays, and sunflower seeds are considered to be nuts... "Sunflower" might be a nice name.
@dobbystudios2397
@dobbystudios2397 2 жыл бұрын
Awesome video mate. Any update on when the next one is coming out? Love your content. :)
@mehdimemar
@mehdimemar 2 жыл бұрын
Hi @Cherno, thanks for all the videos. Please enable the Thanks button.
@mateuszbahyrycz7003
@mateuszbahyrycz7003 2 жыл бұрын
We are still waiting :)
@evan_game_dev
@evan_game_dev 2 жыл бұрын
My engine isn't anywhere near ray tracing, but I'm still gonna watch this
@saeedawwad4302
@saeedawwad4302 2 жыл бұрын
"I'm not sponsored by this book. I just really like it" I laughed so hard for no reason on this 😂
@PixelSenseiAvi
@PixelSenseiAvi 2 жыл бұрын
Hi Cherno! Thanks a lot for the Ray-tracing series. Its just something at the back of my head, I am not very clear with. At 13:54 you used a shared_ptr. I wonder why and why not a unique_ptr?
@ВіталікБритан-х7ч
@ВіталікБритан-х7ч 11 ай бұрын
I made a project, prepared everything I needed, and in the end I realized that in the entire series there is no way to run this on a video card or, especially, to render objects consisting of polygons... And what kind of "Walnut" is this? I didn’t find any documentation or anything to explain work with shaders, maybe i need to work with the Vulkan... I dont know. But if the videos are called "Ray Tracing", it must be performed on the video card, at least in a regular fragment shader!... Maybe someone in the comments can help?
@LokiScarletWasHere
@LokiScarletWasHere 2 жыл бұрын
Call it Dietznut Dietz Nuts have two meanings - A fanatic of a particular brand of lanterns, and a brand of sausage bites.
@migueldejesustavares4168
@migueldejesustavares4168 2 жыл бұрын
YESSS THANK YOU FOR THIS
@matsomo
@matsomo 2 жыл бұрын
you should call it 3DzNuts
@garageman2236
@garageman2236 2 жыл бұрын
My dream of measuring exactly how much slower my computer is then Cherno's is finally realized!
@lelikalexus9258
@lelikalexus9258 2 жыл бұрын
Awesome! Just wanted to start learning computer graphics!
@g4fly4ever8
@g4fly4ever8 2 жыл бұрын
My god it's gonna be a fun series isn't it
@AgentM124
@AgentM124 2 жыл бұрын
Ligatures in programming, in my opinion may ruin readability sometimes. Interestingly, you have != convert into the symbol for not equals, but -> isn't converted into a right arrow symbol.
@erithax
@erithax 2 жыл бұрын
"RayNutter" is obviously the only acceptable name.
@absorbingdude
@absorbingdude 2 жыл бұрын
new story begins..
@julkiewitz
@julkiewitz 5 ай бұрын
"Why don't we do it every frame" ** Video codec exited the chat **
@derptyderp5287
@derptyderp5287 2 жыл бұрын
"Video compression is going to destroy this..." It sure did!
@MaxUzkikh
@MaxUzkikh 2 жыл бұрын
You are awesome! Ян! Thank you so much for hard work!
@rutvikpanchal5726
@rutvikpanchal5726 2 жыл бұрын
You basically wrote a shader rendering program on CPU, try rendering mandelbrot set in the next video as it's shader code is quite simple and makes for a cool thumbnail
@EvgenyMeshkov
@EvgenyMeshkov 2 жыл бұрын
I started doing my raytracer once & got axed by pulling my hair out over how to implement the function to rotate around the object's z coordinate - Blender style. So random :) But then I got other things to take care of. Well, maybe this series will make me return to my project and conquer my obstacles ))
@achtsekundenfurz7876
@achtsekundenfurz7876 2 жыл бұрын
Since the raytracer name isn't final yet, and most rays are natural and originate from stars, I suggest "AstroNut" ;)
@mastershooter64
@mastershooter64 2 жыл бұрын
Let's do raytracing on riemannian manifolds!
@teidenzero
@teidenzero 2 жыл бұрын
Thank you, thank you, thank you
@vitluk
@vitluk 2 жыл бұрын
That "sorry Rust people" hit me hard 😂 gonna port this to Rust anyway 😂
@richwolcott5904
@richwolcott5904 2 жыл бұрын
How about calling it Tigernut? They're hard and sweet. Tiger nuts, water, and a little cinnamon make an excellent horchata.
@av3stube480
@av3stube480 2 жыл бұрын
Maybe make a side project with Ray marching? That method is really cool too.
Rays and Spheres: The MATH! // Ray Tracing series
37:55
The Cherno
Рет қаралды 99 М.
I made a better Ray-Tracing engine
17:38
NamePointer
Рет қаралды 257 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
How Ray Tracing (Modern CGI) Works And How To Do It 600x Faster
32:06
Josh's Channel
Рет қаралды 584 М.
Making a Better Particle Simulation in C++ (Part 2)
25:05
Keyframe Codes
Рет қаралды 2,1 М.
CHESS! // Code Review
51:05
The Cherno
Рет қаралды 244 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Is C BETTER than C++ for beginners? // Code Review
31:16
The Cherno
Рет қаралды 84 М.
Coding Adventure: Ray Tracing
37:58
Sebastian Lague
Рет қаралды 1,2 МЛН
RAY TRACING! // Code Review
58:32
The Cherno
Рет қаралды 153 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН