From a48dec2d0d4990b3646f2d15d4bf4a8a8295965c Mon Sep 17 00:00:00 2001 From: aortigos Date: Sat, 7 Feb 2026 10:59:11 +0100 Subject: [PATCH] README update --- README.md | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a45934b..fc887c7 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,15 @@ **cub3D** is a graphical programming project inspired by the classic game *Wolfenstein 3D*, one of the first First-Person Shooters ever created. -The goal of this project is to build a **real-time 3D representation of a maze** from a **2D map**, +The objective of this project is to create a **real-time 3D representation of a maze** from a **2D map**, using the **ray-casting technique**, written in **C** and rendered with **MLX42**. -Each vertical stripe of the screen is rendered by casting a ray from the player’s -point of view, detecting wall intersections, computing distances, and projecting -textured walls with correct perspective. +The rendering is done column by column by casting rays from the player's point of view, detecting wall intersections, calculating distances, and projecting textured walls with proper persepective correction. Floor and ceiling colors are also rendered to complete the scene. This project focuses on: - Low-level graphics programming -- Mathematical projection +- Mathematical projection and geometry - Parsing and validation - Real-time rendering performance @@ -105,6 +103,28 @@ Example: ## Resources +The following resources were used during the development of this project +to understand ray-casting, cub3D structure, and common mistakes: + +- **42 cub3D Approach (ES)** + https://42-fran-byte-f94097.gitlab.io/docs/cub3d/cub3d-approach-es/#/ + Overview of the cub3D project. + +- **Harm Smits – cub3D Docs** + https://harm-smits.github.io/42docs/projects/cub3d + One of the most complete references for cub3D, including math, ray-casting concepts, + and implementation strategies. + +- **Ray Casting in C (Medium)** + https://ismailassil.medium.com/ray-casting-c-8bfae2c2fc13 + Clear explanation of ray-casting fundamentals with C-oriented examples. + +- **Raycasting Tutorial (YouTube)** + https://www.youtube.com/watch?v=G9i78WoBBIU + Visual explanation of the ray-casting technique, useful for understanding + perspective projection and wall rendering. + + ### AI Usage AI tools were used only as assistance, specifically for: