Description
Been a while, eh? My goal for this project was to build a 3D graphics engine in scratch in the same way that it is done in OpenGL, a standard for 3D graphics. This meant doing things like matrix math, z-buffers, and 4D homogeneous coordinates - things that normally aren't used for 3D scratch projects. Most 3D scratch projects (https://scratch.mit.edu/projects/118602500/ for example) use the painter's algorithm to draw their scenes (see https://en.wikipedia.org/wiki/Painter%27s_algorithm), drawing polygons one at a time, from back to front. Because of it's speed, the painter's algorithm is the best way to do 3D for scratch, but there are limitations (see the wiki article). Because of that, real 3D graphics programs instead rasterize polygons into individual pixels, and draw the scene pixel by pixel. This allows for textures, smooth shading, intersections, and other features that are hard to do when drawing triangle by triangle. Unfortunately, pixel based drawing is very slow in scratch. Many computers use the GPU to speed up the whole process, hardware that scratch can't utilize. If you're interested, here's some more info on OpenGL and 3D computer graphics: https://www.scratchapixel.com/lessons/3d-basic-rendering/rasterization-practical-implementation/overview-rasterization-algorithm https://learnopengl.com https://www.khronos.org/opengl/wiki/Rendering_Pipeline_Overview Credits: https://opengameart.org/content/urban-skyboxes https://sketchfab.com/3d-models/pixel-low-poly-spaceship-eaad1ae4bf6a43fd9f3a80400dacbbfd
Instructions
- try turbowarp: https://turbowarp.org/560149534 - WASDQE to move & arrow keys to turn - Z to toggle skybox - C to toggle metallic material that reflects the skybox - X to switch between models. A number of comments noted how the monkey looks creepy (I agree), so I added a spaceship too. If you want to import your own 3D model, texture, or skybox, see the import sprite's costume. The current model is a lower-poly, textured version I made of Suzanne from Blender.
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
-

Lexington motorsports headquarters
by Sacandaga
-

TALKING TOM AND BEN NEWS CHRISTMAS 2023 remix
by jace18099
-

Beat Up Granny (5)
by Tyler-Time
-

Squid Game Season 1 Game 6: Squid Game [FINALE] [MOBILE VERSION]
by WizC15
-

Numbericons 1-2000 remix-2 remix remix
by jayden2015paul
-

Battle Cats Clicker!
by mrscratchergreat
-

tornado sandbox (temporarily stop) 0.2
by phantugiabach
-

AY in Roulette of Trapdoors! [ Remix 17 | 44 Players]
by Julian4-301
-

Sonic color rush simulator
by Magudragon
-

Subfactorial Numberblocks Band (unfinished)
by lunagolucraft
-

Hollow Knight: Riven
by AkiraNishiki
-

Project: Wall of Death - Storm Chasing (Probing and Mesonet) remix-4 remix
by sebastian_solace2413
-

Numberblocks Band: Fives Edition: 0 to 150
by SwellTwelve
-

雪合戦deバトル 改 V13
by 02515617
-

Logo Factory version 1.1
by camlovesnfl
-

New Baseball Scoreboard
by Glasterz
-

It's halfway done, yay
by --Diamond-
-

Debug Console v1.0
by Daikonn_Archive
-

henry, evil henry, ellry, sonic stickmin and eille get Grounded remix
by THEBOYLOVESPIZZA
-

SP
by CSIMR01
-

Vac Man The Game 6!
by Owen5763
-

Flight Simulator
by mybingo127
-

Beat Up Scratch cat 9.0
by loganthabear
-

【猫ミーム】【ポーランドボール】日清戦争
by kasei_nozomi