Walking Robot (2021)

Author's sample script, wroks, hints.
Post Reply
User avatar
3DfromNULL
Site Admin
Posts: 43
Joined: 2018-Jul-13 9:35

Walking Robot (2021)

Post by 3DfromNULL » 2021-Mar-24 8:20

This script generates a robot walking on the ground of a trueSpace 3D scene using some methods for skeletons and skins.

Image
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).

Image
Fig. 2. Pinned bones (Difference between trueSpace versions)

Image
Fig. 3. Pulling a bone by mouse dragging

Image
Fig. 4. Opposite direction

Image
Fig. 5. Pre-treatment for pinned (nailed) position

Image
Fig. 6. His "neck"

Image
Fig. 7. Backbone

Image
Fig. 8. Fixed joints and hinge joints

Image
Fig. 9. Adjusting joints

Image
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)
Image Image
Image Image Image Image Image
Attachments
skel2b.py
script file
(16.34 KiB) Downloaded 54 times

Post Reply