?️ HOW TO INTERACT: • MOVE your mouse across the screen to rotate the fractal in real-time! • Mouse X controls the horizontal spin (left/right). • Mouse Y controls the vertical tilt (up/down). ? PRO-TIP: Try spinning it to different angles to see how a flat 2D screen can perfectly project a complex 3D shape using pure mathematical logic! P.S - It might be not that equal and all, but I'm tryna fix it!
WELCOME TO THE 3D SIERPINSKI TRIANGLE ! This project features a fully custom-built 3D graphics rendering engine running inside Scratch using the Pen extension. Instead of clones or standard costumes, every single line is calculated mathematically in real-time using trigonometry and matrix projection formulas! ⚙️ HOW IT WORKS: 1. 3D Coordinates (X, Y, Z) are tracked inside a custom recursive engine. 2. The engine uses Sine and Cosine functions to calculate structural rotation based on your mouse placement. 3. A perspective division formula maps the 3D space onto your flat 2D screen, scaling lines down automatically as they move further away from the virtual camera lens! ? TECHNICAL DETAILS: • Render Style: Wireframe 3D Perspective Projection • Fractal Depth: Level 3 (Generates 64 individual interconnected sub-tetrahedrons!) • Optimization: Utilizing "Run without screen refresh" to render hundreds of coordinates instantly without frame-rate drops. ✨ Credits: Code - Me Like, Fave, and Folllow - Thanks to @Imnotthinknoodle3151 If you enjoyed exploring this fractal, please leave a ❤️ and ⭐️! Let me know what you think in the comments!