ScratchData LogoScratchData
Back to Bold_Cat's profile

Optimized Raycast Engine v1 - Easily make 3D games!

BOBold_Cat•Created March 3, 2021
Optimized Raycast Engine v1 - Easily make 3D games!
7
6
66 views
View on Scratch

Instructions

V1.1 is out adding mouse-look functionality! Check it out here: https://scratch.mit.edu/projects/497091588/ Poor quality? Press 'O' then slowly increase the quality. This is the first Scratch 3D engine! The goal of this project is to make 3D as simple as 2D is. The project works by casting 2D rays into a 2D map and generating distance calculations based off that. This makes it super easy to edit the 3D environment: simply edit the map. Unfortunately this renderer currently doesn't have physics support or full 3D mouse look (coming soon in v2!), but this is enough for most basic projects. What's coming in V2: - More speed and optimizations - Basic 3D physics - 3D mouselook - Textured floor/ceiling - better lighting algorithms - 16-color rendering support based off map

Description

I got the idea of a 3D engine when looking at some 3D project code. It all had to be custom-made for the specific project. The goal here was to create something that can be used to create all sorts of 3D projects from Laser Tag games to Mazes and to make it easy to edit the environment. If you use this in your project, please be sure to credit me so that more people can make their own 3D games easily! A simple "3D renderer is 'Optimized Raycast Engine' by Bold_Cat" goes a long way! - What the settings do - Press 'O' for options - RenderResolution is currently broken, doesn't do anything - Wall color changes the color of the walls - Smoothing changes the amount of averaging between the different samples - Speed changes player speed - Quality changes the sample resolution, the higher the better. NOTE: Please do not max this out right away as it may cause the project to crash. Slowly increase until the frame rate gets low. #3d #games #cool #raycasting

Project Details

Project ID496076358
CreatedMarch 3, 2021
Last ModifiedMarch 8, 2021
SharedMarch 4, 2021
Visibilityvisible
CommentsAllowed