View Single Post
  #5  
Old 08-23-2004, 10:04 AM
tavaksai tavaksai is offline
Member
 
Join Date: Jul 2004
Posts: 22
found the bug

Hi,

After more extensive testing, I think I found the cause of the glove problem.

take a look at the following code:


import viz

viz.go(viz.PROMPT)


#####################################
# the following 4 lines must be at the top after viz.go !!!!!
# if you put them after the first if/else statement
# (if viz.get(viz.TRACKER): ..... else tracking = 0)
# glove plug-ins will not be loaded although everything
# else will work
#####################################
PORT_5DT = 3
xleft = viz.add('5dt.dls')
PORT_5DT = 4
xright = viz.add('5dt.dls')

if viz.get(viz.TRACKER):
v = viz.add('intersense.dls')
viz.tracker()
tracking = 1
else:
tracking = 0

left_gyro = viz.add('intersense.dls') # left hand
left_gyro.reset()

right_gyro = viz.add('intersense.dls') # right hand
right_gyro.reset()


light1 = viz.add('vizppt.dls')

light2 = viz.add('vizppt.dls')

light3 = viz.add('vizppt.dls')


See the comment in the box at the top.
My old version of Vizard did not have this problem.


BTW, the

euler = someobj.get(viz.EULER)
child.rotate(euler,viz.ABSOLUTE_WORLD)

method worked great in the new version of Vizard, but did
not work on my older one. So, thanks for that.

Max
Reply With Quote