How do I get the Cave viewpoint location?
Hello,
I have another question about CAVE collision. I am using cView = vizcave.CaveView(...) for the view point. I have one last collision problem. When going backward down a hill/stairs, the view point likes to get trapped underneath the hill/stairs. I think I can correct for it if I can get cView's Y value, but cView.getPosition() returns the joystick position or [0,0,0]. What is the call/mask needed to get the cView position? I can't set the viz.eyeheight() any higher since I am already having trouble with colliding with the tops of doorways (which are at 2m). |
One more item. I am getting a collision error from vizard, that I have no idea how to handle. It only happens when moving quickly through a opening vizAvatar door. It is:
Code:
File " |
The following code showed the cave view position updates when added to the example script in Vizard's CAVE documentation:
Code:
def printPosition(): |
I have not. Doing so made the view spin or froze the view point.
The bigger problem right now is the intersection error. How do I catch it so it does not crash the program? |
I forgot...I am assuming that cave-origin is the cave's view point returned by vizcave.CaveView(...). That works correct until I collide with a wall, then it keeps going while the viewpoint stays still.
I have not linked it other than giving it a tracker. |
Update on collision error. I happens when hitting a vizAvatar even when going slow and have it running on the HMD, but not all vizAvatar. It went away (I hope) after I removed the collision event handler. That is a problem since I need it for the CAVE.
|
All times are GMT -7. The time now is 01:01 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC