[video output=day297 member=cmuratori stream_platform=twitch stream_username=handmade_hero project=code title="Separating Entities into Z Layers" vod_platform=youtube id=hpoNQhVY634 annotator=Miblo]
[1:04][Recap and set the stage for the day]
[2:10][Demo the problem with alpha blending textures separately]
[4:20][handmade_render_group.h: Consider adding slice information to render_entry_cliprect]
[7:03][handmade_world_mode.cpp: Consider specifying relative floor layers]
[12:04][handmade_world_mode.cpp: Make UpdateAndRenderWorld loop over the LevelIndex, using PushClipRect to set the ClipRectIndex]
[17:48][handmade_render_group.h: Introduce transient_clip_rect]
[20:41][handmade_world_mode.cpp: Make UpdateAndRenderWorld put the three main layers into a different ClipRectIndex]
[23:24][handmade_entity.cpp: Introduce UpdateAndRenderEntities]
[30:08][handmade_world_mode.cpp: Make UpdateAndRenderWorld call UpdateAndRenderEntities]
[30:40][handmade_entity.cpp: Test the clipping by halving the size of the screen for the current layer]
[32:48][Run the game and see that we're clipped to the lower part of the screen]
[34:16][handmade_entity.cpp: Make UpdateAndRenderEntities compute CameraRelativeGroundZ per LevelIndex]
[38:51][handmade_entity.cpp: Set the CameraRelativeGroundP in UpdateAndRenderEntities immediately before rendering]
[42:24][handmade_entity.cpp: Extract RelativeLayer from OffsetP.z in UpdateAndRenderEntities]
[45:54][handmade_entity.cpp: Make UpdateAndRenderEntities set CameraRelativeGroundZ based on the Origin]
[49:25][handmade_entity.cpp: Introduce ConvertToLayerRelative]
[53:29][handmade_render_group.h: Introduce clip_rect_fx]
[54:29]["We can handle it"][quote 493]
[54:35][Consider reducing the system down to two slices]
[59:14][handmade_render_group.cpp: Make PushClipRect take a clip_rect_fx]
[1:00:06][Run the game and see that the slices are not being perspective transformed]
[1:00:49][Q&A][:speech]
[1:01:28][@insofaras][I added some preliminary moderation code to insobot. At the moment it will just print out when it would time out]
[1:03:24][@epigone00][It's been a while, did I see you programming without wrist braces? Are you not affected anymore?]
[1:06:24][@guitarm87][Is Jeff Atwood a good programmer?]
[1:08:27][@ingenero][When you were working on switching between the software and hardware renderer yesterday, why did it look like there was still a very slight color difference?]
[1:09:59][@vidster88][What would you say are the top three things that have made Molly Rocket successful in your eyes from a startup / business perspective?]
[1:13:06][@epigone00][Do you mind name dropping her? I live in Seattle too and have a new wrist issue with programming[ref
    site="Pure Motion Physical Therapy"
    url="http://www.puremotionphysicaltherapy.com/"]]
[1:15:57][@cyberdr8gon][As someone back at Episode 054, how far gone am I? Haha, just kidding. Thanks for everything, Casey!]
[1:16:35][@neitchzehrer][Do you find that your hands shake when holding a drinking glass? That's the only time my hands shake at all]
[1:17:15][Wind it on down][:speech]
[/video]
