MantisBT - Community
View Issue Details
0023363Community[OCCT] OCCT:Visualizationpublic2012-07-28 01:102012-11-16 13:17
Roman Lygin 
san 
normalminor 
closedfixed 
ALL
[OCCT] 6.5.3 
[OCCT] 6.5.4[OCCT] 6.5.4 
chl 935 J0
0023363: [Regression] Lost gradient background when switching to the hollow interior style
Open CASCADE 6.5.3 has a regression vs 6.5.2 and prior versions. When a 3D view view has a gradient background, switching to Aspect_IS_HOLLOW interior cycle leads to its loss.
See screenshots.
The reproducer is based on a new DRAW command vsetinteriorstyle which is committed with 0023362.

Notes:
- if to invoke vsetinteriorstyle p 0 then the 3D view got weird right away, no need to click
- if to invoke vsetinteriorstyle p 3 then the 3D view got back normal
- the issue was tested on Windows, 32/64 bit, VS2008/2010. No experiments were done on Linux.
vinit
vsetgradientbg 250 0 0 0 255 0 2
pcylinder p 100 200
vdisplay p
vsetdispmode p 1
vsetinteriorstyle p 1
# click anywhere in 3D view
View rendering sequence has been improved to synchronize GL state with the OCCT graphic driver state. This is achieved by calling OpenGl_Workspace::ResetAppliedAspect() twice per each frame:
- At the very beginning from OpenGl_Workspace::Activate()
- From OpenGl_View::Render() just after all structures have been drawn but before auxiliary scene elements (trihedrons, overlayer, display callbacks).
No tags attached.
child of 0023362closed san Community Adding DRAW command vsetinteriorstyle 
png before-hollow-style.png (33,434) 2012-07-28 01:10
https://tracker.dev.opencascade.org/
png after-hollow-style.png (36,820) 2012-07-28 01:11
https://tracker.dev.opencascade.org/
? J0 (636) 2012-08-02 14:52
https://tracker.dev.opencascade.org/
Issue History
2012-07-28 01:10Roman LyginNew Issue
2012-07-28 01:10Roman LyginAssigned To => san
2012-07-28 01:10Roman LyginFile Added: before-hollow-style.png
2012-07-28 01:11Roman LyginFile Added: after-hollow-style.png
2012-07-30 08:59sanNote Added: 0021177
2012-07-30 08:59sanStatusnew => assigned
2012-07-30 09:10sanRelationship addedchild of 0023362
2012-07-30 09:43kgvRelationship addedrelated to 0023225
2012-07-30 12:52sanAdditional Information Updatedbug_revision_view_page.php?rev_id=4098#r4098
2012-07-30 12:52sanNote Added: 0021181
2012-07-30 12:52sanAssigned Tosan => kgv
2012-07-30 12:52sanStatusassigned => resolved
2012-07-30 14:06kgvNote Added: 0021184
2012-07-30 14:06kgvAssigned Tokgv => bugmaster
2012-07-30 14:06kgvStatusresolved => reviewed
2012-07-31 21:18Roman LyginNote Added: 0021193
2012-08-02 14:50apnNote Added: 0021197
2012-08-02 14:51apnTest case number => chl 935 J0
2012-08-02 14:51apnStatusreviewed => tested
2012-08-02 14:52apnFile Added: J0
2012-08-06 16:35sanChangeset attached => occt master 26395493
2012-08-06 16:35sanAssigned Tobugmaster => san
2012-08-06 16:35sanStatustested => verified
2012-08-06 16:35sanResolutionopen => fixed
2012-10-01 14:28bugmasterTarget Version => 6.5.4
2012-11-16 13:14bugmasterFixed in Version => 6.5.4
2012-11-16 13:17bugmasterStatusverified => closed

Notes
(0021177)
san   
2012-07-30 08:59   
The bug confirmed, GL_POLYGON_MODE is not set properly before drawing the background.
(0021181)
san   
2012-07-30 12:52   
Branch CR23363 is ready for reviewing
(0021184)
kgv   
2012-07-30 14:06   
Patch reviewed without remarks.
Please test it.
(0021193)
Roman Lygin   
2012-07-31 21:18   
The modifications from branch C23363 have been back ported to 6.5.3 and verified with the original application. The problem has gone.
Many thanks for a super fast turn-around! I really appreciate that - that will allow to ship next CAD Exchanger release on the latest released OCC version (given other tests complete fine).
(0021197)
apn   
2012-08-02 14:50   
Dear BugMaster,
Branch CR23362_1 was created from branches CR23362 and CR23363. It contains changes of both branches.

Branch CR23362_1 (and products from GIT master) was compiled on Linux and Windows platforms and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
chl 935 J0 - OK