Changeset 593


Ignore:
Timestamp:
11/29/11 18:32:15 (6 months ago)
Author:
ddangelo
Message:

twoview sample code updated

Location:
trunk/examples/display
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/display/two_view_wiimote.py

    r448 r593  
    6363#continue only if a wiimote and the statsviewer device were successfully created (The TwoView display supports this) 
    6464if not wiimote or not stats_viewer: 
     65    print "Wiimote or stats viewer is Null. Exit" 
    6566    sys.exit() 
    6667 
     
    7677pickray_transform = avango.osg.nodes.MatrixTransform() 
    7778pickray_transform.Matrix.connect_from(wiimote.Matrix) 
    78 pickray_object = avango.osg.nodes.LoadFile(Filename="data/models/ray-gray.iv") 
     79pickray_object = avango.osg.nodes.LoadFile(Filename="ray-gray.iv") 
    7980pickray_object.add_and_init_field(avango.SFUInt(), "PickMask", 0) 
    8081pickray_transform.Children.value.append(pickray_object) 
Note: See TracChangeset for help on using the changeset viewer.