
3D Graphics OpenGL V3
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

(FNF) Rainbow Friends Test 〜Friends To Your End〜 Ver.2.1
by Peipei---

4 new buttons remix
by Lalajo3232

Untitled - 0.786972
by super_mario_kun

No More Deals [Chara Fight]
by dude_mehi

Crossbow Legends - A Mobile Shooting Game
by lilpigie

【 マイクラMOD 】 青が最強
by horiyouta

Beat Up Lollipop 3.20.10 no mores
by liy2017645

【新アニ】イメージャー第⓵話「イメージャー」
by arukari_denchi

☁️ GOLF BATTLE Online! ☁️ #games
by the_bee_1234

Hill Climb Racing Glitch mod
by thenoahcoding4

FNF - Psych Engine
by CoderThatDoesStuff

Beat Up Red (2)
by elevatorfan1978

Bonus Buttons Spiffy Exe Buttons Park
by kari1213

Beat Up Lollipop 2 (V11)
by patrickpatnich

Beat Up (Stupid) Coiny
by YUM_PEPSI

Beat Up Brigid remix
by jacejimerson7

the scratch 3.0 show episode two: milk
by zvardin

Just beat up shapes
by Da_Dovahkiin

Super Pixel Aquarium V 1.5 remix
by sweet-kitten

murder time trio
by Rai103

beat up dora with buble menu and normal buttons remix
by bjb2003

(UPDATED) new Interactive Spanish Alphabet Lore
by tokage1103

Beat Up Sonic ._.
by xanderafa

Beat Up Bonzi Buddy 2!
by Alfie_Ben16