Kodi Community Forum
WIP Stereoscopic 3D support for half/full SBS, over/under, etc - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: WIP Stereoscopic 3D support for half/full SBS, over/under, etc (/showthread.php?tid=147285)



RE: Stereoscopic 3D support for half/full SBS, over/under, etc - elupus - 2013-08-01

My 3d branch is now merged. It'd be interesting to see some pull requests for other features.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - da-anda - 2013-08-01

I will add JSON and builtins support for the stereomodes etc - already started with it but got stuck. Might take a couple days/weeks though until I have time for it again. Will also add settings descriptions (language labels) if nobody beats me on those.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - afedchin - 2013-08-01

Awesome!
I'll prepare a PR to add generic DX hardware based stereoscopic rendering.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - afedchin - 2013-08-02

@elupus,

I have a couple issue with the lastest version:
1. In TAB and SBS mode I see UI at top (right) side of screen only, but movie shows correctly.
2. Adjusting refresh rate to match video works incorrect. For 24p movie refresh rate adjusted to 59.96p mode, and for the 50i movie adjust to 60p.

Edit: Tested on windows.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - popcornmix - 2013-08-02

@elupus

Top of tree code on Pi doesn't play videos correctly (as reported on the PR).

When playing in SBS mode, you only see the left half of image.
I've checked in (GPU) debugger and video plane is correct, but GL plane contains left half of screen as transparent and right half of screen as opaque/black.
(this is with nothing visible, so should all be opaque).
No UI is visible on the screen when bringing up the OSD.

When playing in TAB mode, you only see the bottom half of screen.
I've checked in (GPU) debugger and video plane is correct, but GL plane contains bottom half of screen as transparent and top half of screen as opaque/black.
(this is with nothing visible, so should all be opaque).
The UI is rendered correctly on bottom half of screen when bringing up the OSD.

When not playing a video, the UI is correctly rendered in both SBS and TAB modes.

Any suggestions? 3D is pretty broken currently.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - bigbadrabbit - 2013-08-06

So this is already available in the nightlies. Is it also usable on Mac OS X or is it Windows only?

AFAIK there's no way to get a frame packed signal out of any Mac at this time (to the lack of HDMI 1.4a).
I have a JVC 3D projector and i set the 3D-mode always manually.

Is there some way to trigger this behavior (SBS GUI rendering) manually or is it scriptable (Applescript)?


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - Memphiz - 2013-08-06

You can use this on all platforms which run XBMC. And you can manually set gui rendering to SBS or over under or whatever you need.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - bigbadrabbit - 2013-08-06

Thanks, Memphiz!
Where do i set it? I haven't found a setting anywhere...


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - Mettbrot - 2013-08-06

You will probably have to set the new "settings level" (in the left sidebar) to expert. Or at least something high :-P


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - bigbadrabbit - 2013-08-06

Thanks again. Found it.
But is there already a way to switch it on the fly? For example set a keyboard shortcut to switch the mode to SBS?

Is there a function to call?


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - afedchin - 2013-08-06

use actions ToggleStereoMode and StereoMode for this.

as example you may add into keyboard.xml the following lines
Code:
<FullscreenVideo>
    <keyboard>
       <s mod="shift">StereoMode</s>
       <t mod="shift">ToggleStereoMode</t>
    </keyboard>
</FullscreenVideo>



RE: Stereoscopic 3D support for half/full SBS, over/under, etc - bigbadrabbit - 2013-08-06

That's what i was looking for.

Thanks to all of you who have made this finally possible!


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - baijuxavior - 2013-08-06

(2013-08-06, 13:35)bigbadrabbit Wrote: Is there some way to trigger this behavior (SBS GUI rendering) manually or is it scriptable (Applescript)?

First rename your movie files to include 3d tags like 3D.SBS or 3D.OU. The flags supported are:

m_stereoscopicflags_sbs = "3DSBS|3D.SBS|HSBS|H.SBS|H-SBS| SBS |FULL-SBS|FULL.SBS|FULLSBS|FSBS|HALF-SBS";
m_stereoscopicflags_tab = "3DTAB|3D.TAB|HTAB|H.TAB|3DOU|3D.OU|3D.HOU| HOU | OU |HALF-TAB";

You can also define your own flags in advancedsettings.xml file.

Another option is to specify the 3D mode in the mkv header itself.

Then in xbmc system > settings > video output > set preferred stereoscopic mode to sbs or ou or same as movie.

In settings > video> playback > playback mode of stereoscopic files > preferred mode.

Now when you click a 3d file the gui will automatically switch to 3d mode.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - da-anda - 2013-08-07

What he said Smile No need for a manual switch. Afaik 3D detection should also work for some mkv even if they don't have correct headers or a keyword in filename.


RE: Stereoscopic 3D support for half/full SBS, over/under, etc - Ned Scott - 2013-08-07

A lot of this is above my head, so I'm not sure what to add to the wiki (advancedsettings.xml (wiki), etc, as well as a general 3D support page). If anyone wants to give it a shot and needs help with the wiki or formatting, give me a poke. Or if anyone has a summary of what needs to be added and to what, like the as.xml stuff, poke me with that and I'll try to add it myself. Lots of good info here, and I don't want to get behind on documenting it.

Great work on this, by the way. I know I knock 3D movies a lot on the forum, but being able to support this stuff really is nice to have and a great achievement.