ScratchData LogoScratchData
Back to PH-zero's profile

The Cam Framework

PHPH-zero•Created June 2, 2014
The Cam Framework
29
27
1158 views
View on Scratch

Instructions

[Add your instructions here] This is the plain Framework. Remix this project if you want to use my Framework. If you want to make a new Sprite, just duplicate the "Basic Sprite" and modify the duplicate. Never directly change the variables the framework consists of. Use the custom-blocks instead. A Guide: http://scratch.mit.edu/projects/24727601/

Description

This Framework makes the Stage act like a camera. Both sprites and the camera cam move in 3D space, and rotate around the z-axsis. A Guide: http://scratch.mit.edu/projects/24727601/ A Demonstration: http://scratch.mit.edu/projects/24726407/ ______________________________________________________ A quote from a topic by OverPowered: "I'm much more in favor of just letting sprites go wherever they please, and the “screen” just being a camera to show their presence." The topic: http://scratch.mit.edu/discuss/topic/12031/ This sentence actually inspired me to make this. thanks =) (quote: post 10, secound paragraph, last sentence) ______________________________________________________ Feel free to change or even improve the framework! got any ideas or suggestions? Please post them! =) ______________________________________________________ If you are about to suggest full 3D rotation, then I'm arfraid to tell you that this is not going to happen. Why? 3D-rotation is complex. Full 3D-rotation is hard to store.. or rather represent. You can't just save three numbers x, y, z rotation. Let's say you rotated around the x-axsis. Now you want to rotate around the other axsis but there is a problem: They have changed. Because you rotated around the x-axsis. In 3D-simulations 3D-rotation is stored in Quaternions. (http://en.wikipedia.org/wiki/Quaternion) These involve complex numbers and took over 10 years to develope. Also, how are you going to make 3D-sprites? Since you cannot stretch a sprite, it is impossible to simulate rotation around other axsis than the z-axsis. Other 3D-projects in Scratch use the pen to render things like Cubes and other stuff. But this framework is supposed to be simple and easy to use. This framework is for everyone, Not only for 3D-freaks (like me for instance xD) Also, you realy shouldn't focus on what the framework can't do. Instead you should focus on what it *can do*. This framework provides you with a depth-simulation, and a 2D-cam-rotation-simulation. Both very very easy to use. I really hope you understand =)

Project Details

Project ID23083190
CreatedJune 2, 2014
Last ModifiedOctober 3, 2014
SharedJuly 16, 2014
Visibilityvisible
CommentsAllowed