[Paraview] Re:Still Problem with Offscreen
Young Fan
availableyoung at yahoo.com
Fri Apr 14 12:09:16 EDT 2006
The compile problem has been solved ,thanks.
But now I met another problem still about offscreen.
The offscreen function act up well in C/S mode, but failed with pvbatch.
The Rendering Image still was sent to a RenderWindow, the saved into a Image file.
I analyzed the sourcecode about method "setoffscreenrendering" in class "vtkXOpenGLRenderwindow".
In my opinion, it is caused by a evaluation failure of two variables :"PixmapContextId" and "PbufferContextId" when running pvbatch.
There is the sourcecode involved:
_________________________
this->vtkRenderWindow::SetOffScreenRendering(i);
if(i)
{
this->Internal->ScreenDoubleBuffer = this->DoubleBuffer;
this->DoubleBuffer = 0;
this->Internal->ScreenMapped = this->Mapped;
this->Mapped = 0;
if(!this->Internal->PixmapContextId || !this->Internal->PbufferContextId)
{
this->WindowInitialize();
}
}
_________________
I wonder if it is a bug, or just a function that havent been done because of no use and ? How to get rid of the pop-up rendering window when running paraview in pvbatch???
Thanks!
************************************************************************************************
If you are compiling ParaView 2.4 yourself, then
just check out the ParaView-2-4 branch from
CVS. The change in vtkXOpenGLRenderWindow.cxx
for mangled mesa has been added to that branch.
- Amy
At 01:00 AM 4/7/2006, liverpoool at sina.com wrote:
>So how to get a vtkXOpenGLRenderWindow.cxx revision 1.65?
>
>
>
>And did you mean replacing the "vtkXOpenGLRenderWindow.cxx" in
>
>ParaView2.4. with a "" revision 1.65 will be helpful?
>
>
>
>Otherwise, I have compiled ParaView2.0.1 with "VTK_USE_MANGED_
>
>MESA " set to "ON" successfully. But when I run "pvbatch" in
>
>Offscreen mode ,a renderwindow still came out, why?? Dose that
>
> mean ParaView2.0.1 can not do rendering offscreen?
>
>
>
>PS:I do all the jobs on RedHat9.
>
>
---------------------------------
How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060414/89356c8e/attachment.htm
More information about the ParaView
mailing list