View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007841VTK(No Category)public2008-10-22 15:432016-08-12 09:55
ReporterElvis John Dowson 
Assigned ToKitware Robot 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007841: vtkCarbonRenderWindow displays an unnecessary window when set to perform off-screen rendering
DescriptionHi,
        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
Additional InformationThe 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.

TagsNo tags attached.
Project
Type
Attached Filesjpg file icon vtkCocoaRenderWindow error 01.jpg [^] (35,600 bytes) 2008-10-22 15:43


zip file icon vtkOffScreenRenderingCarbonTest.zip [^] (25,226 bytes) 2008-10-22 16:08
jpg file icon vtkCarbonRenderWindow error 01.jpg [^] (49,836 bytes) 2008-10-22 16:10

 Relationships

  Notes
(0013919)
Elvis John Dowson (reporter)
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 (reporter)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2008-10-22 15:43 Elvis John Dowson New Issue
2008-10-22 15:43 Elvis John Dowson File Added: vtkCocoaRenderWindow error 01.jpg
2008-10-22 16:08 Elvis John Dowson File Added: vtkOffScreenRenderingCarbonTest.zip
2008-10-22 16:10 Elvis John Dowson File Added: vtkCarbonRenderWindow error 01.jpg
2008-10-22 16:11 Elvis John Dowson Note Added: 0013919
2008-10-28 07:08 Andras Lasso 2 Note Added: 0013956
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037033
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team