MantisBT - VTK
View Issue Details
0006444VTK(No Category)public2008-02-26 09:142016-08-12 09:54
Chris Kruszynski 
Kitware Robot 
normalminoralways
closedmoved 
 
 
0006444: vtkOpenGLExtensionManager performs undesired Render when vtkRenderWindowInteractor::Initialize() is called
vtkOpenGLExtensionManager r1.31 calls vtkRenderWindow::Render() at line 399 if vtkRenderWindow::GetNeverRendered() returns 1 at line 397.

This results in vtkRenderWindow::Render() being called from the middle of vtkOpenGLRenderWindow::OpenGLInit() with some of the settings which are set in this function still disabled, most notably GL_NORMALIZE. This in turn results in wrong rendering results during the first render after program start, which are very noticeable in some circumstances. See the attached image, on the left what it should look like, and on the right what it actually looks like.

The issue only happens when vtkRenderWindowInteractor::Start() (or Initialize()) is called, and only on the first render pass, thus on any next render pass (such as after any interaction) the image is as it should be. When vtkRenderWindow::Render() is called the issue does not happen, because vtkRenderWindow::Render sets NeverRendered to 0 before any initialization, thus before OpenGLInit() gets called.
This probably only matters in strange circumstances, nevertheless it does happen.

The extension manager should probably not call Render at all, since the manager works just as well when the RenderWindow has not yet actually ever rendered anything in spite of the NeverRendered ivar being set to 0. This happens when vtkRenderWindow::Render() is called - the ivar is 0 but no rendering has yet happened when the manager checks this ivar when it is created in OpenGLInit)).
No tags attached.
png example.png (2,434) 2008-02-26 09:14
https://www.vtk.org/Bug/file/6327/example.png
png
Issue History
2008-02-26 09:14Chris KruszynskiNew Issue
2008-02-26 09:14Chris KruszynskiFile Added: example.png
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036953
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036953)
Kitware Robot   
2016-08-12 09:54   
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.