Applying Lighting Back to Depth Peels
?
?

Keyboard Navigation

Global Keys

[, < / ], > Jump to previous / next episode
W, K, P / S, J, N Jump to previous / next timestamp
t / T Toggle theatre / SUPERtheatre mode
V Revert filter to original state Y Select link (requires manual Ctrl-c)

Menu toggling

q Quotes r References f Filter y Link c Credits

In-Menu and Index Controls

a
w
s
d
h j k l


Esc Close menu / unfocus timestamp

Quotes and References Menus and Index

Enter Jump to timestamp

Quotes, References and Credits Menus

o Open URL (in new tab)

Filter Menu

x, Space Toggle category and focus next
X, ShiftSpace Toggle category and focus previous
v Invert topics / media as per focus

Filter and Link Menus

z Toggle filter / linking mode

Credits Menu

Enter Open URL (in new tab)
0:07Recap and set the stage for the day
0:07Recap and set the stage for the day
0:07Recap and set the stage for the day
1:44Run the game to show where we left off with the lighting
1:44Run the game to show where we left off with the lighting
1:44Run the game to show where we left off with the lighting
6:00A few words on playing around with new rendering techniques, considering what to do now
6:00A few words on playing around with new rendering techniques, considering what to do now
6:00A few words on playing around with new rendering techniques, considering what to do now
7:19handmade_opengl.cpp: Prevent TransferLight() in CompileZBiasProgram() from attentuating based on the facing direction, and run the game to show that
7:19handmade_opengl.cpp: Prevent TransferLight() in CompileZBiasProgram() from attentuating based on the facing direction, and run the game to show that
7:19handmade_opengl.cpp: Prevent TransferLight() in CompileZBiasProgram() from attentuating based on the facing direction, and run the game to show that
8:57Determine to produce an output image using the lighting data
8:57Determine to produce an output image using the lighting data
8:57Determine to produce an output image using the lighting data
12:16handmade_opengl.cpp: Consider how to extend CompilePeelComposite() to use our lighting data
12:16handmade_opengl.cpp: Consider how to extend CompilePeelComposite() to use our lighting data
12:16handmade_opengl.cpp: Consider how to extend CompilePeelComposite() to use our lighting data
14:34handmade_opengl.cpp: Augment CompilePeelComposite() to pull in the normals for each peel sampler
14:34handmade_opengl.cpp: Augment CompilePeelComposite() to pull in the normals for each peel sampler
14:34handmade_opengl.cpp: Augment CompilePeelComposite() to pull in the normals for each peel sampler
17:50handmade_opengl.cpp: Introduce LightPeel() in CompilePeelComposite()
17:50handmade_opengl.cpp: Introduce LightPeel() in CompilePeelComposite()
17:50handmade_opengl.cpp: Introduce LightPeel() in CompilePeelComposite()
20:00handmade_opengl.cpp: Introduce UnpackNormal2() and UnpackNormal3() in the GlobalShaderHeaderCode
20:00handmade_opengl.cpp: Introduce UnpackNormal2() and UnpackNormal3() in the GlobalShaderHeaderCode
20:00handmade_opengl.cpp: Introduce UnpackNormal2() and UnpackNormal3() in the GlobalShaderHeaderCode
23:27handmade_opengl.cpp: Continue to implement LightPeel() in CompilePeelComposite(), performing our lighting equation computation1
23:27handmade_opengl.cpp: Continue to implement LightPeel() in CompilePeelComposite(), performing our lighting equation computation1
23:27handmade_opengl.cpp: Continue to implement LightPeel() in CompilePeelComposite(), performing our lighting equation computation1
35:15handmade_opengl.cpp: Introduce MaxLightIntensity global_variable, as a poor person's tone mapping
35:15handmade_opengl.cpp: Introduce MaxLightIntensity global_variable, as a poor person's tone mapping
35:15handmade_opengl.cpp: Introduce MaxLightIntensity global_variable, as a poor person's tone mapping
37:28Blackboard: Light Value Mapping
37:28Blackboard: Light Value Mapping
37:28Blackboard: Light Value Mapping
42:38Blackboard: Picking a "response curve" based on film stock
42:38Blackboard: Picking a "response curve" based on film stock
42:38Blackboard: Picking a "response curve" based on film stock
44:53handmade_opengl.cpp: Enable CompilePeelComposite() to sample and compute a response curve for LightC
44:53handmade_opengl.cpp: Enable CompilePeelComposite() to sample and compute a response curve for LightC
44:53handmade_opengl.cpp: Enable CompilePeelComposite() to sample and compute a response curve for LightC
49:53handmade_opengl.cpp: Pass ToCamera to LightPeel()
49:53handmade_opengl.cpp: Pass ToCamera to LightPeel()
49:53handmade_opengl.cpp: Pass ToCamera to LightPeel()
50:06handmade_opengl.cpp: Try and #define BeginShaderString and EndShaderString to enable 4coder to indent the heredocs
50:06handmade_opengl.cpp: Try and #define BeginShaderString and EndShaderString to enable 4coder to indent the heredocs
50:06handmade_opengl.cpp: Try and #define BeginShaderString and EndShaderString to enable 4coder to indent the heredocs
53:27handmade_opengl.cpp: Introduce ExtendNormalZ() for CompilePeelComposite() to call
53:27handmade_opengl.cpp: Introduce ExtendNormalZ() for CompilePeelComposite() to call
53:27handmade_opengl.cpp: Introduce ExtendNormalZ() for CompilePeelComposite() to call
56:20handmade_opengl.cpp: Enable CompilePeelComposite() to link up our samplers and bind our textures
56:20handmade_opengl.cpp: Enable CompilePeelComposite() to link up our samplers and bind our textures
56:20handmade_opengl.cpp: Enable CompilePeelComposite() to link up our samplers and bind our textures
1:01:19handmade_opengl.cpp: Make CompilePeelComposite() set ToCamera
1:01:19handmade_opengl.cpp: Make CompilePeelComposite() set ToCamera
1:01:19handmade_opengl.cpp: Make CompilePeelComposite() set ToCamera
1:03:40Run the game to see what it does
1:03:40Run the game to see what it does
1:03:40Run the game to see what it does
1:03:46Toggle off the debug lighting visualisation and run the game to see a pure black screen
1:03:46Toggle off the debug lighting visualisation and run the game to see a pure black screen
1:03:46Toggle off the debug lighting visualisation and run the game to see a pure black screen
1:04:22handmade_opengl.cpp: Investigate why CompilePeelComposite() is failing to correctly light the scene
1:04:22handmade_opengl.cpp: Investigate why CompilePeelComposite() is failing to correctly light the scene
1:04:22handmade_opengl.cpp: Investigate why CompilePeelComposite() is failing to correctly light the scene
1:07:24handmade_opengl.cpp: Make CompilePeelComposite() write out the normal directly, and run the game to see that
1:07:24handmade_opengl.cpp: Make CompilePeelComposite() write out the normal directly, and run the game to see that
1:07:24handmade_opengl.cpp: Make CompilePeelComposite() write out the normal directly, and run the game to see that
1:08:24handmade_opengl.cpp: Make CompilePeelComposite() write out RefN, and run the game to see that it does not look good
1:08:24handmade_opengl.cpp: Make CompilePeelComposite() write out RefN, and run the game to see that it does not look good
1:08:24handmade_opengl.cpp: Make CompilePeelComposite() write out RefN, and run the game to see that it does not look good
1:09:03handmade_opengl.cpp: Fix UnpackNormal2() and PackNormal2() for CompilePeelComposite() to call
1:09:03handmade_opengl.cpp: Fix UnpackNormal2() and PackNormal2() for CompilePeelComposite() to call
1:09:03handmade_opengl.cpp: Fix UnpackNormal2() and PackNormal2() for CompilePeelComposite() to call
1:12:04Run the game to see more sane normals
1:12:04Run the game to see more sane normals
1:12:04Run the game to see more sane normals
1:12:27handmade_opengl.cpp: Make CompilePeelComposite() write out the DiffuseInner, and run the game to see that
1:12:27handmade_opengl.cpp: Make CompilePeelComposite() write out the DiffuseInner, and run the game to see that
1:12:27handmade_opengl.cpp: Make CompilePeelComposite() write out the DiffuseInner, and run the game to see that
1:14:03handmade_opengl.cpp: Make CompilePeelComposite() write out the SpecInner, and run the game to see that that is the problem
1:14:03handmade_opengl.cpp: Make CompilePeelComposite() write out the SpecInner, and run the game to see that that is the problem
1:14:03handmade_opengl.cpp: Make CompilePeelComposite() write out the SpecInner, and run the game to see that that is the problem
1:14:50handmade_opengl.cpp: Prevent CompilePeelComposite() from raising SpecInner to the power, and to make SpecularPower range from 1 to 16
1:14:50handmade_opengl.cpp: Prevent CompilePeelComposite() from raising SpecInner to the power, and to make SpecularPower range from 1 to 16
1:14:50handmade_opengl.cpp: Prevent CompilePeelComposite() from raising SpecInner to the power, and to make SpecularPower range from 1 to 16
1:15:41Run the game to see that
1:15:41Run the game to see that
1:15:41Run the game to see that
1:16:08handmade_opengl.cpp: Make CompilePeelComposite() output our computed lighting and run the game to see that it is sane
1:16:08handmade_opengl.cpp: Make CompilePeelComposite() output our computed lighting and run the game to see that it is sane
1:16:08handmade_opengl.cpp: Make CompilePeelComposite() output our computed lighting and run the game to see that it is sane
1:16:26handmade_opengl.cpp: Prevent CompilePeelComposite() from accounting for the LightC, and run the game to see nothing
1:16:26handmade_opengl.cpp: Prevent CompilePeelComposite() from accounting for the LightC, and run the game to see nothing
1:16:26handmade_opengl.cpp: Prevent CompilePeelComposite() from accounting for the LightC, and run the game to see nothing
1:16:56handmade_opengl.cpp: Prevent OpenGLRenderCommands() from calling FakeSeedLighting(), and make it call ComputeLightTransport() before binding the ResolveFramebuffer
1:16:56handmade_opengl.cpp: Prevent OpenGLRenderCommands() from calling FakeSeedLighting(), and make it call ComputeLightTransport() before binding the ResolveFramebuffer
1:16:56handmade_opengl.cpp: Prevent OpenGLRenderCommands() from calling FakeSeedLighting(), and make it call ComputeLightTransport() before binding the ResolveFramebuffer
1:18:03Run the game to see our lit scene
1:18:03Run the game to see our lit scene
1:18:03Run the game to see our lit scene
1:19:10handmade_opengl.cpp: Try to make LightPeel() in CompilePeelComposite() use the computed LightN, and run the game to see almost black
1:19:10handmade_opengl.cpp: Try to make LightPeel() in CompilePeelComposite() use the computed LightN, and run the game to see almost black
1:19:10handmade_opengl.cpp: Try to make LightPeel() in CompilePeelComposite() use the computed LightN, and run the game to see almost black
1:19:37handmade_opengl.cpp: Revert LightPeel() to overwrite that LightN again
1:19:37handmade_opengl.cpp: Revert LightPeel() to overwrite that LightN again
1:19:37handmade_opengl.cpp: Revert LightPeel() to overwrite that LightN again
1:20:36Run the game
1:20:36Run the game
1:20:36Run the game
1:21:08handmade_opengl.cpp: Enable OpenGLRenderCommands() to switch between all the lighting buffers
1:21:08handmade_opengl.cpp: Enable OpenGLRenderCommands() to switch between all the lighting buffers
1:21:08handmade_opengl.cpp: Enable OpenGLRenderCommands() to switch between all the lighting buffers
1:25:15Run the game to switch between the lighting buffers
1:25:15Run the game to switch between the lighting buffers
1:25:15Run the game to switch between the lighting buffers
1:25:18win32_handmade.cpp: Swap the keys in Win32ProcessPendingMessages() for shifting up and down the levels of detail
1:25:18win32_handmade.cpp: Swap the keys in Win32ProcessPendingMessages() for shifting up and down the levels of detail
1:25:18win32_handmade.cpp: Swap the keys in Win32ProcessPendingMessages() for shifting up and down the levels of detail
1:25:41Run the game and switch between the different buffers
1:25:41Run the game and switch between the different buffers
1:25:41Run the game and switch between the different buffers
1:26:23handmade_opengl.cpp: Start to investigate the artifacting
1:26:23handmade_opengl.cpp: Start to investigate the artifacting
1:26:23handmade_opengl.cpp: Start to investigate the artifacting
1:29:15Check the timeα
1:29:15Check the timeα
1:29:15Check the timeα
1:29:43Blackboard: Diffuse mapping, sampling an entire hemisphere of incoming light
1:29:43Blackboard: Diffuse mapping, sampling an entire hemisphere of incoming light
1:29:43Blackboard: Diffuse mapping, sampling an entire hemisphere of incoming light
1:34:25Consider treating the light like a fluid, or at least making the down sample be more controlled
1:34:25Consider treating the light like a fluid, or at least making the down sample be more controlled
1:34:25Consider treating the light like a fluid, or at least making the down sample be more controlled
1:37:37handmade_opengl.cpp: Determine to make the texture dimensions in CompileMultiLightUp() not based on the render dimensions
1:37:37handmade_opengl.cpp: Determine to make the texture dimensions in CompileMultiLightUp() not based on the render dimensions
1:37:37handmade_opengl.cpp: Determine to make the texture dimensions in CompileMultiLightUp() not based on the render dimensions
1:39:33handmade_intrinsics.h: Introduce FindMostSignificantSetBit()
1:39:33handmade_intrinsics.h: Introduce FindMostSignificantSetBit()
1:39:33handmade_intrinsics.h: Introduce FindMostSignificantSetBit()
1:40:56handmade_opengl.cpp: Make CompileMultiLightUp() set the lighting texture dimensions to the closest power of two to the render dimensions
1:40:56handmade_opengl.cpp: Make CompileMultiLightUp() set the lighting texture dimensions to the closest power of two to the render dimensions
1:40:56handmade_opengl.cpp: Make CompileMultiLightUp() set the lighting texture dimensions to the closest power of two to the render dimensions
1:43:33Run the game to see the lighting buffers are more squat than expected, and investigate why
1:43:33Run the game to see the lighting buffers are more squat than expected, and investigate why
1:43:33Run the game to see the lighting buffers are more squat than expected, and investigate why
1:44:24handmade_opengl.cpp: Make CompileDepthPeelToLighting() take the FragUV
1:44:24handmade_opengl.cpp: Make CompileDepthPeelToLighting() take the FragUV
1:44:24handmade_opengl.cpp: Make CompileDepthPeelToLighting() take the FragUV
1:47:25Run the game to see that we're in better shape
1:47:25Run the game to see that we're in better shape
1:47:25Run the game to see that we're in better shape
1:48:21handmade_opengl.cpp: Consider setting the normals to something more sane
1:48:21handmade_opengl.cpp: Consider setting the normals to something more sane
1:48:21handmade_opengl.cpp: Consider setting the normals to something more sane
1:49:13Run the game and consider basing the lights' directional values on where they came from
1:49:13Run the game and consider basing the lights' directional values on where they came from
1:49:13Run the game and consider basing the lights' directional values on where they came from
1:52:12Blackboard: Building a vertex buffer of reflector facing directions
1:52:12Blackboard: Building a vertex buffer of reflector facing directions
1:52:12Blackboard: Building a vertex buffer of reflector facing directions
1:58:33Blackboard: Writing reflectors directly into a 3D texture, rather than using the depth peel pass
1:58:33Blackboard: Writing reflectors directly into a 3D texture, rather than using the depth peel pass
1:58:33Blackboard: Writing reflectors directly into a 3D texture, rather than using the depth peel pass
2:00:39Q&A
🗩
2:00:39Q&A
🗩
2:00:39Q&A
🗩
2:01:46tricksterzorua So, I would like to ask something: Any advice for beginners? Most likely asked before, but I just heard about this, and while I am interested in game development and programming in general, I never managed to learn a language. I want to try again with C# and a course from Microsoft
🗪
2:01:46tricksterzorua So, I would like to ask something: Any advice for beginners? Most likely asked before, but I just heard about this, and while I am interested in game development and programming in general, I never managed to learn a language. I want to try again with C# and a course from Microsoft
🗪
2:01:46tricksterzorua So, I would like to ask something: Any advice for beginners? Most likely asked before, but I just heard about this, and while I am interested in game development and programming in general, I never managed to learn a language. I want to try again with C# and a course from Microsoft
🗪
2:02:36asafgartner Is there going to be a top-level that doesn't have a ceiling and instead would have direct sunlight?
🗪
2:02:36asafgartner Is there going to be a top-level that doesn't have a ceiling and instead would have direct sunlight?
🗪
2:02:36asafgartner Is there going to be a top-level that doesn't have a ceiling and instead would have direct sunlight?
🗪
2:03:40cad97 Does "no library" include no standard library?
🗪
2:03:40cad97 Does "no library" include no standard library?
🗪
2:03:40cad97 Does "no library" include no standard library?
🗪
2:04:44soysaucethekid To do smooth edges, do you need to do the multisampling on all the buffers (normal, diffuse, etc)?
🗪
2:04:44soysaucethekid To do smooth edges, do you need to do the multisampling on all the buffers (normal, diffuse, etc)?
🗪
2:04:44soysaucethekid To do smooth edges, do you need to do the multisampling on all the buffers (normal, diffuse, etc)?
🗪
2:05:42kilo_pasztetowej Any advice to working with all-OOP 'n' const programmers?
🗪
2:05:42kilo_pasztetowej Any advice to working with all-OOP 'n' const programmers?
🗪
2:05:42kilo_pasztetowej Any advice to working with all-OOP 'n' const programmers?
🗪
2:08:34stephenlast Does GL have support for fully 3D textures?
🗪
2:08:34stephenlast Does GL have support for fully 3D textures?
🗪
2:08:34stephenlast Does GL have support for fully 3D textures?
🗪
2:09:24ravarix As someone who was taught and always worked with OO programming, how does one enlighten themselves?
🗪
2:09:24ravarix As someone who was taught and always worked with OO programming, how does one enlighten themselves?
🗪
2:09:24ravarix As someone who was taught and always worked with OO programming, how does one enlighten themselves?
🗪
2:14:47emmacrantz Could you overlay an additive gradient on top of the "card" geometry to make them seem to have more depth (to emulate more of a cone shape)?
🗪
2:14:47emmacrantz Could you overlay an additive gradient on top of the "card" geometry to make them seem to have more depth (to emulate more of a cone shape)?
🗪
2:14:47emmacrantz Could you overlay an additive gradient on top of the "card" geometry to make them seem to have more depth (to emulate more of a cone shape)?
🗪
2:16:08cubercaleb Wouldn't trilinear sampling for a 2D texture imply sampling across different MIP levels? If so, what T value does the GPU use to interpolate between the layers?
🗪
2:16:08cubercaleb Wouldn't trilinear sampling for a 2D texture imply sampling across different MIP levels? If so, what T value does the GPU use to interpolate between the layers?
🗪
2:16:08cubercaleb Wouldn't trilinear sampling for a 2D texture imply sampling across different MIP levels? If so, what T value does the GPU use to interpolate between the layers?
🗪
2:16:47Blackboard: Picking the correct MIP level for trilinear sampling
2:16:47Blackboard: Picking the correct MIP level for trilinear sampling
2:16:47Blackboard: Picking the correct MIP level for trilinear sampling
2:23:27karroffel What are your opinions on DRM?
🗪
2:23:27karroffel What are your opinions on DRM?
🗪
2:23:27karroffel What are your opinions on DRM?
🗪
2:23:30deravadom Okay, since we're low on questions. I'm working on an AI to play a game, and I'm wondering if you have any general tips for it. More specifically, the game is World of Warcraft. Right now I'm only at basic functions and working on the image processing pipeline
🗪
2:23:30deravadom Okay, since we're low on questions. I'm working on an AI to play a game, and I'm wondering if you have any general tips for it. More specifically, the game is World of Warcraft. Right now I'm only at basic functions and working on the image processing pipeline
🗪
2:23:30deravadom Okay, since we're low on questions. I'm working on an AI to play a game, and I'm wondering if you have any general tips for it. More specifically, the game is World of Warcraft. Right now I'm only at basic functions and working on the image processing pipeline
🗪
2:24:07Wind it down
🗩
2:24:07Wind it down
🗩
2:24:07Wind it down
🗩