View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0004139 | VTK | (No Category) | public | 2006-12-05 12:44 | 2008-02-18 18:51 | ||||
Reporter | Andras Lasso | ||||||||
Assigned To | David Cole | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0004139: Off-screen rendering inconsistency if window center is changed | ||||||||
Description | 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[i*2]+deltax,windowCenters[i*2+1]+deltay); would solve the problem (I've performed a few tests and it seems to work fine). | ||||||||
Tags | No tags attached. | ||||||||
Project | |||||||||
Type | |||||||||
Attached Files | WindowToImageFilter_shift_onscreen.png [^] (9,945 bytes) 1969-12-31 19:00
WindowToImageFilter_shift_offscreen.png [^] (1,180 bytes) 1969-12-31 19:00 WindowToImageFilter_shift.tcl [^] (789 bytes) 1969-12-31 19:00 vtkWindowToImageFilter.cxx [^] (14,520 bytes) 1969-12-31 19:00 | ||||||||
Relationships | |
Relationships |
Notes | |
(0006296) Andras Lasso (reporter) 2007-01-31 08:37 |
Uploaded a test script to demonstrate the issue, and the resulting on screen and off screen rendered images. The problem can be fixed by modifying line 310 of vtkWindowToImageFilter.cxx. Modified file uploaded. |
(0006392) David Cole (developer) 2007-02-10 08:40 |
Fixed in CVS HEAD. Will merge to VTK-5-0 after a night on the dashboards... BUG: Fix http://www.vtk.org/Bug/bug.php?op=show&bugid=4139 [^] - use correct window center in vtkWindowToImageFilter - thanks to Andras Lasso of GE Healthcare for the bug report and the fix. /cvsroot/VTK/VTK/Rendering/vtkWindowToImageFilter.cxx,v <-- vtkWindowToImageFilter.cxx new revision: 1.48; previous revision: 1.47 |
(0006968) David Cole (developer) 2007-03-28 10:21 |
Fix merged to the VTK-5-0 branch on 2007-03-28, Rendering/vtkWindowToImageFilter.cxx, revision 1.39.4.1 |
(0006980) David Cole (developer) 2007-03-28 16:53 |
This is fixed as of now in the VTK-5-0 CVS branch. The fix will also be inluded in the upcoming VTK 5.0.3 release. |
(0010560) David Cole (developer) 2008-02-18 18:51 |
Closed - no new data since fix was committed. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2008-02-18 18:51 | David Cole | Status | @80@ => closed |
2008-02-18 18:51 | David Cole | Note Added: 0010560 | |
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |