Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vizshape
- import viz
- viz.go()
- #Connect to flock of birds. The transmitter is placed in the center above the cave
- #Bird 1 will be connected to the wiiMote. The combination
- #of buttons from the wiimote and the orientation of bird1 on the wiiMote will be used to
- #move the caveorigin around
- #We'll add the code for this later once we've got bird2 and tracking working properly
- #Bird2 will be placed on the users head for position tracking
- #and to update the frustums
- ascension = viz.add('ascension.dle')
- birds = ascension.addFlockOfBirds(birds=1,port=4,hemisphere= ascension.HEMI_UPPER, baudRate=115200 )
- print birds
- tracker = birds[0]
- ground = viz.add('tut_ground.wrl') # Add ground
- ground.setScale(100,1,100)
- ball = viz.add('ball.wrl',pos=[0,.2,6]) # Add a ball
- viz.link(tracker,ball)
Add Comment
Please, Sign In to add comment