ScratchData LogoScratchData
Back to WooHooBoy's profile

3D Wireframe Base

WOWooHooBoy•Created February 12, 2013
3D Wireframe Base
17
9
365 views
View on Scratch

Instructions

Use arrows to move. ==To use base== The "load" block defines x,y,and z positions. I put a loop there, but you do not need it. Start the block with: delete (all) of [xs] delete (all) of [ys] delete (all) of [zs] Then for each point, add: add (insert x here) to [xs] add (insert y here) to [ys] add (insert z here) to [zs] With the "insert __ here" with the desired x,y, and z positions. Numbers work best with numbers -1 to 1. Example: define [load]: delete (all) of [xs] delete (all) of [ys] delete (all) of [zs] add (1) to [xs] add (1) to [ys] add (1) to [zs] add (-1) to [xs] add (-1) to [ys] add (-1) to [zs] Now for the "wireframe" block. This is easy. Start with: pen up set pen clolor to [black] Now to use the go to 3D item (item) block. It goes to the XYZ coordinates of the (item)th item of the xs,ys, and zs lists. Use this in your block now, for the first coords you want to go to. In The example it would be go to 3D item (1) Then you want the pen down to start drawing. Write: pen down at the end of your block definition. contitue to use the "goto 3D item" block and the pen blocks to create lines for the wireframe. Finished "wireframe" bloack example: define [wireframe]: pen up set pen color to [black] go to 3D item (1) pen down go to 3D item (2) The finished example would create a line. And that's all there's to it!

Description

This is a 3D Wireframe base. All the complex scripts are ready-made, all you have to do is define the positions of the points and how to connect them! This was made using boaz4's 3D method.

Project Details

Project ID10045909
CreatedFebruary 12, 2013
Last ModifiedJune 13, 2014
SharedFebruary 13, 2013
Visibilityvisible
CommentsAllowed