WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-08-2007, 05:40 AM
Plymouth Plymouth is offline
Member
 
Join Date: May 2006
Location: Plymouth, UK
Posts: 24
Head Height

Does Vizard have a default setting that constrains changes to the height of the viewpoint?

I'm tracking movement with PPT. Whenever I try to raise my head's elevation (jump) there's no response and when I try to lower it (crouch) it suddenly moves my headheight to the ceiling and then lowers it from there. I'd like to be able to move my head around in three dimensions without getting strange effects.
Reply With Quote
  #2  
Old 02-08-2007, 10:53 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Do you have view collision on? If using PPT head tracking you should not have view collision on.

Try PPT head tracking in the world demos like the Gallery. It should work correctly here.
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
  #3  
Old 02-08-2007, 12:31 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 219
in the gallery, also make sure to comment out viz.collision(viz.ON)
Reply With Quote
  #4  
Old 02-09-2007, 06:04 AM
Plymouth Plymouth is offline
Member
 
Join Date: May 2006
Location: Plymouth, UK
Posts: 24
This is all becoming entirely too strange. When I comment out the viz.collision(viz.ON) line it puts my eyeheight at the top of the room all the time. And now when I try to run Gallery with the tracker box check it crashes while loading. It didn't used to do that. I haven't changed trackers or anything like that recently.
Reply With Quote
  #5  
Old 02-09-2007, 09:25 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Here is the proper way to setup PPT and Intersense head tracking in Vizard 3.0. If you are not using Vizard 3.0, download it.

Code:
import viz
viz.go()

PORT_PPT = 0 #Com port number. Zero to search through COM1 to COM4
headPosSensor = viz.add('vizppt.dls')
PORT_INTERSENSE = 0 #Com port number. Zero to search through COM1 to COM4
headOriSensor = viz.add('intersense.dls')
headCombined = viz.mergeLinkable( headPosSensor, headOriSensor )

# Link hybrid head sensor to view and don't offset by eyeheight
headLink = viz.link(headCombined, viz.MainView, dstFlag = viz.LINK_POS_RAW)

#add world
viz.add('court.ive')
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
  #6  
Old 02-12-2007, 10:38 AM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
Simplicity is a virtue. This works for me.

Code:
from viz import *

go()

room = add('gallery.ive')

pos = add('vizppt.dls')
ori = add('intersense.dls')
tracker()

def onKeyDown(key):
	
	if key == 'r':
		pos.reset()
		ori.reset()
		
	if key == '1':
		eyeheight(1.8)
	if key == '2':
		eyeheight(0)
	if key == '3':
		eyeheight(4)
		
callback(KEYDOWN_EVENT,onKeyDown)
Initially the eyeheight comes out too high for some reason, but if
you hit 'r' it makes it 1.8m. Also, you can change the eyeheight to
whatever you want using the viz.eyeheight(height) command.
After that hitting 'r' will reset the eyeheight to whatever 'height' is.
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 02:20 AM.


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