MantisBT - VTK
View Issue Details
0007841VTK(No Category)public2008-10-22 15:432016-08-12 09:55
Elvis John Dowson 
Kitware Robot 
normalmajoralways
closedmoved 
 
 
0007841: vtkCarbonRenderWindow displays an unnecessary window when set to perform off-screen rendering
Hi,
        There is a bug in vtkCarbonRenderWindow which causes it to display an unnecessary window, when set to work in off-screen rendering mode. This window should not appear when performing off-screen rendering.

Best regards,

Elvis Dowson
The attached screenshot shows the Carbon render window implementation.

The screen on the left if the vtkCarbonRenderWindow artifact that gets displayed when we use OpenGL FBO mode.

The screen on the right is the QGraphicsView object, which contains a QGraphicsScene, onto which the VTK generated OpenGL images have been copied as pixel data from the vtkCarbonRenderWindow in off-screen rendering mode.

No tags attached.
jpg vtkCocoaRenderWindow error 01.jpg (35,600) 2008-10-22 15:43
https://www.vtk.org/Bug/file/6792/vtkCocoaRenderWindow%20error%2001.jpg
jpg

zip vtkOffScreenRenderingCarbonTest.zip (25,226) 2008-10-22 16:08
https://www.vtk.org/Bug/file/6796/vtkOffScreenRenderingCarbonTest.zip
jpg vtkCarbonRenderWindow error 01.jpg (49,836) 2008-10-22 16:10
https://www.vtk.org/Bug/file/6797/vtkCarbonRenderWindow%20error%2001.jpg
jpg
Issue History
2008-10-22 15:43Elvis John DowsonNew Issue
2008-10-22 15:43Elvis John DowsonFile Added: vtkCocoaRenderWindow error 01.jpg
2008-10-22 16:08Elvis John DowsonFile Added: vtkOffScreenRenderingCarbonTest.zip
2008-10-22 16:10Elvis John DowsonFile Added: vtkCarbonRenderWindow error 01.jpg
2008-10-22 16:11Elvis John DowsonNote Added: 0013919
2008-10-28 07:08Andras Lasso 2Note Added: 0013956
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037033
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0013919)
Elvis John Dowson   
2008-10-22 16:11   
Please delete file attachment vtkCocoaRenderWindow error 01.jpg It does not belong to this bug report.
(0013956)
Andras Lasso 2   
2008-10-28 07:08   
Proposed fix:

The window can be hidden (iconified) by inserting a XIconifyWindow(...) call into vtkXOpenGLRenderWindow.cxx (in vtkXOpenGLRenderWindow::CreateAWindow() method) as shown in the diff below. This is working on fedora linux without problems.

Diff compared to VTK-5.2.0:

--- vtkXOpenGLRenderWindow.cxx 2008-07-21 16:17:20.000000000 +0200
+++ vtkXOpenGLRenderWindowPatched.cxx 2008-10-28 12:04:50.494087800 +0100
@@ -646,6 +647,14 @@
       XGetWindowAttributes(this->DisplayId,
                            this->WindowId,&winattr);
       }
+
+ // Hide off-screen rendering window
+ if (this->OffScreenRendering)
+ {
+ // in case of OffScreen rendering hide the renderer window (anyway it will be always empty)
+ XIconifyWindow(this->DisplayId,this->WindowId, v->screen);
+ }
+
     }
   // free the visual info
   if (v)
(0037033)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.