~/talk

Rendering 3D Worlds in C#

Talkat NDC Oslo 2020 · 2020-06-08..06-12· [creative-coding]
slides:none on file

A working raycaster written in C# converts a 2D string-array map (hashes = walls) into a 3D view by casting 1024 rays (one per horizontal pixel) and measuring distance to fill vertical columns; it runs from a .NET Core 3.1 console, uses ImageSharp to write bitmaps and a WinForms PictureBox to show a 60fps interactive demo, totals about 200 lines of code, supports simple lighting and floor/ceiling cheats, and successfully reproduces Wolfenstein-style rendering.

AI-written summary · about

  1. 0:00Start
  2. 4:32A MAITER OF PERSPECTIVE
  3. 28:50RAY CASTING
  4. 29:45CASTING RAYS
  5. 30:46MEASURING DISTANCE
  6. 33:20Height Percentage
  7. 34:01CONVERTING RAYS TO AN IMAGE
  8. 35:47WE'RE GONNA NEED A MAP
  9. 37:22A DATA STRUCTURE FOR OUR RAYS
  10. 39:45WORKING OUT RAY DIRECTION
  11. 40:32CAST DIRECTION
  12. 41:15FOLLOWING OUR RAY
  13. 43:02WORKING OUT THE NEXT STEP
  14. 45:50THE CALLING CODE
  15. 55:54GET THE CODE!
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.