View Issue Details

IDProjectCategoryView StatusLast Update
0032143Open CASCADEOCCT:Visualizationpublic2021-07-01 19:38
Reporterkgv Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version7.2.0 
Target Version7.6.0Fixed in Version7.6.0 
Summary0032143: Visualization - add option excluding transparent object from sorting
DescriptionOCCT 3D Viewer performs automatic sorting of semitransparent groups to be drawn on top of opaque.

In some specific cases (2D UI elements most of all) this behavior is undesired - it is necessary strictly ordering opaque and transparent groups for proper effect.

One option could be defining Graphic3d_AlphaMode_BlendUnordered mode handled in this specific way.
Steps To Reproduce
pload MODELING VISUALIZATION
vinit View1 -width 800 -height 600
vbackground -gradient GRAY20 GRAY80
restore [locate_data_file Ball.brep] b
vdisplay -dispMode 1 b
vfit

set dx 220; set dy 74
set logoPath "$::env(CSF_OCCTResourcePath)/DrawResources/OCC_logo.png"
box logo $dx $dy 0 -preview
vdisplay -dispMode 1 logo -topmost -2d bottomRight [expr $dx+25] 25
vtexture logo "$logoPath"
vaspects logo -alphaMode BLEND -shadingModel UNLIT

vdisplay logo -underlay
# KO - logo in Graphic3d_ZLayerId_BotOSD layer
# is drawn on TOP of 3D object from Graphic3d_ZLayerId_Default layer!
vzlayer DEFAULT -enable depthClear; # workaround sorting issue
# OK - workaround helps

TagsNo tags attached.
Test case numberbugs/vis/bug32143

Relationships

related to 0031278 closedbugmaster Community Visualization - display elements above transparent area 
child of 0029517 closedbugmaster Open CASCADE Visualization - introduce AlphaMode property defining alpha value handling options 
child of 0027925 closedbugmaster Open CASCADE Visualization - implement order-independent transparency algorithm within rasterization rendering 

Activities

git

2021-03-01 15:17

administrator   ~0099238

Branch CR32143 has been created by kgv.

SHA-1: f4727316272b12d985133fd75389385f86b1ba74


Detailed log of new commits:

Author: kgv
Date: Mon Mar 1 15:16:52 2021 +0300

    0032143: Visualization - add option excluding transparent object from sorting
    
    Added option Graphic3d_AlphaMode_MaskBlend combining Mask (no sorting)
    and Blend (enable blending with background) behavior.

git

2021-03-01 16:37

administrator   ~0099245

Branch CR32143 has been updated forcibly by kgv.

SHA-1: 12df1fbc7824f0399629433ac63a4fb4ecead610

kgv

2021-03-01 17:58

developer   ~0099247

Patch is ready for review
- OCCT: branch CR32143.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR32143-master-KGV/

osa

2021-03-02 10:28

developer   ~0099268

The patch was reviewed

bugmaster

2021-03-06 12:15

administrator   ~0099468

Combination -
OCCT branch : IR-2021-03-05
master SHA - 58210e5983a7986bc4cd1bec9c0b5cb29828fda4
a87b7ddc8cb44606b91e3f37113847c3f5f50fdc
Products branch : IR-2021-03-05 SHA - b3d022cfefe721ee2ad6db68ca360345d656610b
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 17744.80000000016 / 17811.87000000015 [-0.38%]
Products
Total CPU difference: 11539.9800000001 / 11543.6500000001 [-0.03%]
Windows-64-VC14:
OCCT
Total CPU difference: 19321.640625 / 19344.390625 [-0.12%]
Products
Total CPU difference: 12868.796875 / 12900.578125 [-0.25%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2021-03-06 13:25

administrator   ~0099498

Branch CR32143 has been deleted by inv.

SHA-1: 12df1fbc7824f0399629433ac63a4fb4ecead610

Related Changesets

occt: master 33425a46

2021-03-01 12:16:52

kgv


Committer: bugmaster Details Diff
0032143: Visualization - add option excluding transparent object from sorting

Added option Graphic3d_AlphaMode_MaskBlend combining Mask (no sorting)
and Blend (enable blending with background) behavior.
Affected Issues
0032143
mod - src/BinMXCAFDoc/BinMXCAFDoc_VisMaterialDriver.cxx Diff File
mod - src/Graphic3d/Graphic3d_AlphaMode.hxx Diff File
mod - src/Graphic3d/Graphic3d_AspectText3d.cxx Diff File
mod - src/OpenGl/OpenGl_Context.cxx Diff File
mod - src/OpenGl/OpenGl_GraduatedTrihedron.cxx Diff File
mod - src/OpenGl/OpenGl_PrimitiveArray.cxx Diff File
mod - src/OpenGl/OpenGl_ShaderManager.hxx Diff File
mod - src/OpenGl/OpenGl_Text.cxx Diff File
mod - src/OpenGl/OpenGl_Workspace.cxx Diff File
mod - src/RWGltf/RWGltf_GltfMaterialMap.cxx Diff File
mod - src/ViewerTest/ViewerTest.cxx Diff File
mod - src/ViewerTest/ViewerTest_ViewerCommands.cxx Diff File
mod - src/XDEDRAW/XDEDRAW_Colors.cxx Diff File
mod - src/XmlMXCAFDoc/XmlMXCAFDoc_VisMaterialDriver.cxx Diff File
add - tests/bugs/vis/bug32143 Diff File

Issue History

Date Modified Username Field Change
2021-02-19 14:20 kgv New Issue
2021-02-19 14:20 kgv Assigned To => kgv
2021-02-19 14:20 kgv Relationship added child of 0029517
2021-02-19 14:24 kgv Relationship added child of 0027925
2021-02-19 14:25 kgv Product Version 7.5.0 => 7.2.0
2021-03-01 12:49 kgv Relationship added related to 0031278
2021-03-01 15:17 git Note Added: 0099238
2021-03-01 16:37 git Note Added: 0099245
2021-03-01 17:58 kgv Note Added: 0099247
2021-03-01 17:58 kgv Assigned To kgv => osa
2021-03-01 17:58 kgv Status new => resolved
2021-03-02 07:50 kgv Steps to Reproduce Updated
2021-03-02 09:51 kgv Steps to Reproduce Updated
2021-03-02 10:28 osa Note Added: 0099268
2021-03-02 10:28 osa Assigned To osa => bugmaster
2021-03-02 10:28 osa Status resolved => reviewed
2021-03-06 12:15 bugmaster Note Added: 0099468
2021-03-06 12:15 bugmaster Status reviewed => tested
2021-03-06 12:19 bugmaster Test case number => bugs/vis/bug32143
2021-03-06 12:34 bugmaster Changeset attached => occt master 33425a46
2021-03-06 12:34 bugmaster Status tested => verified
2021-03-06 12:34 bugmaster Resolution open => fixed
2021-03-06 13:25 git Note Added: 0099498