[Paraview] Re:Still Problem with Offscreen

Clinton Stimpson clinton at elemtech.com
Tue Apr 18 21:35:10 EDT 2006


The code you are referring to doesn't get called if you are using mangled
mesa.  And you're trying to use mangled mesa, right?

So perhaps it didn't get set properly to use mangled mesa at run time.  Any
one
else know how to make mangled mesa work in pvbatch?

Clint

Quoting Young Fan <availableyoung at yahoo.com>:

> 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! Messenger’s low  PC-to-Phone call 
rates.




More information about the ParaView mailing list