ScratchData LogoScratchData
Back to colinmacc_test's profile

3D Repton (16x16)

COcolinmacc_test•Created March 14, 2020
3D  Repton (16x16)
12
8
249 views
View on Scratch

Instructions

Make your own 3D object using the Editor. Remix to save your 3D object. This Editor uses a default 16x16 grid. To change the grid to 12x12 or 8x8, "See inside" this project and click one of the custom blocks at the top: eg. "Convert to 12x12 Editor with Default Picture". https://forkphorus.github.io/#376101636 for even faster rotation (use your own project number for remixes) Notes and Credits Copy -------------------------------- (so that they are not lost in remixes) I made a 3D Editor with an 8x8 grid: https://scratch.mit.edu/projects/360865219/ Some Scratchers asked me to remake the 3D Editor with a 16x16 grid. The remake lagged terribly so I had to make several changes to speed it up. I had already replaced my Selection Sort with a faster Quick Sort using code from a remix by @PT3RO Here I also added code from the remix by @PT3RO that identified interior/overlapping object faces and didn't draw these faces. The 16x16 project still lagged so I added two more main changes: The interior faces of the little cuboids are no longer loaded giving many less faces to sort for drawing. At any angle only 3 faces of a cuboid are visible! At every change of rotation angle I calculated which 3 faces of the first cuboid would be visible to the viewer. All the cuboids are similarly oriented, so the project only draws the corresponding 3 faces for all cuboids. 3D Tutorial Studio: https://scratch.mit.edu/studios/5040029/ Polyhedron Studio: https://scratch.mit.edu/studios/5085215/ 3D Rotation theory from Wikipedia: https://en.wikipedia.org/wiki/Rotation_matrix Huge thanks to @TheLogFather for his "Faster Triangle Filler" https://scratch.mit.edu/projects/24828481/ Huge thanks to @PT3RO who made a remix https://scratch.mit.edu/projects/374383036/ using a faster sorting algorithm and also didn't draw a lot of unnecessary internal faces in their remix. I added these changes here to make this project faster.

Description

Well I really need 32x32 ... but this’ll do for now ;) All credit to @Scratch-Minion for the original project :)

Project Details

Project ID376585297
CreatedMarch 14, 2020
Last ModifiedMarch 14, 2020
SharedMarch 14, 2020
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root