#1
|
|||
|
|||
Cave Collision problem
Hello,
I am converting a project that was a HMD to CAVE. Unfortunately, doing so massive broke my code due to non-overlapping the function calls and different masks. Anyway, I have it "ducted taped" for the most part, but there is one problem I do not understand. I am having the same problem as this person: http://forum.worldviz.com/showthread...cave+collision Thus, my menu that should stay relative to a person flies away when I run into a wall. BUT, the callback solution in the other thread doesn't fire. In fact, my code throws an error when I even try to change the collision saying the cave origin viewpoint returned by vizcave.CaveView doesn't have that function. The stepsize() call does not work properly either. I have a few steps and without the CAVE, I climb; with the CAVE I'm stuck at the bottom. This is a problem since I need to implement jumping/floating and I can't even jump onto the first step. I've tried to implement my own collision detection, but it does not work too well (just a line intersection from my current position .5m off the floor to about .2m in the direction I want to go). If I could get the current position, it would help, but .getPosition() returns a position on the floor, and .getPosition(viz.VIEW_ORI), .getPosition(viz.BODY_ORI) , and .getPosition(viz.HEAD_ORI) all return [0,0,0] While I'm here, perhaps you can explain another thing I did wrong. With the HMD the participant's eye height works by using viz.eyeheight(); with the CAVE I have to use "view".setPosition() (sort of works). Why did it break? |
#2
|
|||
|
|||
When using the vizcave module the CaveView object controls the viewpoint:
Code:
view = vizcave.CaveView(tracker) |
#3
|
|||
|
|||
Huh, it looks like my earlier reply did not go through.
I am using CaveView. But the collision event just wasn't firing about 50% of the time. I eventually found the problem. It was firing on the wrong object... I was returning the top of the stage rather than the sides so my code wasn't seeing the event. Checking for that type of event and then searching for nearby objects fixed the problem...I hope. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Collision in Corner Cave | kerscha | Vizard | 4 | 04-23-2015 12:07 PM |
A problem with cave | apmx | Vizard | 0 | 10-28-2013 04:37 AM |
Main view collision problem | AtomicRaiden | Vizard | 4 | 10-06-2011 11:48 AM |
Collision problem | Dave | Vizard | 2 | 09-16-2010 04:25 AM |
problem with collision detection | paulpars | Vizard | 6 | 06-09-2006 06:03 PM |