From: Hugh F. <hug...@an...> - 2003-03-11 06:18:42
|
I've modified cvisual to create fullscreen and/or quad-buffered stereo displays, and would appreciate it being tested elsewhere. Download: <http://cs.anu.edu.au/~hugh.fisher/3dstuff/cvisual.zip> Usage: display() now takes three new parameters: fullscreen = int, default 0 If not zero, creates a borderless fullscreen window stereo = int, default 0 If 1, creates a quad-buffered stereo display if supported by the graphics card. Values other than 1 are reserved for other types of VR display. Both these can only be set at display creation, not later. eyesep = float, default 0.01 Horizontal distance between left and right eyes. With the current code the value has no real world meaning, this works for those demo programs I've tried. What works: The fullscreen code works on RedHat Linux 7.3 and Windows 2000. The stereo code works on Windows 2000 with a Wildcat graphics card. It detects the absence of stereo under Linux, and I'd be surprised if it didn't work, but we don't have a stereo-capable Linux box. What doesn't work: Under Linux fullscreen windows never receive keyboard events. Under Linux calling scene.hide() from within Python generates an "Xlib : unexpected async reply" error message and the window doesn't close. I've hacked the code in this beta to exit the GTK main loop instead, which is OK provided you don't have more than one window open. -- Hugh Fisher DCS, ANU |