WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-29-2003, 02: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
  #2  
Old 04-29-2003, 06:22 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Would you mind including the portion of your code that uses
the sensor?

Thanks,

farshid
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC