MantisBT - Community
View Issue Details
0027366Community[OCCT] OCCT:Visualizationpublic2016-04-08 14:112017-09-29 16:31
daniel132 
bugmaster 
lowminor 
closedfixed 
w
[OCCT] 7.0.0 
[OCCT] 7.2.0[OCCT] 7.2.0 
Not needed
0027366: Z-Layer: Strange highlight behaviour
Changing the Z-layer of an object results in strange highlight behaviour.
Not observed in 6.8
pload MODELING VISUALIZATION
vinit 
vsetdispmode 1
box b 10 10 10 
box b1 40 40 40 40 40 40 
set aZLayer [vzlayer -add]
vdisplay b -layer $aZLayer
vdisplay b1
vfit
No tags attached.
related to 0025695closed apn Community Visualization, AIS_InteractiveContext - define default HilightMode 
related to 0028127closed apn Open CASCADE Visualization - transparent object breaks Z-Layer depth buffer clear 
png Untitled.png (26,648) 2016-04-08 14:15
https://tracker.dev.opencascade.org/
Issue History
2016-04-08 14:11daniel132New Issue
2016-04-08 14:11daniel132Assigned To => kgv
2016-04-08 14:15daniel132File Added: Untitled.png
2016-04-08 17:41kgvRelationship addedrelated to 0026272
2016-04-08 17:50kgvNote Added: 0052547
2016-04-08 17:50kgvPrioritynormal => low
2016-04-08 17:50kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=13426#r13426
2016-04-08 17:51kgvNote Edited: 0052547bug_revision_view_page.php?bugnote_id=52547#r13428
2016-04-08 17:52kgvNote Edited: 0052547bug_revision_view_page.php?bugnote_id=52547#r13429
2016-06-16 21:29kgvRelationship addedduplicate of 0026438
2016-11-15 09:47kgvRelationship addedrelated to 0025695
2016-11-19 08:58kgvRelationship addedrelated to 0028127
2016-12-16 16:43kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=15609#r15609
2016-12-16 16:46kgvNote Added: 0061746
2016-12-16 16:46kgvAssigned Tokgv => bugmaster
2016-12-16 16:46kgvStatusnew => feedback
2016-12-16 16:47kgvNote Added: 0061747
2016-12-22 11:37apnTest case number => Not needed
2016-12-22 11:37apnStatusfeedback => tested
2016-12-22 11:37apnTarget Version => 7.2.0
2016-12-22 11:38apnResolutionopen => fixed
2016-12-22 11:38apnStatustested => verified
2017-01-02 11:46kgvRelationship replacedhas duplicate 0026438
2017-09-29 16:21aivFixed in Version => 7.2.0
2017-09-29 16:31aivStatusverified => closed

Notes
(0052547)
kgv   
2016-04-08 17:50   
(edited on: 2016-04-08 17:52)
This is a limitation of highlighting API - it does not provide the way to specify ZLayer explicitly. Therefore default settings conflict with ZLayers defined with depth-buffer clearing option.

Note that provided test case is incorrect since it tries displaying the object in non-existing layer - see vzlayer command for details. Current implementation still implicitly passes object with invalid layer id to the lowers layer which is Graphic3d_ZLayerId_BotOSD, but probably exception indicating an application error would be better in this case.

(0061746)
kgv   
2016-12-16 16:46   
Within patch for 0025695 it is now possible to assign ZLayer for displaying dynamic highlighting:
vselprops dynHighlight -layer -1

and with the option -1 the layer of highlighted presentation will be used - which should fix the issue in this usage scenario.
(0061747)
kgv   
2016-12-16 16:47   
Dear bugmaster,

please switch the issue into VERIFIED state.