3D stereoscopic video, line-by-line (interlaced) in QML.
-
I'd like to implement a QML component that accepts two video inputs (using the
MediaPlayer
component) 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
QPainter
and 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
QVideoFrame
from theMediaPlayer
components.Should I try to use the
QSGVideoNode
? Will theQSGNode
types allow me to achieve combine/render twoQSGVideoNode
instances in line-interlaced mode?Should I just use the
QQuickFramebufferObject
class and do things myself with traditional OpenGL commands?