video thumbnail 37:57
Coding Adventure: Ray Tracing

2023-04-01

[public] 292K views, 58.8K likes, dislikes audio only

channel thumbSebastian Lague
4K

I tried creating a custom ray/path tracing renderer. Featuring: maths, shaders, and cats!

This project was written in C# and HLSL, and uses the Unity game engine.

Source Code: https://github.com/SebLague/Ray-Tracing/tree/Episode01

Support the channel: https://www.patreon.com/SebastianLague

Coding Adventures Playlist: https://youtube.com/playlist?list=PLFt_AvWsXl0ehjAfLFsp1PGaatzAwo0uK

Learning Resources:

https://raytracing.github.io

https://blog.demofox.org/2020/05/25/casual-shadertoy-path-tracing-1-basic-camera-diffuse-emissive/

Music Credits:

https://github.com/SebLague/Misc-Project-Info/blob/main/Coding-Adventures/Ray-Tracing.txt

Chapters:

0:00 Intro

1:08 Cameras and Rays

3:30 The Pixel Shader

5:02 Drawing a Sphere

6:59 Multiple Spheres, and Colour!

8:21 Two Types of Reflections

9:04 Experimenting with Randomness

11:14 Random Hemisphere Directions

14:11 The Trace Function

16:35 Testing Lights

17:55 Chair Thief

18:23 Progressive Rendering

19:54 A Simple Sky

20:49 Lambert’s Cosine Law

22:47 Cosine Weighted Rays

22:36 Triangles

24:52 Some Tests

27:14 Specular Reflections

29:59 Tomatoes and Glossiness

31:57 Blur and Anti-Aliasing

34:42 Depth of Field

37:14 The End


Intro
/youtube/video/Qz0KTGYJtUk?t=0
Cameras and Rays
/youtube/video/Qz0KTGYJtUk?t=68
The Pixel Shader
/youtube/video/Qz0KTGYJtUk?t=210
Drawing a Sphere
/youtube/video/Qz0KTGYJtUk?t=302
Multiple Spheres, and Colour!
/youtube/video/Qz0KTGYJtUk?t=419
Two Types of Reflections
/youtube/video/Qz0KTGYJtUk?t=501
Experimenting with Randomness
/youtube/video/Qz0KTGYJtUk?t=544
Random Hemisphere Directions
/youtube/video/Qz0KTGYJtUk?t=674
The Trace Function
/youtube/video/Qz0KTGYJtUk?t=851
Testing Lights
/youtube/video/Qz0KTGYJtUk?t=995
Chair Thief
/youtube/video/Qz0KTGYJtUk?t=1075
Progressive Rendering
/youtube/video/Qz0KTGYJtUk?t=1103
A Simple Sky
/youtube/video/Qz0KTGYJtUk?t=1194
Lambert’s Cosine Law
/youtube/video/Qz0KTGYJtUk?t=1249
Cosine Weighted Rays
/youtube/video/Qz0KTGYJtUk?t=1367
Some Tests
/youtube/video/Qz0KTGYJtUk?t=1492
Specular Reflections
/youtube/video/Qz0KTGYJtUk?t=1634
Tomatoes and Glossiness
/youtube/video/Qz0KTGYJtUk?t=1799
Blur and Anti-Aliasing
/youtube/video/Qz0KTGYJtUk?t=1917
Depth of Field
/youtube/video/Qz0KTGYJtUk?t=2082
The End
/youtube/video/Qz0KTGYJtUk?t=2234
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
Coding Adventure: Clouds 1,136,153 views
/youtube/video/4QOcCGI6xOU
Coding Adventure: Portals 1,170,195 views
/youtube/video/cWpFZbjtSQg