View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023363 | Community | OCCT:Visualization | public | 2012-07-28 01:10 | 2012-11-16 13:17 |
Reporter | Roman Lygin | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Product Version | 6.5.3 | ||||
Target Version | 6.5.4 | Fixed in Version | 6.5.4 | ||
Summary | 0023363: [Regression] Lost gradient background when switching to the hollow interior style | ||||
Description | 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. | ||||
Steps To Reproduce | 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 | ||||
Additional information and documentation updates | 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). | ||||
Tags | No tags attached. | ||||
Test case number | chl 935 J0 | ||||
child of | 0023362 | closed | Community | Adding DRAW command vsetinteriorstyle |
|
before-hollow-style.png (33,434 bytes) |
|
after-hollow-style.png (36,820 bytes) |
|
The bug confirmed, GL_POLYGON_MODE is not set properly before drawing the background. |
|
Branch CR23363 is ready for reviewing |
|
Patch reviewed without remarks. Please test it. |
|
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). |
|
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 |
|
J0 (636 bytes) |
occt: master 26395493 2012-08-03 07:16:58
|
0023363: [Regression] Lost gradient background when switching to the hollow interior style Calling glPolygonMode() to ensure filled polygon rendering when drawing the view background Revert "Calling glPolygonMode() to ensure filled polygon rendering when drawing" This reverts commit 41d41ab23cb81acb3bcf7e6ad5d10ea0097eecdd. OpenGl_Workspace::ResetAppliedAspect() method improved in order to reset GL parameters to default values specified in default aspects. This method is now called twice during scene rendering: - At the very beginning by OpenGl_Workspace::Activate() - After all structures has been drawn but before the auxiliary stuff (like trihedrons, overlayer, display callbacks) |
Affected Issues 0023363 |
|
mod - src/OpenGl/OpenGl_View_2.cxx | Diff File | ||
mod - src/OpenGl/OpenGl_Workspace.cxx | Diff File | ||
mod - src/OpenGl/OpenGl_Workspace_5.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-28 01:10 | Roman Lygin | New Issue | |
2012-07-28 01:10 | Roman Lygin | Assigned To | => san |
2012-07-28 01:10 | Roman Lygin | File Added: before-hollow-style.png | |
2012-07-28 01:11 | Roman Lygin | File Added: after-hollow-style.png | |
2012-07-30 08:59 |
|
Note Added: 0021177 | |
2012-07-30 08:59 |
|
Status | new => assigned |
2012-07-30 09:10 |
|
Relationship added | child of 0023362 |
2012-07-30 12:52 |
|
Additional Information Updated | |
2012-07-30 12:52 |
|
Note Added: 0021181 | |
2012-07-30 12:52 |
|
Assigned To | san => kgv |
2012-07-30 12:52 |
|
Status | assigned => resolved |
2012-07-30 14:06 | kgv | Note Added: 0021184 | |
2012-07-30 14:06 | kgv | Assigned To | kgv => bugmaster |
2012-07-30 14:06 | kgv | Status | resolved => reviewed |
2012-07-31 21:18 | Roman Lygin | Note Added: 0021193 | |
2012-08-02 14:50 | apn | Note Added: 0021197 | |
2012-08-02 14:51 | apn | Test case number | => chl 935 J0 |
2012-08-02 14:51 | apn | Status | reviewed => tested |
2012-08-02 14:52 | apn | File Added: J0 | |
2012-08-06 16:35 |
|
Changeset attached | => occt master 26395493 |
2012-08-06 16:35 |
|
Assigned To | bugmaster => san |
2012-08-06 16:35 |
|
Status | tested => verified |
2012-08-06 16:35 |
|
Resolution | open => fixed |
2012-10-01 14:28 | bugmaster | Target Version | => 6.5.4 |
2012-11-16 13:14 | bugmaster | Fixed in Version | => 6.5.4 |
2012-11-16 13:17 | bugmaster | Status | verified => closed |