WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-11-2014, 06:56 PM
TopazFrost TopazFrost is offline
Member
 
Join Date: Oct 2009
Posts: 23
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?
Reply With Quote
  #2  
Old 02-12-2014, 01:33 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
When using the vizcave module the CaveView object controls the viewpoint:

Code:
view = vizcave.CaveView(tracker)
In order for the viewpoint collision event to occur, the CaveView must collide with the wall. The user's tracked movements only affect the projection matrices and will not trigger that event. The images in the vizcave page help to clarify the difference between movements of the CaveView and tracked user.
Reply With Quote
  #3  
Old 02-13-2014, 03:34 PM
TopazFrost TopazFrost is offline
Member
 
Join Date: Oct 2009
Posts: 23
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.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collision in Corner Cave kerscha Vizard 4 04-23-2015 01:07 PM
A problem with cave apmx Vizard 0 10-28-2013 05:37 AM
Main view collision problem AtomicRaiden Vizard 4 10-06-2011 12:48 PM
Collision problem Dave Vizard 2 09-16-2010 05:25 AM
problem with collision detection paulpars Vizard 6 06-09-2006 07:03 PM


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


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