ScratchData LogoScratchData
Back to ProdigyZeta7's profile

Sphere Drawn with Ellipses Drawn with Circles

PRProdigyZeta7•Created April 27, 2014
Sphere Drawn with Ellipses Drawn with Circles
60
37
1046 views
View on Scratch

Instructions

Rotate by dragging with the mouse or pressing the arrow keys Enjoy! Don't enjoy? Try the "old-fashioned" way.

Description

Updating: trying to texture-ize the sphere... not going so well. Anyone know how to calculate the starting point of a texture ring? Credit to @DarthPickley for maths behind the radius of a circle inside an ellipse. Quick note: I did NOT copy off of @DadOfMrLog's 3D globe. I handwritten every step to render this. This is similar to @DadOfMrLog's shaded globe render-er, but in this case the ellipses are rendered with circles by moving along the semi-major axis of the ellipse centered along the diameter of the sphere. Quite a mouthful of math to say, but all in all it performs quite smoothly. HOWEVER, as you can see, there are some limitations to where an ellipse will render using DP's scripts. The interval on which a circle can be made is ±(Height - Width^2/Height). In other words, if the ellipse is close in shape to a circle, it will not render because the maximum radius is negative. I'm seeing to it that this issue is fixed. In the meantime, if you are annoyed by this issue you can switch it to "old-fashioned" way.

Project Details

Project ID21256102
CreatedApril 27, 2014
Last ModifiedApril 27, 2014
SharedApril 27, 2014
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root