View Single Post
  #1  
Old 04-29-2003, 01:40 PM
FlyingWren FlyingWren is offline
Member
 
Join Date: Mar 2003
Location: Fargo, North Dakota, USA
Posts: 48
viz.eyeheight ( )

The command viz.eyeheight does not seem to be working as I expect.

The helpfile says, "Normally, issuing viz.reset(viz.HEAD_POS) will reset the view model to (0, 1.82, 0). The eyeheight command changes the Y value and will affect subsequent resets."

Yet, when I do a reset, whatever I punched into the viz.eyeheight() does not seem to matter; the eye height is effectively set to 0 regardless of what I set to be the eye height previously (plus the position sensor's value, if it's being used).

Am I doing something wrong? Here's my code (minus some formatting that gets lost in this bulletin board):



--------------------------------
# [snipped stuff here]

if testing:
viz.go(viz.MONO)
else:
viz.go(viz.HMD | viz.STEREO)

viz.eyeheight(5.0)


# .
# [more code in here, snipped]
# .


def KeyboardFunction(key):
if key == 'r':
viz.reset(viz.HEAD_POS)
viz.reset(viz.HEAD_ORI)
viz.reset(viz.BODY_ORI)

----------------------------------


as mentioned, pressing 'R' sets my view height to 0 + (position sensor, if used).
Reply With Quote