WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-25-2016, 12:37 PM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
pylink world rendering

Hi!
I use a Eyelink Eye Tracker (SR Research) for the eye tracking and pylink as a communication interface in my experiment.
When I call pylink.doTrackerSetup() to calibrate the eye tracker, the rendering of my world is interrupted (i.e. the application window displays a splash screen) and Vizard needs time to reload the world after the calibration.
Does anyone know how I can fix this (e.g. by pausing the rendering and resuming it after the calibration)?
Reply With Quote
  #2  
Old 04-25-2016, 10:13 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Is the issue that everything is loaded twice, before and after the calibration? If so, perhaps the script could be setup so that models are loaded only after the calibration is complete.
Reply With Quote
  #3  
Old 04-26-2016, 02:26 AM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
Yes, that would be possible.
Is there a way I can pause the rendering process?
Reply With Quote
  #4  
Old 04-26-2016, 04:11 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you post a simple example script that reproduces the issue? Is the issue that the virtual environment is loaded and running, the eye tracker calibration is started, and the Vizard splash screen is shown a second time?
Reply With Quote
  #5  
Old 05-09-2016, 06:43 AM
VizMars VizMars is offline
Member
 
Join Date: Jan 2016
Posts: 40
Yes, that's the problem.
This simple example reproduces the issue. You can skip the calibration by pressing the Esc key, then pylink.closeGraphics() closes the graphic and the Vizard splash screen is shown a second time.

Code:
import viz
import pylink

SIZE = ( viz.getOption('viz.monitor.width', type=int), viz.getOption('viz.monitor.height', type=int) )

viz.go(viz.FULLSCREEN|viz.QUAD_BUFFER)
gallery = viz.add('gallery.ive')

eyelinktracker = pylink.EyeLink(None)
eyelinktracker.sendCommand("screen_pixel_coords =  0 0 %d %d" %(SIZE[0], SIZE[1]))
#eyelinktracker.sendMessage("DISPLAY_COORDS  0 0 %d %d" %(SIZE[0], SIZE[1]))
pylink.openGraphics((SIZE[0], SIZE[1]),32)
eyelinktracker.doTrackerSetup()
pylink.closeGraphics()
Reply With Quote
Reply

Tags
eye tracker, pylink

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
Augmented Reality: virtual world not overlapping real world correctly Vaquero Vizard 7 04-15-2016 01:14 AM
3D world editor Ploep Vizard 2 05-03-2012 02:25 AM
rendering level shahramy Vizard 1 07-26-2010 12:12 PM
why is time faster in my virtual world? billjarrold Vizard 1 11-24-2009 05:33 PM
General Questions about Vizard: World Viz dav Vizard 5 08-28-2006 03:44 PM


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


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