I tried using QRenderCapture by combining the rendercapture-qml and 
shadow-map-qml examples to be able to capture a rendered image at a fixed 
resolution. I feel like i am close, but just get a black image when i try to 
capture the image.

I would appreciate it if anyone could take the time to look at what i have 
gotten so far, and tell me what i am doing wrong: 
https://u2671948.dl.dropboxusercontent.com/u/2671948/multiviewport.tar.gz

On 19. juni 2017 11:59, Andy wrote:
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<mailto: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<mailto:Interest@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/interest



________________________________

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

Reply via email to