WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-01-2008, 12:38 PM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
confusion over vizcave and viewpoint

I'm using a head-tracker and power wall setup. I use
Code:
vizcave.setTracker(tracker)
to allow the frustum to be automatically adjusted according to head-tracker coordinates. Alternatively, I could manually do this with
Code:
vizcave.update()
and an appropriate timer, though I'm not clear why this would be useful (the documentation does not explain this well).

But how should I deal with the viewpoint? From reading the documentation on sensors and linking it seemed to me that the appropriate way was to use
Code:
viz.link(tracker,viz.MainView)
but vizcave provides the
Code:
caveview = vizcave.CaveView(tracker)
view matrix, which I alternatively linked to the main view
Code:
viz.link(caveview,viz.MainView)
with no apparent difference. What is the appropriate way of updating the viewpoint? And are these two methods completely equivalent?
Reply With Quote
  #2  
Old 08-01-2008, 12:46 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
When using the CaveView object, you don't need to manually link it to the viewpoint, it automatically does that for you. In most cases, creating a CaveView object is no different than simply linking your tracker to the viewpoint.

The CaveView object comes in handy when you need to move the virtual viewpoint away from the origin. In this case, you can treat the cave view object like a standard node object and use the setPosition, setEuler, etc.. methods to move the viewpoint around in your virtual world while still being linked to the tracker. The vizcave section of the documentation has some sample code that shows how to use the CaveView object.
Reply With Quote
  #3  
Old 08-01-2008, 01:00 PM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
OK, so CaveView gives me more flexibility than simply linking my tracker to the MainView. Forgive me for being totally naive, but in what type of head-tracked situation would you want this additional flexibility to move the viewpoint? Wouldn't that look really odd to the user wearing the head-tracker if the viewpoint suddenly changed NOT as a result of their movements?

Oh, and would you mind also explaining in what situation I might want to use vizcave.update() instead of vizcave.setTracker?

Sorry to ask questions about options that may not apply to me, but I can't be sure that they don't apply if I don't totally understand what they mean. Besides, I can hope that some other user may find this forum thread useful. I couldn't find anything on this topic here.
Reply With Quote
  #4  
Old 08-01-2008, 01:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
A simple example would be someone viewing a large indoor environment. Let's say you wanted to show them the second floor, or a room on the other side of the building. They cannot physically walk there, so you would move the virtual viewpoint origin to the other room, and now they can walk relative to the center of that room.

Realistically, you will never need to use the cave.update() function. There might be a case where someone would have to manually manipulate the tracking data before passing it on to the cave object. In this case they could manually update the cave after they have manipulated the data.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 12:33 AM.


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