ScratchData LogoScratchData
Back to Coolcodhilloner's profile

3d engine REWRITE

COCoolcodhilloner•Created February 13, 2024
3d engine REWRITE
2
2
21 views
View on Scratch

Instructions

This is a complete rewrite of my somewhat popular "simple 3d engine test" project. I hope it does well. This took me like 5 decades to make. I hope you like it. Don't use Scratch to run this (unless you want 2 seconds per frame), use Turbowarp: https://experiments.turbowarp.org/pointerlock/965602305/fullscreen?stuck Progress --------------------------------------------------- I'm posting this project as soon as it's created so I can document the process. - 13 FEB 2024: Project started. I'll see what I can do in this short amount of time. - 13 FEB 2024: Just started using @TheLogFather 's triangle fill. - 13 FEB 2024: Added sorting. Very buggy. I'll try to fix it later. - 13 FEB 2024: Fixed buggy sorting. Turns out I mixed something up, so now that's fixed. - 13 FEB 2024: Made a cube. Manually. I could have spent those 23 boring minutes adding lighting. Oh well... - 13 FEB 2024: I ADDED LIGHTING! - 14 FEB 2024: I imported an OBJ file, and I will try to put it on here. - 14 FEB 2024: Fixed some bugs with the interpreter, made the loading function, and it didn't work properly. Yeah, it added the triangles, but I just didn't use the information right. I did some research, and I figured out that my way of creating the triangles based on the data was completely wrong! Well, I guess that's a struggle for tomorrow. - 15 FEB 2024: OBJ file loading works now! - 16 FEB 2024: Adding collision. - 16 FEB 2024: Added collision. - 16 FEB 2024: Using arrow keys to rotate is no more! You now use your mouse to rotate. - 17 FEB 2024: I tried to add raytraced shadows, but it failed miserably... - 29 FEB 2024: Fixed z-clipping issues. - 2 MAR 2024: Added outlines for whatever reason. It's not perfect, but it's good enough for me. - 5 MAR 2024: Added the ability to save OBJ files in the project and reference them. Also tweaked shading a bit and added an RGB value cap to stop the weird things from happening that occur when an RGB value is above 255. - 20 MAR 2024: Now supports Turbowarp's Pointerlock experiment. - 22 MAR 2024: Tried to add sphere hitboxes. - 22 MAR 2024: You can now press SHIFT+G to enable God Mode. - 28 MAR 2024: Added group rotation. That basically means you can rotate non-static objects, or OBJ files that have the "Create Group?" option on. - 28 MAR 2024: Finally added MTL file support! After loads of trial and error, your models can finally have color! - 6 APR 2024: You can now press G to toggle backface culling. - 6 APR 2024: If you see anything unusual about your model when loading it, you can now flag it. - 21 JUN 2024: Added lines. - 4 AUG 2024: Added points. How to import an OBJ file ----------------------------- - Convert the OBJ file into a TXT file - Import the TXT file into the "OBJ LOADING | OBJ FILE" list. - Run this block stack Flagging an OBJ file -------------------------- - If you see anything unusual about your model when you load it, you can use the "Flag File" block. - For example: a. Your model has a thin line or dot that's not supposed to be there. b. Your model is missing a triangle. Credits ----------------------------------------------------- ✈ 2D Triangle fill: @TheLogFather ✈ Text Engine: @griffpatch

Project Details

Project ID965602305
CreatedFebruary 13, 2024
Last ModifiedMarch 7, 2025
SharedFebruary 13, 2024
Visibilityvisible
CommentsAllowed