WASD to move Arrows to rotate camera V to show other variables Space to change the light position The project for mesh generator: https://scratch.mit.edu/projects/1138548169/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To add a mesh, follow this mini tutorial: 1. Export the OBJ file. 2. Open inside the Mesh Generator project, set the OBJ list to the .OBJ file and the MTL list to the .MTL file. 3. Press enter and then triple click on the generated mesh and copy it. 4. Open the Mesh Renderer (this project) and go to the sprite called "Mesh" and there you grab a block called "Add mesh (name) (mesh)" to the "Add all meshes" block. 5. Grab the "Load mesh" block and put it in the "Update 1" broadcast bellow the "Add all meshes" block and set the first parameter to the mesh name you want to load and set the other paramenters to whatever you want. And there we go. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How to add a billboard sprite: 1. Go to the "Renderer" sprite and go to the costumes and add a whatever costume you want. 2. After that you go back to Coding and go to the "Draw all billboard sprites" block and grab the "New billboard sprite" and set the first parameter to the name of the sprite you want to add, and set the other parameters to the sprite position.
Triangle filler by @KryptoAlt Game loop by @ggenije 3D line by @ggenije and @MathMathMath 3D triangle engine by @CodingBio Z clipping by @Howtomakeausername Quick sorting by @-rex- The rest of the engine is done by me ;-; In case the project is lagging or if the mesh is not being rendered, use Turbowarp: turbowarp.org/1133271020?fps=60&offscreen&limitless&hqpen Todo list: Add bones (armature) Add skybox Add more configurations to generate a mesh (in the other project) Add oportunity to add mesh and sprites Optimize even more Change log: 03/08/2025 = Project released 03/09/2025 = Optimization (offscreen triangles) 03/19/2025 = Faster Z-Clipping 04/26/2025 = Added Quick sort 04/27/2025 = Added Distance culling