Finance Certifications Goldman Sachs & Amazon Teams Trust
MIT Sloan: Lead AI Adoption Across Your Organization — Not Just Pilot It
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore ray casting and line segment intersection in this comprehensive game programming lecture. Learn the fundamentals of ray casting and its applications in lighting and visibility for 2D games. Dive into the mathematics behind line segment intersection, including step-by-step calculations and pseudocode implementation. Gain insights into 2D game visibility and lighting techniques, and understand the principles behind a light and sight demo. This lecture, part of the COMP4300 Game Programming course at Memorial University, provides essential knowledge for aspiring game developers interested in mastering these crucial concepts for creating immersive game environments.
Syllabus
- Preroll
- Greeting
- Lecture Start
- What is Ray Casting?
- Lighting and Visibility
- Ray Casting Problem
- Line Segment Intersection
- Line Segment Math
- Calculating Intersection
- Solving for t and u
- Intersection Pseudocode
- 2D Game Visibility / Lighting
- Light and Sight Demo Explained
Taught by
Dave Churchill