Bug 335859 - Quad Buffer Stereo and Composite is Now Possible
Summary: Quad Buffer Stereo and Composite is Now Possible
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-06 05:00 UTC by barureddy
Modified: 2023-01-24 12:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description barureddy 2014-06-06 05:00:02 UTC
For those of us doing profesional work 3d work, there has always been a compromise of using 3d quad buffered stereo or using the pretty, but functional composite extensions. Starting with the Nvidia 337 series drivers, Nvidia has finally implemented composite support with quad buffered stereo. Sadly in order to use it requires a stereo-aware composite manager. It is my understanding kwin is not a stereo aware composite as it does not use the GLX_EXT_stereo_tree extension. More about the GLX_EXT_stereo_tree extension specification can be found at: http://www.opengl.org/registry/specs/EXT/glx_stereo_tree.txt .  

Reproducible: Always
Comment 1 Martin Flöser 2014-06-06 05:44:46 UTC
We probably need someone with experience in this area to implement it. My system neither has that extension nor any software which uses stereo buffering.
Comment 2 barureddy 2014-06-06 16:54:57 UTC
Andy Ritger of nvidia sent me the following email about gnome's progress and where I could get the patches. Maybe this might be of help for whoever might implement this in kwin. 

Owen Taylor at RedHat is currently working on updating gnome/mutter to be stereo-aware.  Those patches are here:

  https://git.gnome.org/browse/cogl/log/?h=wip/quadbuffer-stereo
  https://git.gnome.org/browse/clutter/log/?h=wip/quadbuffer-stereo
  https://git.gnome.org/browse/mutter/log/?h=wip/quadbuffer-stereo
  https://git.gnome.org/browse/gnome-shell/log/?h=wip/quadbuffer-stereo
Comment 3 barureddy 2014-09-30 15:57:31 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=733277

Is the gnome bug that follows the implementation of quad-buffer stereo support.
Comment 4 Fredrik Höglund 2014-12-10 15:37:15 UTC
I have pushed a branch that adds support for stereoscopic 3D and GLX_EXT_stereo_tree to my kwin repository.

Unfortunately I don't have a 3D-capable monitor, so I'm hoping that you will be able to test it and let me know if it works.

To check out the branch, type:
git clone git://anongit.kde.org/clones/kwin/fredrik/kwin.git
cd kwin
git checkout origin/stereo-5.1

More instructions for building KDE applications can be found at:
https://techbase.kde.org/Development/Tutorials/Building_An_Existing_Application

The branch is based on the current stable branch (Plasma/5.1) to make it easier to test. Your distribution should hopefully have packages for all build dependencies.

After starting this version of kwin there should be a new checkbox in the compositing settings for enabling stereoscopic 3D (disabled by default).

I should also add a warning that this code has not been tested at all, so there is a chance that it could fail rather spectacularly.
Comment 5 Vlad Zahorodnii 2023-01-24 12:26:52 UTC
Wayland has no concept of stereo buffers, and X11 is feature frozen. Also, as far as I know, we haven't received that many bug reports about missing support for stereo buffers, so I'm going to close this bug report.