<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Gil,</p>
<p>I'm pretty sure that's because you are using the PhongMaterial
which only writes to Depth and Color0. You'd need to have your own
material which writes to 3 different outputs to properly populate
the 3 color attachments.</p>
<p>Paul<br>
</p>
<div class="moz-cite-prefix">On 8/1/19 7:42 PM, Gil H wrote:<br>
</div>
<blockquote type="cite"
cite="mid:97981209-375A-41E4-A3CA-4817D24B5C99@tastytech.ca">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello
everyone, I’m sure I’m doing something wrong here, but
basically, I’m trying to render multiple frame graph
subtrees into multiple texture targets, and then draw those
as part of the final scene (kind of like seeing security
camera feeds on a few textured quads). Attached is my
minimal test app which shows that only textures attached to
Color0 seem to contain anything. Is it because the surface
is a QWindow? I’ve tried a more complicated example with an
offscreen render surface and an FBO with multiple color
attachments added to it, but the textures I got back from
that were still empty.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Tested this
on Mac with Qt 5.13.0.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">If anyone is
curious about why you would want to do this, I need to
render up to 3 different Qt3D scenes for integration into an
external GL engine. So different camera views and scene
sub-trees need to be drawn onto separate textures each
frame.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
</div>
<img
src="https://u5810871.ct.sendgrid.net/wf/open?upn=wBwg3POqus3ycpk-2F0rxnkTh6GGX9m8uP6qHpajPv1FEL4MaA1tCt1Xibu54sk8hMsGZAxBgEzw8x5p3BxGurS0aDkx7Sgb89HY1jZk4LRwQaVUQRDa0WlPT96qWyY93RuJkfWyOM6f49RErf2GWTKGoAmWvPtk2SoeAiSCcW8nRMkgFB9Wxtvgxa-2FMvC4Dcug6Iyi-2FDR2hnDr-2BUzcEdo8w1MgWzlLVp0zHCgKK7wb8w-3D"
alt="" style="height:1px !important;width:1px
!important;border-width:0 !important;margin-top:0
!important;margin-bottom:0 !important;margin-right:0
!important;margin-left:0 !important;padding-top:0
!important;padding-bottom:0 !important;padding-right:0
!important;padding-left:0 !important;" moz-do-not-send="true"
width="1" height="1" border="0">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Interest mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Interest@qt-project.org">Interest@qt-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.qt-project.org/listinfo/interest">https://lists.qt-project.org/listinfo/interest</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Paul Lemire | <a class="moz-txt-link-abbreviated" href="mailto:paul.lemire@kdab.com">paul.lemire@kdab.com</a> | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel: France +33 (0)4 90 84 08 53, <a class="moz-txt-link-freetext" href="http://www.kdab.fr">http://www.kdab.fr</a>
KDAB - The Qt, C++ and OpenGL Experts</pre>
</body>
</html>