Off-screen rendering inconsistency if window center is changed
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I've found an inconsistency between normal rendering and off-screen rendering results when I change the window center. (VTK 5.0.1)
It seems that renderer->GetActiveCamera()->SetWindowCenter(x,y) method has no effect when off-screen rendering is used (by vtkWindowToImageFilter). Do you know if there is a specific reason for this or is it a bug?
Possible fix: I suspect that it is due to a bug in void vtkWindowToImageFilter::RequestData(...) because we read the windowCenters (by cams[i]->GetWindowCenter(windowCenters+i*2)) but then we don't use them for anything.
Changing the cam->SetWindowCenter(deltax,deltay); line to cam->SetWindowCenter(windowCenters[i2]+deltax,windowCenters[i2+1]+deltay); would solve the problem (I've performed a few tests and it seems to work fine).