#####################################################################''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' VIZARD/PYTHON SCRIPT FOR IMMERSIVE 3D EXPERIMENTS. ALL RIGHTS RESERVED YOSHIOKA LAB, CHIBA UNIVERSITY, JAPAN.
This Script Based on using the following equipments. - WorldViz Vizard 8.0 - Vive Focus Vision via SteamVR - maybe required SRAnipal'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''#####################################################################
import viz
viz.go()viz.setMultiSample(4)viz.fov(80)
import vizfxmodel = vizfx.addChild('piazza.osgb')
################## VIVE include Focus Vision ##################import steamvrhmd = steamvr.HMD()VizLink = viz.link(hmd.getSensor(), viz.MainView, offset = (0,0,0))
################## eyetracker with Focus Vision ##################VivePro = viz.add('VivePro.dle') eyeTracker = VivePro.addEyeTracker()
import vizshapepoint = vizshape.addSphere(radius=0.3, color=viz.GREEN)point.disable(viz.INTERSECTION)
import vizactdef EyePosition_World(): gazeMat = eyeTracker.getMatrix() gazeMat.postMult(viz.MainView.getMatrix()) line = gazeMat.getLineForward(1000) info = viz.intersect(line.begin, line.end) point.setPosition(info.point)recordCallback = vizact.onupdate(0,EyePosition_World)