View Single Post
  #18  
Old 02-01-2005, 04:44 PM
Johannes Johannes is offline
Member
 
Join Date: Jan 2005
Posts: 143
OK,
also the data looks alright now, when I put the room (the normal myroom from your 1 tutorial) in there I'm still too high.

line I added:
#Create a room
myroom = viz.add('../resources/models/room.wrl')

I also cannot look arount. If also write
v = viz.add('intersense.dls')
below the line ppt = viz.add('vizppt.dls') it works better with moving and lookint to the floor.
What might be the mistake?
Johannes

Here the code with the two lines included:
Code:
import viz
viz.go(viz.PROMPT)
ppt = viz.add('vizppt.dls')
v = viz.add('intersense.dls')
ppt.command(6,'',1,1,1)
ppt.reset()
viz.tracker()
viz.eyeheight(1.8)
def ontimer(num):
	print viz.get(viz.HEAD_POS)[1]
viz.callback(viz.TIMER_EVENT,ontimer)
viz.starttimer(0,0.1,viz.FOREVER)
def onkeydown(key):
	if key == 'r':
		ppt.reset()
viz.callback(viz.KEYDOWN_EVENT,onkeydown)
#Create a room
myroom = viz.add('../resources/models/room.wrl')
Reply With Quote