This script generates a robot walking on the ground of a trueSpace 3D scene using some methods for skeletons and skins.
Fig. 1. Walking robot
Following scene images can be got when you stop the script by inserting a line for breaking (e.g. "stop" though it causes error).
Fig. 2. Pinned bones (Difference between trueSpace versions)
Fig. 3. Pulling a bone by mouse dragging
Fig. 4. Opposite direction
Fig. 5. Pre-treatment for pinned (nailed) position
Fig. 6. His "neck"
Fig. 7. Backbone
Fig. 8. Fixed joints and hinge joints
Fig. 9. Adjusting joints
Fig. 10. Attaching a skin to the skeleton
The script pulls bones so that his arms and legs swing, move the whole body, and records time frame (i.e. active time) for the animation. Run the script using ptsxpy, make sure the animation mode is "Scene", and push "Play" button to watch the animation.
The script can be run in tS4, tS5, tS6 (Model side of tS7) + ptsxpy (for Python 3 or Python 2).
Updated on Apr 25 2021: Corrected the script file so that it works on tS6.0 properly. (Unchanged for tS4, tS5, tS6.6)
(Apr 14 2022, Updated 2b to 2c. to correct the text in the message box; "Alt F4" -> "Alt Tab")
Walking Robot (2021)
- 3DfromNULL
- Site Admin
- Posts: 45
- Joined: 2018-Jul-13 9:35
Walking Robot (2021)
- Attachments
-
- skel2c.py
- (16.36 KiB) Downloaded 1620 times