WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-23-2015, 05:11 AM
rajnish_xenium rajnish_xenium is offline
Member
 
Join Date: Jul 2015
Location: Santacruz ,Mumbai,Maharashtra,India
Posts: 12
Reagarding Corner Cave Room in Vizard for VR Application for wand and Joystick button

Hi Jeff..
Please help me for the following ..
i got my wand connected to the PPT machine..via VRPN...for my Corner Cave Room..
code:
import viz
import vizconfig
import vizdragdrop
import vizshape

viz.go(viz.FULLSCREEN | viz.QUAD_BUFFER) #to enable quad buffer, must be in the start

#Create a configurable object for stereo settings
bc= vizconfig.BasicConfigurable('stereo')
bc.addChoiceRadioItem('Stereo Format',[('Quad buffer',viz.QUAD_BUFFER), \
('Anaglyphic',viz.ANAGLYPHIC), \
('Side by Side TV',viz.STEREO_3DTV_SIDE_BY_SIDE), \
('Top Bottom TV',viz.STEREO_3DTV_TOP_AND_BOTTOM),\
('Horizontal Stereo for 2 channels',viz.STEREO_HORZ)],\
viz.MainWindow.stereo,viz.MainWindow.getStereo)
bc.addFloatRangeItem('Inter-pulilary Distance',[-.5,.5],fset=viz.MainWindow.ipd,fget=viz.MainWindow.getIP D)
bc.addFloatRangeItem('Screen Distance',[0,5],fset=viz.MainWindow.screenDistance,fget=viz.MainW indow.getScreenDistance)
bc.addFloatRangeItem('Field of View Vertical',[10,150],fset=viz.MainWindow.fov,fget=viz.MainWindow.getVe rticalFOV)
bc.addFloatRangeItem('Fusion Distance',[.2,10],fset=viz.MainWindow.fusionDistance,fget=viz.MainW indow.getFusionDistance)
vizconfig.register(bc)
vizconfig.getConfigWindow().setWindowVisible(True)

gallery = viz.add('gallery.osgb')

f = viz.add('vcc_female.cfg', pos=[0, 0, 2])
f.state(5)

#wand coonection to the PPT machine

code:

vrpn = viz.add('vrpn7.dle')
# Add PPT extension
ppt = viz.add('ppt.dle')
tracker0 = vrpn.addTracker('PPT0@WorldViz-PC',0)
tracker1 = vrpn.addTracker('PPT0@WorldViz-PC',1)

#You code for getting data of Buttons.on Wand

isense = viz.add('intersense.dle')
tracker = isense.addTracker()

def printJoystickData():

print tracker.getJoystickPosition()

vizact.onupdate(1,printJoystickData)

def onSensorDown(e):
if e.object is tracker:
print 'Button',e.button,'down'
viz.callback(viz.SENSOR_DOWN_EVENT,onSensorDown)

def onSensorUp(e):
if e.object is tracker:
print 'Button',e.button,'up'
viz.callback(viz.SENSOR_UP_EVENT,onSensorUp)


...I m not getting any response ..from the wand..

I m performing building application on Vizard 5 for Corner cave room ...but unable to get the output..

i m cleared with python ..vizard concepts ..but there a confusion for markerid,sensors..
How many sensors are there on wand..


it the LED blink on wand is sensors?
is Joystick have sensor..?
buttons on wand has sensor..?
triggers button ahs sensor..?
what will be the marker ids for that..?
I m confused..?

Please help me to get clear concepts for cearance for marker id ..and sensors..

Please help me

Our company ..Xenium Digital Pvt Ltd has just purchased PPT system..with cameras..we have PPT studio set up..


Please help me at the earliest...

Please help me for the following....Jeff

1)Wand joystick connection data and button data..

2)Wand an Avatar to move when i press my Joystick..for ex:back forward..left and right...

3)Want my wand to attach the virtual object..in the virtual environment...

Note; I m using Vizard 5 for building a Corner Cave room.. for my Virtual Reality..


M.Rajnish Vishwakarma(Developer at Xenium Digital Pvt Ltd.)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Properly aligning the intersense with the PPT Systems Z Axis shivanangel Precision Position Tracker (PPT) 0 11-10-2009 11:35 AM
world is tilting - intersense or code problem? billjarrold Vizard 2 11-06-2009 08:03 AM
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM
using demo with intersense G-Chan Vizard 1 02-06-2006 02:05 PM
intersense orientation jargon Vizard 2 05-14-2005 04:55 PM


All times are GMT -7. The time now is 07:44 AM.


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