Cartoon Robot Steve
Steve is a cartoon robot model included with Vizard's resources. This article contains a video of him being controlled by a keyboard tracker and an example script that shows how to add him to a scene using the steve.py module.
The module steve.py contains methods to add Steve, set a tracker for him, and control his color and shading. With a tracker you can translate his position and rotate his body and head. Once you add Steve you can treat him as any other node3D object. Since he is a model in the .ive format he does not have a skeletal structure or the methods available with Vizard's Cal3D avatars.
The following example shows how to add Steve and set up a keyboard tracker for him.
viz.go()
import vizinfo
info = vizinfo.add('Translate position: WS QE RF\nRotate body: AD\nRotate head: GJ YH')
import steve
model = steve.Steve()
model.setPosition(0,1.5,6)
model.setEuler(180,0,0)
# Setup tracking for model
import viztracker
tracker = viztracker.Keyboard6DOF(moveScale=0.5,turnScale=0.8)
model.setTracker(tracker)
# Setup environment
viz.clearcolor(viz.GRAY)
import vizshape
vizshape.addGrid(color=[0.2]*3)
Take a look at the module steve.py in the Python folder of the Vizard installation for additional methods to control his color and shading.

