Ray Casting 3D Engine v2.3

Ray Casting 3D Engine v2.3

by Argon26

👁 184,654 ❤️ 7,704 ⭐ 5,639 🔄 386
Created: Nov 1, 2020 Last modified: Sep 21, 2024 Shared: Jun 7, 2023

Description

All code by me, based on https://lodev.org/cgtutor/raycasting.html, https://stackoverflow.com/questions/67732676, and a video by The Coding Train https://www.youtube.com/watch?v=vYgIKn7iDH8

Instructions

Just a reminder, loves: any transphobia or bigotry in the comments will be reported (also thank you to all the very sweet people who have left messages of support - i love y'all <3) Use WASD to move, and the left and right arrow keys to turn. Use the number keys zero through four to set the resolution for better speed; 0 is lowest res (fastest) and 4 is highest res (slowest). Explore the tiny 3D environment I made, this time in an engine that actually works! MOBILE SUPPORT: @UK-NotUK made a wonderful mobile friendly version, check it out! https://scratch.mit.edu/projects/494151566 [BASED ON V2.0, NOT UP TO DATE] UPDATE LOG: v2.3: added (mostly functional) wall sliding v2.2: minor optimizations, more resolution options v2.2.1: explicitly set FOV in code (minor bug fix) v2.2.2: fixed crash when view ray clips through map corner (minor bug fix) v2.1: fixed fisheye effect, added resolution options v2.0: initial release

Project Details

Visibility
Visible
Comments
Enabled