We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello all,
I finished working on a 3D Turtle where you can write your own scripts to steer a turtle in a 3D space.
It's a Turtle program like the famous Turtle in LOGO but as a 3D Turtle.
The turtle carries a pen and walks on the screen, drawing shapes. Since it's 3D it can also dive like a water turtle and draw a cube etc.
The program is aimed at kids around 8 or 12 to learn programming in 3D. So when you are a teacher, please feel free to use it.
Highlights:
Write a Turtle Script in the sketch editor and have it executed (pressing the green Play Button). Save and load Turtle Scripts to hard drive
Look at the drawing of the Turtle from every angle using peasy cam or have a camera fly around (using letter c)
Steer the turtle directly with cursor keys and see the drawing immediately. Have the movement recorded as a Turtle Script that you can edit, save, load and run.
Browse through examples on the hard drive using cursor keys.
Please try the Turtle and give feedback.
Download:
https://github.com/Kango/3D-Turtle
Thanks to all who helped me with this.
Warmest Regards,
Chrisir
Comments
Here is a screenshot of the Editor Window
Here is a screenshot of one of the example Turtle Scripts that are included.
It shows the Turtle that just draw a small 3D drawing:
This is originally a discussion from here:
https://forum.processing.org/two/discussion/comment/88164/#Comment_88164
Congratulations on completing this great project, @Chrisir -- I have really loved watching it develop.
Thank you so much, Jeremy. Your initial input made it possible. I owe you.
Small help here:
Help for Turtle Script
Imagine a turtle. You can tell it to go forward or turn left or right. Imagine it carries a pen so when it walks it draws a line behind it. You can now draw an image by telling the turtle where to go. To draw a rectangle you would say: repeat 4 ( forward 60 right 90 ). The rotation with right / left determines in which direction the Turtle draws next. You can write your Turtle Script in an Editorbox on the screen and run it by clicking the green > sign with the mouse. You can also steer the Turtle with Cursor keys directly to generate a Turtle Script. Here you see one text box where you see a help for the current line in the editor box. You see a ROLL with commands (use mouse wheel) to choose commands; attached is also a small help text. Hit Esc to go back. See status bar at bottom screen to see in which mode you are. You can save and load your Turtle Scripts. By the way: In edit mode leave your cursor on a screen button and see a yellow tool tip text.
Major commands are
The turtle is also a 3D Turtle, imagine a water turtle that draws a line behind it. It can also dive into a aquarium and therefore can not only draw on a canvas but in free 3D space.
Additional commands to move without drawing (Turtle is jumping)
Variable Handling
The Program knows a limited handling of variables. All variables are global.
Use N like: forward N or sink N or sphere N....
Commands to change the Turtle appearance
You may change the rotation of the shape using ROTATESHAPE XRotate PI 0 // rotate the shape by x,y,z (radians)
Examples see under the names "turtle...".
Additional commands
Commands to store a Turtle Position
Recording a path to make a shape
Credits
@kfrajer
@Chrisir Really great you have created this post to summarize your efforts. It is an excellent idea what you have done.
Kf
Thank you so much !
A small help for the Turtle Editor Window:
@Chrisir Congratulations :)
Very nice.
cameyo
Thank you very much!
;-)
Here is a screen shot for a help on the buttons in the Turtle Editor - you can see the Editor above