Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

Monday, April 24, 2023

Coding Adventure: Ray Tracing [VIDEO SUMMARY]

In the video "Coding Adventure: Ray Tracing" by Sebastian Lague, the creator explores the fascinating world of ray tracing, a rendering technique that simulates the paths of light rays to create realistic images of 3D scenes. The video demonstrates the process of implementing ray tracing, starting with basic concepts and gradually building up to more complex features such as reflections and depth of field.


Sebastian begins by researching ray tracing, utilizing resources such as the "Ray Tracing in One Weekend" trilogy and a series of blog posts on casual ShaderToy path tracing. He uses a game engine to set up a scene with spheres and a camera, then calculates the positions of points on the projection plane to create a grid. This grid is used to determine the direction of rays that will be shot into the world to calculate what the camera should see.

The video demonstrates the process of sending rays from the camera's position and calculating their intersection with objects in the scene, such as spheres. This intersection information is used to determine if the ray hits an object, and if so, the distance, position, and surface normal vector of the hit. The surface normal vector is crucial for determining how rays should bounce off the surface.

Sebastian also explores the concept of generating random numbers and random directions for rays, which is essential for simulating the scattering of light on various surfaces. He implements a method for generating random points on the surface of a sphere and ensures that the rays are distributed uniformly over a hemisphere oriented around the surface normal vector.

The video showcases the process of tracing the path of a ray through a scene and calculating the amount of light received by the camera. This is done using a loop that iterates through each bounce of the ray, updating the ray's position and direction based on the surface it hits. The amount of light received is calculated by multiplying the ray color by the object's material color, and the final image is created by averaging the contributions from multiple rays.

Sebastian then demonstrates how to add more advanced features, such as specular reflections, which simulate the behavior of light bouncing off smooth surfaces like mirrors. He also shows how to implement depth of field, a technique that blurs objects that are not in focus, by randomly offsetting the ray origin and adjusting the focus distance.

Throughout the video, Sebastian presents various examples and case studies to illustrate the concepts and techniques discussed. These examples include rendering spheres with different colors and materials, creating a simple scene with a room and walls of different colors, and experimenting with more complex models such as the Blender monkey and a low-poly horse.

In conclusion, "Coding Adventure: Ray Tracing" offers an engaging and informative exploration of ray tracing techniques and their application in video game development. The video provides a solid foundation for understanding the principles of ray tracing and offers inspiration for further experimentation and improvement. For those interested in learning more or seeking help with their projects, the creator recommends joining the 'Wizard Code Discord' at http://bit.ly/WizardsCode.

Sunday, April 23, 2023

What is a Shader? | Pixel and Vertex Shaders [VIDEO SUMMARY]

The video "What is a Shader? | Pixel and Vertex Shaders" is published by Game Dev Academy, and it discusses the role of shaders in creating 3D graphics for video games. The video explains the functions and applications of vertex shaders and pixel (fragment) shaders in the game development process.


A shader is a small program that runs on a graphics card or GPU, manipulating a 3D scene during the rendering pipeline before the image is drawn on the screen. Shaders enable various rendering effects to be created quickly enough for real-time applications, such as video games. The video focuses on two types of shaders: vertex shaders and pixel (fragment) shaders.

Vertex shaders are used to modify the position of vertices, color, and texture coordinates in the rendering process. They can make changes to existing vertices but cannot create new ones. The video provides an example of an image before and after changes made by the vertex shader. Both images are the same 3D model, but the second image has a shader applied, modifying the position of the vertices in the rendering process. Vertex shaders have numerous applications, and the video shows an example of water shaders where the height of the vertices is modified to create a rippling water effect.

Pixel shaders, on the other hand, calculate effects on individual pixels. They generally deal with determining the color of each pixel, taking into account factors such as translucency, shadows, fogging, and lighting. One popular use for pixel shaders is employing bump maps or normal maps to affect how geometry looks when reacting to light, creating more detailed models without the need for high polygon counts. The video presents an example of two models with identical polygon counts, but the one on the right has a normal map applied. The pixel shader uses data provided by the normal map to adjust the color of the pixels based on their reaction to the applied light.

In summary, the video by Game Dev Academy explains the importance of shaders, specifically vertex and pixel shaders, in creating realistic 3D graphics for video games. Vertex shaders modify the position of vertices, while pixel shaders calculate effects on individual pixels. Both types of shaders contribute to the overall visual appeal and realism of video game graphics.

Friday, April 21, 2023

Game Audio Sound Design Workflow with John Pata [VIDEO SUMMARY]

In this tutorial video, game audio sound designer John Pata from Eleventh Hour Audio demonstrates his approach to creating and implementing custom sound design assets for first-person shooter gameplay. He outlines his game audio workflow and designs assets using sounds from CORE 2 Creator. The video is divided into five sections: an introduction, a gameplay demo, analyzing gameplay, designing assets, and implementing into audio middleware (FMOD Studio). The video also offers a free sampler of sounds from CORE 2.


John begins by introducing himself and his approach to game audio sound design. He stresses the importance of understanding the game's mechanics and the player's experience to create a cohesive and immersive audio experience. He then proceeds to demonstrate his approach to designing audio assets for first-person shooter gameplay using a gameplay demo.

After analyzing the gameplay, John explains how he creates custom sound design assets for the game. He uses CORE 2 Creator to find and manipulate sounds to create unique audio assets that fit the game's aesthetic. He emphasizes the importance of experimentation and iteration to find the right sound for the game.

In the next section, John walks through the process of implementing the custom sound design assets into the game using FMOD Studio. He explains how he uses FMOD Studio's tools to create interactive and dynamic audio experiences that respond to the player's actions in the game.

The video concludes with a brief outro where John encourages viewers to let him know what other sound design tutorials they would like to see.

Overall, this tutorial video provides a comprehensive and informative overview of John Pata's game audio sound design workflow. It offers practical insights and tips for designing and implementing custom sound design assets for first-person shooter gameplay. The video is well-produced and John's expertise and knowledge in game audio sound design are evident throughout the video. The free sampler of sounds from CORE 2 Creator is also a great resource for game audio sound designers.

SHATTER / DESTRUCTION in Unity (Tutorial) [VIDEO SUMMARY]

The video titled "SHATTER / DESTRUCTION in Unity (Tutorial)" by Brackeys provides a step-by-step tutorial on how to create realistic shattering and destruction effects in Unity. The video explains that there are two ways to achieve destruction in Unity: through a script or by splitting up the model in a modeling software. While the first method is performance-intensive, the second method allows for more control over how the object shatters.


To demonstrate the process, the video uses a wooden crate and a glass bottle as examples. Brackeys provides a link to download destructible versions of these objects and explains how to add colliders and rigid bodies to each piece of the object. The video also shows how to create a script that will make an object shatter when clicked on by the user.

The tutorial emphasizes the importance of adjusting the mass of each piece and the overall object to achieve a realistic effect. The video also shows how to create a destroyed version of the object and turn it into a prefab for easy use in future projects.

In addition to the wooden crate and glass bottle examples, the video shows how to apply the shattering effect to a whiskey bottle and multiple balls. Brackeys encourages viewers to experiment with creating their own scripts for shattering objects in unique ways.

Overall, the video provides a comprehensive and easy-to-follow tutorial on how to create realistic shattering and destruction effects in Unity. The step-by-step instructions are clear and concise, and the examples provided demonstrate the versatility of the technique. Brackeys' knowledge and expertise in Unity is evident throughout the video, making it a valuable resource for anyone looking to add destruction effects to their projects.