View Single Post
  #5  
Old 08-07-2014, 07:05 AM
chris2307 chris2307 is offline
Member
 
Join Date: Nov 2013
Posts: 36
Sorry for the triple post!

So I have a solution although it's by no means elegant and I am sure there is another way around this.

I was getting the graphics error when trying to initialize the graphics when in fullscreen mode. I assume this is because Vizard has some kind of lock on the rendering loop and when trying to initialize a new window from within fullscreen mode, it fails.

I've got around the problem by toggling full screen mode OFF before the drift correction function is called and back ON once it has completed:

Code:
viz.window.setFullscreen(viz.OFF)
EyeTracker.driftCorrection()
viz.window.setFullscreen(viz.ON)
This is, as you can imagine, not the way I want to do things as it looks messy. I need the experiment to be full screen so starting in windowed mode isn't an option either.

Does anyone have any ideas?

Thanks
Reply With Quote