Sprites Behind Walls (Depth Sorting) | E4. Crazy Fun Raycasting
How to depth sort entities in a raycast 3d scratch game. In episode 4 we learn to raycast to a list, depth sort that list shuffling in our entities as we go, and then draw from our list to render the scene. Wow - and it's looking real spooky! This is an awesome tutorial for creating that 3d game you've all been wanting to make!
๐ Next Episode #5 - https://youtu.be/swWi1ynPbdo (Early Access)
๐ฅ Bug Fixes - https://youtu.be/vqaKQzZLAes
Don't forget to submit your projects to the studio linked below by commenting the project URL in the studio comments.
My tutorials are for all budding game & software developers using Code Blocks. Scratch On guys!
โญ Channel membership with perks - https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join
๐ฑ Scratch Studio for this tutorial - https://scratch.mit.edu/studios/31052531/
๐ Part 1 - https://youtu.be/M1c5TcdITVs
๐ Full Episode Playlist - https://www.youtube.com/playlist?list=PLy4zsTUHwGJKolO9Ko_j6IStFIJnTYBul
๐ Quick and Fun Tutorials - https://www.youtube.com/playlist?list=PLy4zsTUHwGJKByTn_qV76oTpEYGczqEb_
โค๏ธ Scratch Addons - https://scratchaddons.com/
๐น Video Editing Software - https://techsmith.pxf.io/c/2682566/506622/5161
--------------Video Chapters--------------
0:00 Intro
0:42 Behind a Wallโฆ?
1:38 Raycast into a list
7:22 Drawing the Scene from the Lists
11:29 Ordering the lists by Distance
13:35 Insertion Sort
18:04 Include Entities in the Sort
20:20 Handle Entity Drawing from the List
24:34 Entity Brightness
25:43 More Entities
29:41 Fixing the Level Colors
30:27 Outro
Other Videos By griffpatch
Other Statistics
Scratches Statistics For griffpatch
griffpatch currently has 24,500,415 views spread across 87 videos for Scratches. There's over 1 day worth of watchable video for Scratches published on his channel, roughly 49.28% of the content that griffpatch has uploaded to YouTube.