[vtkusers] OffScreen Rendering not fully working in linux and osx
Julien Finet
julien.finet at kitware.com
Fri Feb 8 19:41:20 EST 2013
What if you try to change in vtkXOpenGLRenderWindow.cxx:642 the line
if(this->OwnWindow)
into
if (this->OwnWindow && !this->GetOffScreenRendering())
Julien.
On Tue, Feb 5, 2013 at 9:08 AM, Juan Cardelino <juan.cardelino at gmail.com>wrote:
> Dear all,
> I've been using the attached example for many years now to
> test Offscreen Rendering. It used to work like a charm in every platform. I
> had 3 different states on this program.
>
> 1) Some time ago, it started opening a blank window in mac. After that it
> also happened in Linux. In windows it still works properly.
>
> 2) I added the following code:
>
> // Graphics Factory
> vtkGraphicsFactory * graphics_factory
> = vtkGraphicsFactory::New();
> graphics_factory->SetOffScreenOnlyMode( 1);
> graphics_factory->SetUseMesaClasses( 1 );
>
> // Imaging Factory
> vtkImagingFactory * imaging_factory
> = vtkImagingFactory::New();
> imaging_factory->SetUseMesaClasses( 1 );
>
> Which made it work on linux but not on mac.
>
> 3) Now even with that code osx/linux still open the blank widonw, and in
> Windows works properly.
>
> I tested it with many different vtk configurations, I don't know what I'm
> doing wrong. At the moment I'm testing it in VTK 6.0.0 under Linux.
>
> Any hints would be appreciated.
> Thanks.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130208/6a0e88be/attachment.htm>
More information about the vtkusers
mailing list