<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<big>Actually, I'm not using "Mesa"; I'm using a regular vtkRenderWindow.
Do I need to use the Mesa version before offscreen rendering will work?</big><br>
<br>
Charles Boivin wrote:<br>
<blockquote type="cite" cite="mids17f9c17.045@mailwest.rwdiwest.com">
<pre wrap="">Hi Jared,
Hmmm.... I am running in the evil world of Microsoft, so I would not
know anything about the MESA business.
Documentation says:
virtual void vtkWindow::SetOffScreenRendering         (int)         
[virtual]
        
Create a window in memory instead of on the screen. This may not be
supported for every type of window and on some windows you may need to
invoke this prior to the first render.
Reimplemented in vtkWin32OpenGLRenderWindow, vtkXMesaRenderWindow, and
vtkXOpenGLRenderWindow.
I am assuming that you are running a vtkXMesaRenderWindow then... I
must say that the last sentence (about invoking this before the first
render) is a bit strange, as I am not too sure how this would work out.
Sorry I could not be of more help...
Charles
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Jared Cohen" <a class="moz-txt-link-rfc2396E" href="mailto:Jared.Cohen@noaa.gov"><Jared.Cohen@noaa.gov></a> 10/27/04 12:14pm >>>
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->Hi Charles, thanx for the quick reply! :-)
Yes, I tried offscreen rendering, but it didn't seem to make any
difference at all. Do I need to enable this "MESA" thing before
offscreen rendering will work?
Charles Boivin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hey Jared,
Have you tried using offscreen rendering? Something like this:
this->renWin->SetOffScreenRendering(1);
... take a snapshot of the render window here
this->renWin->SetOffScreenRendering(0);
I use this to output a series of snapshots (to later create an
animation) and it seems to work fine for me, although I do not have
multiple windows that overlap each other.
Hope this helps,
Charles
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">"Jared Cohen" <a class="moz-txt-link-rfc2396E" href="mailto:Jared.Cohen@noaa.gov"><Jared.Cohen@noaa.gov></a> 10/27/04 11:35am >>>
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""> Hi all. I'm part of a team that's building a large, multi-window
</pre>
</blockquote>
<pre wrap=""><!---->GUI;
</pre>
<blockquote type="cite">
<pre wrap="">one of the windows contains the VTK RenderWindow. We implemented a
function to save the scene as a PNG, but there's a problem: if any of
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">the other windows are in the way of the RenderWindow, they get
incorporated into the resulting PNG snapshot! What I want to do is
</pre>
</blockquote>
<pre wrap=""><!---->take
</pre>
<blockquote type="cite">
<pre wrap="">a snapshot of ONLY the contents of the RenderWindow, regardless of
whether or not there are other windows in front of the RenderWindow.
</pre>
</blockquote>
<pre wrap=""><!---->Is
</pre>
<blockquote type="cite">
<pre wrap="">there a way to do this?
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>