Line 6: |
Line 6: |
| ==About TurtleBlocks3D== | | ==About TurtleBlocks3D== |
| Turtle Blocks 3D is an extension of Turtle Blocks into three dimensions. Instead of moving a turtle on a plane, the turtle can be moved in a three-dimensional Cartesian space. | | Turtle Blocks 3D is an extension of Turtle Blocks into three dimensions. Instead of moving a turtle on a plane, the turtle can be moved in a three-dimensional Cartesian space. |
| + | |
| + | All the features from [[Activities/Turtle_Art| Turtle Blocks 2D]] are present in this version along with some new ones. |
| + | |
| + | Not only does this activity run from sugar, but also from GNOME. To run it from GNOME, you will need to clone the repository and then run the executable "turlteblocks-3d.py" |
| + | |
| [[Image:TurtleBlocks3D-about.png | 850px]] | | [[Image:TurtleBlocks3D-about.png | 850px]] |
| | | |
Line 11: |
Line 16: |
| The TurtleBlocks3D activity is available for download from the [http://activities.sugarlabs.org Sugar Activity Library]: [http://activities.sugarlabs.org/sugar/addon/4757 TurtleBlocks3D] | | The TurtleBlocks3D activity is available for download from the [http://activities.sugarlabs.org Sugar Activity Library]: [http://activities.sugarlabs.org/sugar/addon/4757 TurtleBlocks3D] |
| | | |
− | The source code is available on [https://github.com/walterbender/turtle3D Walter's Github]. | + | The source code is available [https://github.com/walterbender/turtle3D here]. |
| | | |
| ==Toolbars== | | ==Toolbars== |
− | The following will only describe the items in the toolbar that are explicit to the 3D Version, for others go to [[Activities/Turtle_Blocks#Toolbars| Turtle Art's wiki page]] | + | The following will only describe the items in the toolbar that are explicit to the 3D Version, for others go to [[Activities/Turtle_Blocks#Toolbars| Turtle Art's wiki page]]. |
| | | |
| [[Image:TurtleBlocks3D-toolbar-001.png|800px]] | | [[Image:TurtleBlocks3D-toolbar-001.png|800px]] |
| | | |
− | [[Image:TurtleBlocks3D-toolbar-004.png|200px|thumb|left]]Now you can save your 3D Grpahic files from TurtleBlocks3D to [https://en.wikipedia.org/wiki/Wavefront_.obj_file .obj files] or load them.
| + | Now you can save your 3D Grpahic files from TurtleBlocks3D to [https://en.wikipedia.org/wiki/Wavefront_.obj_file .obj files] or load them. |
| [like the ones generated in blender] | | [like the ones generated in blender] |
| + | |
| + | [[Image:TurtleBlocks3D-toolbar-004.png]] |
| + | |
| + | "Save as wavefront .obj" Use this button to export your 3D graphic to '.obj' format so that you can open it in various other softwares like blender. we currently support points, lines, polygons, and color. |
| + | |
| + | [[Image:TurtleBlocks3D-toolbar-005.png]] |
| + | |
| + | "Load wavefront.obj" Use this button to import your 3D graphic from a variety of softwares that use .obj file format. When you click the button, a "Choose an object" dialog pops up and all you have to do is, point to your .obj file from the journal in that popup. |
| | | |
| [https://github.com/walterbender/turtle3D/blob/master/samples/turtle.obj Example .obj] | | [https://github.com/walterbender/turtle3D/blob/master/samples/turtle.obj Example .obj] |
| | | |
| + | [[Image:TurtleBlocks3D-toolbar-002.png]] |
| | | |
− | | + | [[Image:TurtleBlocks3D-toolbar-006.png]] |
− | [[Image:TurtleBlocks3D-toolbar-002.png|800px]] | |
| | | |
| It is 3D, So you can also choose where to look from, With the Camera position option you can choose top, front, left, right, top-left and top-right camera positions! | | It is 3D, So you can also choose where to look from, With the Camera position option you can choose top, front, left, right, top-left and top-right camera positions! |
Line 34: |
Line 47: |
| These blocks are used to control the movements of the turtle. | | These blocks are used to control the movements of the turtle. |
| | | |
− | * set camera xyz: set camera's x,y,z position | + | * forward: move turtle forward |
− | * set xyz: set turtle's x,y,z position (0,0,0) is the center of the screen | + | * back: move turtle backward |
− | * zcor: holds current z-coordinate value of the turtle (can be used in place of a number block) | + | * clean: clear the screen and position the turtle in the center of the screen, pen down, color red, heading 0 |
− | * set roll: set turtle's roll | + | * left: rotate turtle counterclockwise |
− | * set pitch: set turtle's pitch | + | * right: rotate turtle clockwise |
| + | * '''set xyz''': set turtle's x,y,z position (0,0,0) is the center of the screen |
| + | * '''set camera xyz''': set camera's x,y,z position |
| + | * set heading: set turtle heading |
| + | * '''set roll''': set turtle's roll |
| + | * '''set pitch''': set turtle's pitch |
| + | * xcor: holds current x-coordinate value of the turtle (can be used in place of a number block) |
| + | * ycor: holds current y-coordinate value of the turtle (can be used in place of a number block) |
| + | * '''zcor''': holds current z-coordinate value of the turtle (can be used in place of a number block) |
| * get heading: heading: holds current heading value of the turtle | | * get heading: heading: holds current heading value of the turtle |
− | * get roll: heading: holds current roll value of the turtle (can be used in place of a number block) | + | * '''get roll''': heading: holds current roll value of the turtle (can be used in place of a number block) |
− | * get pitch: heading: holds current pitch value of the turtle (can be used in place of a number block) | + | * '''get pitch''': heading: holds current pitch value of the turtle (can be used in place of a number block) |
| + | |
| + | In '''bold''' are the options that only exist in Turtle Blocks 3D. |
| | | |
| ==Gallery== | | ==Gallery== |
Line 72: |
Line 95: |
| ==Credits== | | ==Credits== |
| * Walter Bender maintains the code | | * Walter Bender maintains the code |
− | * The activity was made by [http://wiki.sugarlabs.org/go/Summer_of_Code/2014/AnubhavJ/Turtle_Art_3D Anubhav Jaiswal] in [http://wiki.sugarlabs.org/go/Summer_of_Code/2014 Google Summer of Code 2014] under the mentor Tony Forster | + | * The activity was made by [http://wiki.sugarlabs.org/go/Summer_of_Code/2014/AnubhavJ/Turtle_Art_3D Anubhav Jaiswal] in [http://wiki.sugarlabs.org/go/Summer_of_Code/2014 Google Summer of Code 2014] under the mentorship of Tony Forster |