<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Robert,<br>
    <br>
    sorry for the delayed answer. It's carnival time here and so
    everybody is out - except me ;-)<br>
    <br>
    I try to give an as compressed description as possible here.<br>
    <br>
    The scene looks like that:<br>
    <span style=" color:#c0c0c0;">     </span><span style="
      color:#000080;">*</span>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  *                                              </span><span style=" color:#000080;">---------------
</span></pre>
    <span style=" color:#000080;"></span>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                              </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">RootNode</span><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">|</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                              </span><span style=" color:#000080;">---------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                               </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;">            </span><span style=" color:#000080;">\</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                        </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">    </span><span style=" color:#000080;">---------------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                        </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">ShadowScene</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;">    </span><span style=" color:#000080;">|evtl.</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">PPU-Prozessor|</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                        </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">    </span><span style=" color:#000080;">---------------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                        </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;">             </span><span style=" color:#000080;">\</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">---------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">Switchnode</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">LightSource</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">---------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                 </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;">          </span><span style=" color:#000080;">\\\</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                         </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">-----------------</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                         </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">User scene</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">evtl.</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">further</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                         </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;">     </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Objects       |</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;">                                </span> <span style=" color:#c0c0c0;">            </span><span style=" color:#000080;">-----------------

The further objects are the wallpaper, a magnifier etc.
</span></pre>
    <br>
    The main camera is a standard camera with perspective view and a
    trackball manipulator.<br>
    The wallpaper class is like that:<br>
    <span style=" color:#808000;">class</span><span style="
      color:#c0c0c0;"> </span><span style=" color:#800080;">Cl_3D_Wallpaper</span><span
      style=" color:#c0c0c0;"> </span>:<span style=" color:#c0c0c0;"> </span><span
      style=" color:#808000;">public</span><span style=" color:#c0c0c0;">
    </span><span style=" color:#800080;">osg</span>::<span style="
      color:#800080;">Camera</span><span style=" color:#c0c0c0;"> </span>{
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">public</span>:</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">Cl_3D_Wallpaper</span>(<span style=" color:#800080;">Cl_3Dview_osg</span><span style=" color:#c0c0c0;"> </span>*_parent);</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000080;">/**</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">This Method creates the background image. </span><span style=" color:#000080;">*/</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">void</span><span style=" color:#c0c0c0;"> </span>setWallpaper(<span style=" color:#808000;">const</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QString</span><span style=" color:#c0c0c0;"> </span>_path);

</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">protected</span>:
<span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">Cl_3Dview_osg</span><span style=" color:#c0c0c0;"> </span>*<span style=" color:#800000;">view</span>;
<span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">QString</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">path</span>;
};

