diff --git a/README.md b/README.md index fcbdcfb..5439a70 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,20 @@ This technic has the hability to not show hidden area by design, which is a grea How it works : +1. first you determine the position and orientation of the viewer in the map, and the distance and width of the screen + -> png map with eye and screen +2. then you will scan this fictif screen with rays, each ray will correspond to a column in the 3D view + -> gif rays scanning, then columns simutanously appear on both side +3. when a ray reaches a wall, it draw it in the 3D view + -> png one ray on close box +4. the height of the wall is inversely proportional to the length of the ray : the shorter the ray, the higher the wall + -> png two rays, one for each box +5. so a full scan gives the illusion of perspective + -> gif scan of the rays with fish eye +6. but this gives rounded walls, like a fish eye effect, because rays change length while scanning the wall, so we must apply a correction according to the angle + -> gif scan with strait walls + +--- 1. first you determine the position and orientation of the viewer in a plan, ![](assets/raycast_step1.png) diff --git a/assets/cube3d_raycasting_steps_construction.xcf b/assets/cube3d_raycasting_steps_construction.xcf deleted file mode 100644 index e5f1b5e..0000000 Binary files a/assets/cube3d_raycasting_steps_construction.xcf and /dev/null differ diff --git a/assets/cube3d_raycasting_construction_gif.xcf b/assets/raycasting_construction_gif.xcf similarity index 100% rename from assets/cube3d_raycasting_construction_gif.xcf rename to assets/raycasting_construction_gif.xcf diff --git a/assets/cube3d_raycasting_explanation.xcf b/assets/raycasting_explanation.xcf similarity index 100% rename from assets/cube3d_raycasting_explanation.xcf rename to assets/raycasting_explanation.xcf diff --git a/assets/raycasting_steps_construction.xcf b/assets/raycasting_steps_construction.xcf new file mode 100644 index 0000000..89eacff Binary files /dev/null and b/assets/raycasting_steps_construction.xcf differ diff --git a/assets/cube3d_raycasting_steps_gif.xcf b/assets/raycasting_steps_gif.xcf similarity index 100% rename from assets/cube3d_raycasting_steps_gif.xcf rename to assets/raycasting_steps_gif.xcf diff --git a/assets/cube3d_raycasting_steps_gif_round.xcf b/assets/raycasting_steps_gif_round.xcf similarity index 100% rename from assets/cube3d_raycasting_steps_gif_round.xcf rename to assets/raycasting_steps_gif_round.xcf