ScratchData LogoScratchData
Back to Rant's profile

3D Prisms v1.6

RARant•Created February 10, 2015
3D Prisms v1.6
21
18
364 views
View on Scratch

Instructions

>>>TURBO MODE!<<< (Shift + Click Green Flag) Simple! Just enter your desired number of sides, and then use the arrow keys to rotate it! Press the space key to restart. My favorite is 5 sides ;) You can render 0 to 30 sides.

Description

My first 3D engine! No tutorials! :) Updates: -Added Zoom, Slant, Distortion, Color, and Height variables The Science Behind It: Each point is placed on a three dimensional plane, using a fabricated circle as the center of rotation for each plane. It uses basic unit circle theory for the movement, such that each coordinate is: [cos(θ + (360/T)*P), sin(θ + (360/T)*P) - V] ...P being the variable point number, V being the determined view point (in radians), and T being the variable number of points, set in the beginning of the project. These points are then transferred onto a XY coordinate grid, and separated into two planes: The top of the prism, and the bottom of the prism. The determined view point only changes based on user control, along with rotation. Finally, clones are sent out to orderly connect all of the points/vectors, and now you have a 3D shape! I hope that helped anyone who was confused about the scripts! Leave comments if you have any other questions. Enjoy!

Project Details

Project ID47301586
CreatedFebruary 10, 2015
Last ModifiedSeptember 26, 2015
SharedFebruary 10, 2015
Visibilityvisible
CommentsAllowed