</pre>
    <br>
    <span style=" color:#800080;">Cl_3D_Wallpaper</span>::Cl_3D_Wallpaper(<span
      style=" color:#800080;">Cl_3Dview_osg</span><span style="
      color:#c0c0c0;"> </span>*_parent):<span style=" color:#c0c0c0;">
    </span><span style=" color:#800000;">view</span>(_parent),<span
      style=" color:#c0c0c0;"> </span><span style=" color:#800000;">path</span>(<span
      style=" color:#800080;">QLatin1String</span>(<span style="
      color:#008000;">""</span>))<span style=" color:#c0c0c0;"> </span>{
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setCullingActive(<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">false</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setClearMask(<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setAllowEventFocus(<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">false</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setReferenceFrame(<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Transform</span>::<span style=" color:#800080;">ABSOLUTE_RF</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setRenderOrder(<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>::<span style=" color:#800080;">POST_RENDER</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>setProjectionMatrix(<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Matrix</span>::ortho2D(<span style=" color:#000080;">0.0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1.0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0.0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1.0</span>)<span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" font-style:italic; color:#000000;">setName</span>(getNodeName().toStdString().c_str());</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">StateSet</span>*<span style=" color:#c0c0c0;"> </span>ss<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>getOrCreateStateSet();</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>ss->setMode(<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">GL_LIGHTING</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">StateAttribute</span>::<span style=" color:#800080;">OFF</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>ss->setAttributeAndModes(<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Depth</span>(<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Depth</span>::<span style=" color:#800080;">LEQUAL</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1.0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1.0</span>)<span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800000;">view</span>->installDefaultShader(ss);       // In case we are on gl3</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000080;">/**</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Diese</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Methode</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">erzeugt</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">eine</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Hintergrundbildanzeige,</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">falls</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">der</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Pfad</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">auf</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">eine</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Bilddatei</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">verweist.</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">  </span><span style=" color:#000080;">*/</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">void</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Cl_3D_Wallpaper</span>::setWallpaper(<span style=" color:#808000;">const</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QString</span><span style=" color:#c0c0c0;"> </span>_path)<span style=" color:#c0c0c0;"> </span>{</pre>
    <span style=" color:#c0c0c0;">          </span><span style="
      color:#800000;">path</span><span style=" color:#c0c0c0;"> </span>=<span
      style=" color:#c0c0c0;"> </span>_path;
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">if</span><span style=" color:#c0c0c0;"> </span>(!_path.isEmpty())<span style=" color:#c0c0c0;"> </span>{</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">================================================</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Die</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Szene</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">des</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Bildes</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">erzeugen</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">================================================</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Geode</span>*<span style=" color:#c0c0c0;"> </span>geode<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Geode</span>();</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Geometry</span>*<span style=" color:#c0c0c0;"> </span>geometry<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::createTexturedQuadGeometry(<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Vec3</span>(<span style=" color:#000080;">0</span>,<span style=" color:#000080;">0</span>,<span style=" color:#000080;">0</span>),<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Vec3</span>(<span style=" color:#000080;">1</span>,<span style=" color:#000080;">0</span>,<span style=" color:#000080;">0</span>),<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Vec3</span>(<span style=" color:#000080;">0</span>,<span style=" color:#000080;">1</span>,<span style=" color:#000080;">0</span>),<span style=" color:#000080;">0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>geode-><span style=" font-style:italic; color:#000000;">addDrawable</span>(geometry);</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Texture2D</span>*<span style=" color:#c0c0c0;"> </span>texture<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">view</span>->loadTexture(_path,<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">false</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>geode->getOrCreateStateSet()->setTextureAttributeAndModes(BASE_TEXTURE_UNIT,<span style=" color:#c0c0c0;"> </span>texture,<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">StateAttribute</span>::<span style=" color:#800080;">ON</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>geode->getOrCreateStateSet()->setMode(<span style=" color:#000080;">GL_LIGHTING</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">StateAttribute</span>::<span style=" color:#800080;">OFF</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" font-style:italic; color:#000000;">addChild</span>(geode);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#800000;">view</span>->installDefaultShader(geode->getOrCreateStateSet());      //In case we are on gl3</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>}</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    Now the part of getting a frame buffer screenshot:<br>
    <br>
    <span style=" color:#000080;">/**</span><span style="
      color:#c0c0c0;"> </span><span style=" color:#000080;">The screen
      image is rendered at a pregiven dpi</span><span style="
      color:#000080;"></span><span style=" color:#c0c0c0;"> </span><span
      style=" color:#000080;">*/</span>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#800080;">QImage</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Cl_3Dview_osg</span>::getHighResQImage(<span style=" color:#808000;">const</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>_dpi)<span style=" color:#c0c0c0;"> </span>{</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">double</span><span
      style=" color:#c0c0c0;"> </span>scale<span style="
      color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(<span
      style=" color:#808000;">double</span>)_dpi<span style="
      color:#c0c0c0;"> </span>/<span style=" color:#c0c0c0;"> </span>(<span
      style=" color:#808000;">double</span>)<span style="
      color:#800000;">dpi</span>;
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Calculation of image size and tiles per row</span><span style=" color:#008000;"></span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>width<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(<span style=" color:#808000;">int</span>)<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800000;">view</span>->getGraphicsWidth());</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>height<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(<span style=" color:#808000;">int</span>)<span style=" color:#c0c0c0;"> </span>(<span style=" color:#800000;">view</span>->getGraphicsHeight());</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>imageWidth<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(<span style=" color:#808000;">int</span>)(width<span style=" color:#c0c0c0;"> </span>*<span style=" color:#c0c0c0;"> </span>scale);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>imageHeight<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(<span style=" color:#808000;">int</span>)(height<span style=" color:#c0c0c0;"> </span>*<span style=" color:#c0c0c0;"> </span>scale);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>tiles<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>(imageWidth<span style=" color:#c0c0c0;"> </span>-<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1</span>)<span style=" color:#c0c0c0;"> </span>/<span style=" color:#c0c0c0;"> </span>width<span style=" color:#c0c0c0;"> </span>+<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1</span>;</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <span style=" color:#c0c0c0;"> </span><span style=" color:#c0c0c0;">    
          </span><span style=" color:#800080;">osg</span>::<span
      style=" color:#800080;">ref_ptr</span><<span style="
      color:#800080;">osg</span>::<span style=" color:#800080;">Image</span>><span
      style=" color:#c0c0c0;"> </span>image<span style="
      color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span
      style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span
      style=" color:#800080;">osg</span>::<span style=" color:#800080;">Image</span>;
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"></span>
<span style=" color:#c0c0c0;">    </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Creating the new camera</span>
    <span style=" color:#800080;">osg</span>::<span style=" color:#800080;">ref_ptr</span><<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>><span style=" color:#c0c0c0;">  </span>camera<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>;
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->getOrCreateStateSet()->setGlobalDefaults();</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->setClearColor(<span style=" color:#800000;">view</span>->getCamera()->getClearColor());</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->setViewport(<span style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Viewport</span>(<span style=" color:#000080;">0</span>,<span style=" color:#000080;">0</span>,width,height));</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->setClearMask(<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">GL_COLOR_BUFFER_BIT</span><span style=" color:#c0c0c0;"> </span>|<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">GL_DEPTH_BUFFER_BIT</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->setReferenceFrame(<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Transform</span>::<span style=" color:#800080;">ABSOLUTE_RF</span><span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->setRenderTargetImplementation(<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>::<span style=" color:#800080;">FRAME_BUFFER_OBJECT</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"><span style=" color:#c0c0c0;">    </span></span><span style=" color:#c0c0c0;"><span style=" color:#c0c0c0;"></span><font color="#000000">camera->setRenderOrder( </font><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>::<span style=" color:#800080;">POST_RENDER</span><font color="#000000"> );</font>

<span style=" color:#c0c0c0;"></span>
    </span>camera-><span style=" font-style:italic; color:#000000;">addChild</span>(<span style=" color:#800000;">view</span>->getCamera()->getChild(<span style=" color:#000080;">0</span>)); // The root node</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#c0c0c0;"><span style=" color:#c0c0c0;"></span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">ref_ptr</span><<span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Image</span>><span style=" color:#c0c0c0;"> </span></span>fbImage<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Image</span>;</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>fbImage-><span style=" font-style:italic; color:#000000;">allocateImage</span>(width,height,<span style=" color:#000080;">1</span>,<span style=" color:#000080;">GL_RGBA</span>,<span style=" color:#000080;">GL_UNSIGNED_BYTE</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>camera->attach(<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Camera</span>::<span style=" color:#800080;">COLOR_BUFFER</span>,<span style=" color:#c0c0c0;"> </span>fbImage.get(),<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>);</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Setting the new camera a child of the main camera</span>
</pre>
    <span style=" color:#c0c0c0;">         </span><span style="
      color:#800000;">view</span>->getCamera()-><span style="
      font-style:italic; color:#000000;">addChild</span>(camera.get());
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
<span style=" color:#c0c0c0;">    </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Loop over tiles</span>
<span style=" color:#800080;">    osg</span>::<span style=" color:#800080;">Matrixd</span><span style=" color:#c0c0c0;"> </span>viewMatrix<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">view</span>->getCamera()->getViewMatrix();
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Matrixd</span><span style=" color:#c0c0c0;"> </span>projectionMatrix<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">view</span>->getCamera()->getProjectionMatrix();</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">         
      int</span><span style=" color:#c0c0c0;"> </span>y_out<span
      style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>imageHeight<span
      style=" color:#c0c0c0;"> </span>-<span style=" color:#c0c0c0;"> </span><span
      style=" color:#000080;">1</span>;
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#808000;">for</span><span style=" color:#c0c0c0;"> </span>(<span style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>row<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>;<span style=" color:#c0c0c0;"> </span>row<span style=" color:#c0c0c0;"> </span><<span style=" color:#c0c0c0;"> </span>tiles;<span style=" color:#c0c0c0;"> </span>row++)<span style=" color:#c0c0c0;"> </span>{</pre>
    <span style=" color:#c0c0c0;">                   </span><span
      style=" color:#808000;">for</span><span style=" color:#c0c0c0;"> </span>(<span
      style=" color:#808000;">int</span><span style=" color:#c0c0c0;"> </span>col<span
      style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span><span
      style=" color:#000080;">0</span>;<span style=" color:#c0c0c0;"> </span>col<span
      style=" color:#c0c0c0;"> </span><<span style=" color:#c0c0c0;">
    </span>tiles;<span style=" color:#c0c0c0;"> </span>col++)<span
      style=" color:#c0c0c0;"> </span>{
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Calculate</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">projection</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">matrix</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">offset</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">of</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">each</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">tile</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Matrix</span><span style=" color:#c0c0c0;"> </span>offsetMatrix<span style=" color:#c0c0c0;"> </span>=</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                    </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Matrix</span>::scale(scale,<span style=" color:#c0c0c0;"> </span>scale,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">1.0</span>)<span style=" color:#c0c0c0;"> </span>*</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                    </span><span style=" color:#800080;">osg</span>::<span style=" color:#800080;">Matrix</span>::translate(scale-<span style=" color:#000080;">1</span>-<span style=" color:#000080;">2</span>*col,<span style=" color:#c0c0c0;"> </span>scale-<span style=" color:#000080;">1</span>-<span style=" color:#000080;">2</span>*row,<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0.0</span>);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span>camera->setViewMatrix(viewMatrix);</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span>camera->setProjectionMatrix(<span style=" color:#c0c0c0;"> </span>projectionMatrix<span style=" color:#c0c0c0;"> </span>*<span style=" color:#c0c0c0;"> </span>offsetMatrix<span style=" color:#c0c0c0;"> </span>);</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#800000;">view</span>-><span style=" font-style:italic; color:#000000;">frame</span>();
<span style=" color:#c0c0c0;">            </span>image<span style=" color:#c0c0c0;"> </span>=<span style=" color:#c0c0c0;"> </span>fbImage.get();

<span style=" color:#c0c0c0;">            </span><span style=" color:#008000;">//</span><span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Transferring tile into final image</span>
            .......
<span style=" color:#c0c0c0;"></span>
</pre>
    <span style=" color:#c0c0c0;"></span><span style=" color:#c0c0c0;">
                         </span>}
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span>y_out<span style=" color:#c0c0c0;"> </span>-=<span style=" color:#c0c0c0;"> </span>height;</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">        </span><span style=" color:#808000;">if</span><span style=" color:#c0c0c0;"> </span>(y_out<span style=" color:#c0c0c0;"> </span><<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">0</span>)<span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">break</span>;</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span>}</pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800000;">view</span>->getCamera()->removeChild(camera.get());
}
</pre>
    <br>
    The rendered image is missing my wallpaper.<br>
    If I add the camera as a slave camera to the main camera I just get
    an empty black image.<br>
    Actually I also don't understand the difference between slave and
    child cameras here. I know you explained it recently :-)<br>
    Why does the slave camera give an empty image but the child camera
    doesn't?<br>
    <br>
    BTW. I wrote my code here with the background of giving an example
    to others looking for functionality like that.<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 24.02.2017 um 17:56 schrieb Robert
      Osfield:<br>
    </div>
    <blockquote
cite="mid:CAFN7Y+ViwuL1ruuewdTrYti_4n0+nQcPsXFfg+UgHZiJJmS9tQ@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi Werner,

In principle what you are doing should be possible.  What is going
wrong in your instance is impossible to say without seeing how you are
setting up the viewer Camera's and the in scene graph Camera's.

Robert.

On 24 February 2017 at 16:44, Werner Modenbach
<a class="moz-txt-link-rfc2396E" href="mailto:Werner.Modenbach@texion.eu"><Werner.Modenbach@texion.eu></a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi all,
sorry for so many questions today.

My scene graph has additional cameras as children somewhere in the scene
graph.
For example a hud camera for a background image.

I do screenshots by adding a slave camera to the main camera which renders
the scene to the FB.
Unfortunately this rendering doesn't show the parts of the nested cameras,
i.e. no
background wallpaper.
What is the recommended way to solve this?

Thanks for any help.

- Werner -


_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
      </blockquote>
      <pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>