DiscussionsIssue archiveOCCT:Visualization

Archived issue #0024717

TKOpenGl - globally defined clipping planes blink when operating with view

Open CASCADEOCCT:Visualizationclosed8 public notes

Search issues

Description

When redrawing the view, the global clipping planes are recalculated for the Model-View state which is one frame behind.

The problem occurred after integration of cameras. This problem is not reproduced on OCCT6.7.0 (integration of new clipping planes) and earlier version.

The clipping planes should be defined after setting up viewer model-view matrices. The test case or draw command should be also provided.

Steps to reproduce

vinit
vsetdispmode 1
box b 1 1 1
vdisplay b
vclipplane create pln1
vclipplane set pln1 view Driver1/Viewer1/View1
vclipplane change pln1 equation 0 1 0 -0.5
vfit
# nothing is seen
vrepaint
# everything is ok


Also the problem is seen after:
test bugs vis bug24902_1

just start rotating or panning the scene --> ugly artifacts appear...

Additional information

List of changes:

Corrected bug in OpenGl_View::RedrawScene(..) : viewer clipping planes were defined in wrong view transformation space.

Public activity

8 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: Author
Date: Fri Oct 3 16:40:03 2014 +0400

    0024717: TKOpenGl - globally defined clipping planes blink when operating with view
    
    Specify viewer (global) clippings in correct view transformation space.
02Commenter 2
Dear kgv,

Could you please review branch CR24717?
03Commenter 3
Please test the patch.
04Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
05Commenter 5
Dear Commenter 1,
Branch CR24717 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]

Number of compiler warnings:

occt component :
Linux: 15 (15 on master)
Windows: 0 (0 on master)
MacOS: 199 (199 on master)

products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)

Regressions/Differences:
No regressions/differences

Testing cases:
http://occt-tests/CR24717-master-occt/Debian60-64/bugs/vis/bug24717.html
http://occt-tests/CR24717-master-occt/Windows-32-VC10/bugs/vis/bug24717.html
bugs vis(004) bug24717: OK

Testing on Linux:
occt component :
Total MEMORY difference: 397164356 / 398004436
Total CPU difference: 47749.97000000009 / 47309.68000000025
products component :
Total MEMORY difference: 129757084 / 130037036
Total CPU difference: 16264.080000000009 / 17664.199999999968

Testing on Windows:
occt component :
Total MEMORY difference: 279077600 / 278287368
Total CPU difference: 40325.515625 / 32988.859375
products component :
Total MEMORY difference: 71002740 / 69892128
Total CPU difference: 16625.109375 / 10861.0625

There are no differences in images found by testdiff.
06Commenter 6
Also the problem of test/bugs/vis(004)/bug24902_1 is fixed.
07Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: mkv
Date: Mon Oct 6 13:20:09 2014 +0400

    Correction of test case for issue CR24717

08Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]