View Issue Details

IDProjectCategoryView StatusLast Update
0023236CommunityOCCT:Visualizationpublic2014-02-27 18:18
ReporterPawel Assigned ToPawel  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
PlatformWindowsOSVC++ 2005 
Product Version6.5.3 
Summary0023236: Visualization - transparency for XCAFPrs_AISObject not computed correctly
DescriptionFor transparent XCAFPrs_AISObjects it does not seem to matter which one is front. OCCT seems to calculate the pixel color value only once.

Look at the DRAW reproducer and the attached pictures. It doesn't matter whether the grey boxes are in front of the green ones or behind them.
Steps To ReproduceDraw reproducer:

ReadStep D test.step
XShow D
vfit
vsetdispmode 1
XSetTransparency D 0.5

Rotate the view now.
Additional information
and documentation updates
This issue might be related to 23123
TagsNo tags attached.
Test case number

Attached Files

Activities

Pawel

2012-07-02 18:45

developer  

document.png (10,387 bytes)   

Pawel

2012-07-02 18:45

developer  

view_from_behind.png (10,063 bytes)   

Pawel

2012-07-02 18:45

developer  

view_from_front.png (9,588 bytes)   

Pawel

2012-07-02 18:49

developer  

test.step (60,664 bytes)

Pawel

2012-07-09 20:31

developer   ~0020885

Issue 23123 does not solve this problem.

kgv

2014-02-17 15:09

developer   ~0027922

Dear bugmaster,

please close the issue as out of future plans.

san

2014-02-19 10:07

developer   ~0027956

Last edited: 2014-02-19 10:10

Just to clarify the reason why this issue should be closed, I remind once again that the OpenGL rasterizer in OCCT currently implements only good old simplified transparency mechanism based on alpha blending. This technique is known as order-dependent, i.e. the results depends on the order in which primitives are drawn. Spatial relations between transparent objects (overlapping in the view) do not matter - that leads to incorrect visual results when the actual Z order in the eye space differs from the drawing order (in other words, when the front object is drawn first).

There are methods that propose reasonable trade-off between the frame rate and correctness of transparency, e.g. depth peeling. Currently, we do not have plans to implement any advanced transparency algorithms, however, we are ready to consider such a request on a commercial base.

Meanwhile, OCCT ray tracing renderer can be recommended when it is critical to obtain better visual results, because it implements physically correct transparency algorithm.

bugmaster

2014-02-27 18:18

administrator   ~0028057

OCCT ray tracing renderer can be recommended when it is critical to obtain better visual results

Issue History

Date Modified Username Field Change
2012-07-02 18:45 Pawel New Issue
2012-07-02 18:45 Pawel Assigned To => bugmaster
2012-07-02 18:45 Pawel File Added: document.png
2012-07-02 18:45 Pawel File Added: view_from_behind.png
2012-07-02 18:45 Pawel File Added: view_from_front.png
2012-07-02 18:49 Pawel File Added: test.step
2012-07-09 20:31 Pawel Note Added: 0020885
2014-02-17 15:09 kgv Note Added: 0027922
2014-02-17 15:09 kgv Status new => feedback
2014-02-17 15:09 kgv Resolution open => won't fix
2014-02-17 15:09 kgv Summary Transparency for XCAFPrs_AISObject not computed correctly => Visualization - transparency for XCAFPrs_AISObject not computed correctly
2014-02-19 10:07 san Note Added: 0027956
2014-02-19 10:10 san Note Edited: 0027956
2014-02-27 18:18 bugmaster Note Added: 0028057
2014-02-27 18:18 bugmaster Status feedback => closed
2014-02-27 18:18 bugmaster Assigned To bugmaster => Pawel