View Single Post
  #3  
Old 09-14-2017, 02:17 AM
rdkirkden rdkirkden is offline
Member
 
Join Date: May 2017
Posts: 20
Hi Jeff,

Many thanks for your reply. Ensuring that the vizconnect_config file was saved and then re-running the Vizard program did not help. However, your observation that the quad buffered stereo needs to be initialised before the graphics window opens guided me to the relevant part of the vizconnect_config file code that I needed to change to get the 3D view working.

There are two lines of code in the vizconnect_config file’s ‘initDisplays’ procedure that deal with the quad buffer setting. One line (‘viz.setOption('viz.stereo', viz.QUAD_BUFFER)’) executes very early on, before viz.go; while the other (‘stereo = viz.QUAD_BUFFER’) sets a variable that is used a bit later, when the display is being created. I remembered that in a Vizard program I wrote for the 3D glasses that did not use Vizconnect, it was not sufficient to specify ‘viz.QUAD_BUFFER’ in the the viz.go command; rather I had to specify ‘viz.QUAD_BUFFER | viz.FULLSCREEN’ to get a 3D display. So I tried modifying the two lines of code in the vizconnect_config file to ‘viz.setOption('viz.stereo', viz.QUAD_BUFFER | viz.FULLSCREEN)’ and ‘stereo = viz.QUAD_BUFFER | viz.FULLSCREEN’, and this gave me a 3D display. Further trial and error showed that only the first line of code actually needed to be modified.

Best regards,
Richard.
Reply With Quote