What you're probably looking for is QRenderCapture: https://doc.qt.io/qt-5/qt3drender-qrendercapture.html
I've used it with mixed success to save out images and create a movie using ffmpeg - works fine on macOS, isn't working for me on Windows (see https://bugreports.qt.io/browse/QTBUG-61223 ). I also don't know how to set the resolution other than changing the actual window the scene is being rendered in (maybe there's a way to do it using offscreen rendering but I haven't figured it out). --- Andy Maloney // https://asmaloney.com twitter ~ @asmaloney <https://twitter.com/asmaloney> On Mon, Jun 19, 2017 at 11:24 AM, Christensen, Matias < matias.christen...@flir.com> wrote: > I have a Qt application with a 3D scene using Qt 3D. > > What i want is to be able to render a camera at a specific resolution > and framerate, and then to be able to access the resulting images in C++ > code so i can encode it using h264 and send it to a different process. > > I am having trouble finding a way to get access to the rendered image, i > image this is made difficult as the image never leaves GPU memory and i > need to get access to it in main memory. > > Does anyone have a suggestion on how i might go about doing this? > > > ________________________________ > > Notice to recipient: This email is meant for only the intended recipient > of the transmission, and may be a communication privileged by law, subject > to export control restrictions or that otherwise contains proprietary > information. If you receive this email by mistake, please notify us > immediately by replying to this message and then destroy it and do not > review, disclose, copy or distribute it. Thank you in advance for your > cooperation. > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest