ScratchData LogoScratchData
Back to sly_i's profile

3D checkerboard floor

SLsly_i•Created May 9, 2025
3D checkerboard floor
13
3
183 views
View on Scratch

Instructions

3d checkerboard floors give the player the illusion of speed and direction in first or third person motion. move mouse to move around Update: Added infinite scrolling, skybox from @atomicmagicnumber and a fade to soften the grass floor as suggested by @chrome_cat

Description

This uses ~40 triangles and <800 blocks and hopefully is backpackable with 3 global variables. Main perf improvements in the method are : 1. Only draw one color of the checkerboard 2. Only draw visible quads by culling on zclip and x-frustum 3. Camera pitch is offset on projection calculation 4. Reduces quad detail near horizon This uses an .obj model with 16x16 tiled plain 256 half it to 128 quads for one color. X and Z mods the camX and camZ to give an infinite floor effect. The camera pitch is offset on projection calculations but not the camera movement to reduce horizon tri count. Skybox sprite hides the snapping of new quad loading in on the horizon when in motion. Maybe stamping could be faster? Based off @ChromeCat_test excellent project "Simple 3D Engine" Skybox code & background from @atomicmagicnumber https://scratch.mit.edu/projects/677065493

Project Details

Project ID1172865885
CreatedMay 9, 2025
Last ModifiedMay 28, 2025
SharedMay 9, 2025
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root