Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Using qtquick as texture in 3D

$
0
0
I wrote a small demo as described in Using qt widgets as texture in 3D [qt-project.org] to render widgets into opengl textures for using them e.g. as a 3D ui. Now I wonder what would be the best way to achieve this with qt quick 2.0. In qt5 I didn’t find a way to render a qml scene into a pixmap like this: QPainter painter( &pixmap ); scene->render( &painter ); // render ui updates to texture I’m not sure how to, but maybe it would be possible to use: QQuickWindow::setRenderTarget(QOpenGLFramebufferObject * fbo) Does anyone have an advice or know a better solution? Thanks.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>