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:072019-09-07 15:23
Reporterkgv 
Assigned Tobugmaster 
PrioritylowSeverityminor 
StatusclosedResolutionwon't fix 
PlatformAOSLOS VersionL
Product Version[OCCT] 6.5.1 
Target VersionFixed in Version 
Summary0022696: Visualization - 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
(0086735)
kgv (developer)
2019-09-04 14:59

Dear bugmaster,

please close the issue.

OCCT now provides tools for tiled dump, which can be used by application.
For the moment, there is no blocking necessity for making this routine automatic - can be considered in future.

- 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
2019-09-04 13:04 abv Target Version 7.4.0 => 7.5.0*
2019-09-04 14:56 kgv Summary Image dump of 3D Viewer is limited to Video hardware limits => Visualization - Image dump of 3D Viewer is limited to Video hardware limits
2019-09-04 14:59 kgv Note Added: 0086735
2019-09-04 14:59 kgv Assigned To san => bugmaster
2019-09-04 14:59 kgv Status assigned => feedback
2019-09-04 14:59 kgv Resolution open => won't fix
2019-09-04 14:59 kgv Target Version 7.5.0* => 7.4.0
2019-09-07 15:23 abv Status feedback => closed
2019-09-07 15:23 abv Target Version 7.4.0 =>


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker