Raytracing is a technique used to simulate real life lighting and vision. It can help to make shadows, reflections, refraction, etc. The problem is that it is very difficult to implement without too much lag because of the amount of data you have to deal with.
Raytracing part 2: • Raytracing is a PAIN t...
In this video, I started implementing raytracing for my voxel engine. Thankfully, since my voxel engine uses an octree to organize the voxels, that octree can be used by the ray to detect the voxels hit pretty fast, making the raytracer as fast, if not faster than meshes. The other cool thing is that having to build meshes everytime the terrain updated was pretty laggy. This raytracer can get the changes made to the terrain much faster.
I still have to add support for meshes, because right now the rays are just traced using the octree so they cannot hit any mesh.
---------------------------------
Subscribe for game making tutorials, other game-making related content and to follow my projects with the devlogs !
0:00 Intro
0:57 3D Renderer
1:21 Raytracing
2:20 How it's done
3:05 Squares
3:56 Perspective
4:42 Voxel World
6:06 Working Raytracer
6:30 How it works
7:34 Improvements & Textures
8:04 Sun
8:17 Transparency
8:35 Optimize
9:15 Destruction
9:45 Particles
11:19 Water & Reflection
12:00 Refraction
Негізгі бет Ойындар I Added RAYTRACING To My Voxel Engine ! ( From SCRATCH )
Пікірлер: 71