Example scripts

Here you'll find a number of scripts demonstrating various techniques.  These scripts show how to solve specific problems by example.  They can be found in the "WorldViz\Vizard4\examples\" directory.

 

 

Topic

Description

Script

3D model basics

Object rotation

rotation.py

Object translation

translation.py

3D text

text3d.py

3D objects on-the-fly

onthefly.py

Hierarchical chain

hierarchical.py

Matrix transformations

matrix.py

Actions

Animating with actions

tutorial_action.py

Using actions for callbacks

tutorial_eventCallbacks.py

Linking

Basic linking

tutorial_basicLinking.py

Grabbing with links

tutorial_grab

Link merging

tutorial_linkMerge

Animation paths

Animation paths

animationpath.py

Avatars

Built-in animation

motions.py

Linking objects to bones

linkbones.py

Events

Event callbacks using vizact

tutorial_eventCallbacks.py

Event class timer

classtimer.py

Event handling

tutorial_EventHandlingClass.py

File I/O

Reading from a file

read.py

Writing from a file

write.py

GUIs

Prompting for information

prompt.py

vizinfo demo

tutorial_vizinfo.py

vizmenu demo

tutorial_vizmenu.py

Input devices

Keyboard events

keyboard.py

Mouse events

mouse.py

Joystick events

joystick.py

5DT data glove

5dt.py

intersense tester

Intersense

ppt tester

PPT

Interaction

Picking screen objects

picking.py

Measuring reaction time

tutorial_reactionTime.py

Lights

Spotlights

spotlight.py

Multimedia

Playing sounds

sounds.py

3D sound

sound3d.py

Video textures

videotex.py

Networking

Robo chase

roboChase.py

Instant messenger

im.py

Physics

Tracking an object

physics1.py

Collision plane

physics2.py

Basic physics

Tutorial_BasicPhysics.py

Callbacks and complex shapes

Tutorial_CallbacksAndComplexShapes.py

Forces and materials

Tutorial_ForcesAndMaterials.py

Shadows

Simulate shadows

tutorial_shadows.py

Texturing

Projected textures

projection.py

Texture swapping

swapping.py

Reflective environment mapping

env_mapping.py

Matrix transforms

Applying a matrix transform

Matrix transformations

Tracking

Automatic

automatic.py

Manual

manual.py

Viewpoint

Viewpoint camera control

tutorial_cameraHandler.py

Viewpoint animation

animateview.py

Viewpoint collision detection

collision.py

Window views

Windows & views

winview.py

World demos

Art gallery

gallery.py

Plantetarium

PlanetDemo.py

Duck court

duckcourt.py

Mini cooper

mini.py