<html><body>
<p><font face="Courier New">Hi,</font><br>
<br>
<font face="Courier New">I'm using vtk to render a scene into a buffer, which is then processed and viewed interactively (i.e. zoom/pan/rotate) by my application.</font><br>
<br>
<font face="Courier New">While onscreen rendering is fast enough for my scene, when I set the OffScreenRendering to 'On', rendering process is slow. I believe that Offscreen rendering doesn't use graphics hardware acceleration, and cpu is obviously slower.</font><br>
<br>
<font face="Courier New">Apparenty, when I use onscreen rendering, the WindowToImageFilter does generate the image to the buffer (provided the vtk viewport is fully on the screen). In this situation the rendering is fast and I get the image to my buffer fast, but I am stuck with additional window (vtk viewport) on my screen.</font><br>
<br>
<font face="Courier New">Is there a possibility to define Off-Screen rendering to use hardware acceleration instead of cpu?</font><br>
<font face="Courier New">A sample of the code is attached at the bottom of the messege.</font><br>
<br>
<font face="Courier New">Thanks,</font><br>
<font face="Courier New">Dov</font><br>
<br>
<font face="Courier New">------------------------------------------------------</font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;renWin = vtkRenderWindow::New();</font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;renWin-&gt;OffScreenRenderingOn(); </font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;renWin-&gt;AddRenderer(</font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;ren); </font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;ren = vtkRenderer::New();</font><br>
<font face="Courier New">        this-&gt;w2if = vtkWindowToImageFilter::New();</font><br>
<font face="Courier New">        this-&gt;w2if-&gt;SetInput(renWin);</font><br>
<br>
<br>
        ......<br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;renWin-&gt;Render();                </font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">this</font><font face="Courier New">-&gt;</font><font face="Courier New">w2if-&gt;Modified();</font><br>
<font face="Courier New">        this-&gt;w2if-&gt;Update();        </font><br>
<font face="Courier New"> </font><br>
<font face="Courier New">        </font><font color="#0000FF" face="Courier New">unsigned</font><font face="Courier New"> </font><font color="#0000FF" face="Courier New">char</font><font face="Courier New"> *data = (</font><font color="#0000FF" face="Courier New">unsigned</font><font face="Courier New"> </font><font color="#0000FF" face="Courier New">char</font><font face="Courier New">*) w2if-&gt;GetOutput()-&gt;GetScalarPointer(0,0,0);</font><br>
<br>
</body></html>