MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0022696Community[OCCT] OCCT:Visualizationpublic2011-08-09 13:072017-08-22 10:51
Reporterkgv 
Assigned Tosan 
PrioritylowSeverityminor 
StatusassignedResolutionopen 
PlatformAOSLOS VersionL
Product Version[OCCT] 6.5.1 
Target Version[OCCT] 7.4.0*Fixed in Version 
Summary0022696: Image dump of 3D Viewer is limited to Video hardware limits
Descriptionhttp://www.opencascade.org/org/forum/thread_21376/ [^]

Detected problems with Image dumping functionality:
- vdump command doesn't check returned handle for NULL (possible when launched on hardware without OpenGL FBO support).
- vdump, this is suggested to show appropriate error message to do not fool user (when dumping failed, when image saving failed, when dumped image has lesser resolution, etc.). Currently no any error message provided.
- V3d_View::ToPixMap(), in case of hardware limits returned image contains cut dump with black areas at top and right but with total resolution equal to requested. Possible solutions - return NULL handle when limits exceeded or return correct dump with reduced dimensions.
- V3d_View::ToPixMap() doesn't support tiled dump (was introduced for printing functionality, OCC22337) thus always limited to GPU hardware limits (however it is 8192x8192 or 16384x16384 on modern hardware!).
- V3d_View::ToPixMap() should also detect allocation errors of auxiliary FBOs (not only target FBO). Although texture size limits is the same for MSAA and normal textures, MSAA textures requires much more memory making allocation errors highly possible -> therefore, it is better apply tiling / use tiles smaller then maximum texture limit.
- Image_PixMap, allocation errors should probably be detected and re-raise constructor exception.
Steps To ReproduceTest case for each problem is hardware and platform dependent!
Notice that there are more problems with Intel graphics.

vinit;
box b 1 2 3;
vdisplay b;
vfit;
vsetdispmode 1;
vdump dpm.jpg depth 18000 18000;
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0022337closedbugmaster Community V3d_View::Print crashes in OCCT 6.5.0 
related to 0022582closedbugmaster Open CASCADE Visualization - provide an API for dumping a sub-region of the viewport 
related to 0029020verifiedbugmaster Open CASCADE Visualization, V3d_View - workaround image dump issue on Intel OpenGL driver 

-  Notes
(0018820)
mkv (tester)
2011-12-12 16:31

*RESTORED*
2011-12-12 08:09 san Relationship added related to 0022337

- Issue History
Date Modified Username Field Change
2011-08-09 13:07 kgv New Issue
2011-08-09 13:07 kgv Assigned To => san
2011-08-09 13:16 kgv Steps to Reproduce Updated View Revisions
2011-09-21 14:24 szy Target Version => 6.5.3
2011-09-22 16:50 szy Status new => assigned
2011-12-12 16:29 mkv Relationship added related to 0022337
2011-12-12 16:31 mkv Note Added: 0018820
2012-02-09 09:09 abv Target Version 6.5.3 => 6.5.4
2012-10-23 10:59 kgv Relationship added related to 0022582
2012-10-23 11:17 abv Target Version 6.5.4 => 6.6.0
2013-02-26 18:36 san Target Version 6.6.0 => 6.7.0
2013-10-18 07:43 kgv Target Version 6.7.0 => 6.7.1
2014-04-04 18:34 abv Target Version 6.7.1 => 6.8.0
2014-09-29 21:57 kgv Target Version 6.8.0 => 7.1.0
2016-08-06 21:43 kgv Description Updated View Revisions
2016-10-25 09:33 kgv Target Version 7.1.0 => 7.2.0
2017-07-20 10:49 kgv Target Version 7.2.0 => 7.4.0*
2017-08-22 10:51 kgv Relationship added related to 0029020


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker