MantisBT - VTK
View Issue Details
0015758VTK(No Category)public2015-10-06 06:052016-08-12 09:55
Luc Habert 
Kitware Robot 
highminorhave not tried
closedmoved 
 
 
TBD
incorrect functionality
0015758: vtkOpenGLPolyDataMapper2D (OpenGL2, VTK 6.3) update problem with TransformCoordinate
Assuming we have:

vtkNew<vtkPolyDataMapper2D> m;
vtkNew<vtkCoordinate> coord;
coord->SetCoordinateSystemToWorld();
m->SetTransformCoordinate(coord.GetPointer());

Then use m with a 2D actor to display a polydata. The first render is fine. Now, rotate the view. The polydata rendered by m should rotate along, but it does not.

A simple solution is to call UpdateVBO more often. Of course, it is wasteful, but the old opengl backend did no better, so I think it would be acceptable. For instance, adding

  || (this->TransformCoordinate && this->VBOUpdateTime < viewport->GetMTime())


to the condition governing whether UpdateVBO is called seems to solve the problem in my case.

A better solution would be to not manually transform points and reflect the TransformCoordinate into the opengl matrix, but of course it is more work.
No tags attached.
Issue History
2015-10-06 06:05Luc HabertNew Issue
2016-08-12 09:55Kitware RobotNote Added: 0037418
2016-08-12 09:55Kitware RobotStatusbacklog => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037418)
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.