3D stereoscopic video, line-by-line (interlaced) in QML.
-
I'd like to implement a QML component that accepts two video inputs (using the
MediaPlayercomponent) to combine them into a single line-interlaced image for 3D monitors. Each horizontal line alternates between left and right image.Here is a demo: https://www.youtube.com/watch?v=KS2g8k1tkmg
I found an example of someone using
QPainterand masking to paint two images, but I don't think it is very performant.With that said, what is my best approach here?
I don't have a problem with getting the
QVideoFramefrom theMediaPlayercomponents.Should I try to use the
QSGVideoNode? Will theQSGNodetypes allow me to achieve combine/render twoQSGVideoNodeinstances in line-interlaced mode?Should I just use the
QQuickFramebufferObjectclass and do things myself with traditional OpenGL commands?