<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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.<br>
<br>
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:
<a class="moz-txt-link-freetext" href="https://u2671948.dl.dropboxusercontent.com/u/2671948/multiviewport.tar.gz">
https://u2671948.dl.dropboxusercontent.com/u/2671948/multiviewport.tar.gz</a><br>
<br>
On 19. juni 2017 11:59, Andy wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAJBwEK6xhnPSq1+jiru9rAM7mSRAjjGiWoBcvzMUcuJqhBbiAw@mail.gmail.com">
<div dir="ltr">
<div>What you're probably looking for is QRenderCapture:<br>
<br>
  <a href="https://doc.qt.io/qt-5/qt3drender-qrendercapture.html" moz-do-not-send="true">
https://doc.qt.io/qt-5/qt3drender-qrendercapture.html</a><br>
<br>
</div>
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
<a href="https://bugreports.qt.io/browse/QTBUG-61223" moz-do-not-send="true">https://bugreports.qt.io/browse/QTBUG-61223</a> ).<br>
<br>
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).<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>---<br>
Andy Maloney  //  <a href="https://asmaloney.com" target="_blank" moz-do-not-send="true">https://asmaloney.com</a><br>
<div>twitter ~ <span dir="ltr"><a href="https://twitter.com/asmaloney" target="_blank" moz-do-not-send="true">@<span>asmaloney</span></a></span></div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Mon, Jun 19, 2017 at 11:24 AM, Christensen, Matias <span dir="ltr">
<<a href="mailto:Matias.Christensen@flir.com" target="_blank" moz-do-not-send="true">Matias.Christensen@flir.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a Qt application with a 3D scene using Qt 3D.<br>
<br>
What i want is to be able to render a camera at a specific resolution<br>
and framerate, and then to be able to access the resulting images in C++<br>
code so i can encode it using h264 and send it to a different process.<br>
<br>
I am having trouble finding a way to get access to the rendered image, i<br>
image this is made difficult as the image never leaves GPU memory and i<br>
need to get access to it in main memory.<br>
<br>
Does anyone have a suggestion on how i might go about doing this?<br>
<br>
<br>
______________________________<wbr>__<br>
<br>
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.<br>
______________________________<wbr>_________________<br>
Interest mailing list<br>
<a href="mailto:Interest@qt-project.org" moz-do-not-send="true">Interest@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/interest" rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.qt-project.org/<wbr>mailman/listinfo/interest</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<p><br>
</p>
<br>
<hr>
<font face="Verdana" color="Gray" size="1"><br>
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.<br>
</font>
</body>
</html>