DiscussionsIssue archiveOCCT:Visualization

Archived issue #0026571

Visualization, TKOpenGl - write depth values within RayTracing program

Open CASCADEOCCT:Visualizationclosed7 public notes

Search issues

Description

For the moment RayTracing program is able to read depth values from the convenient OpenGL rendering path, but does not write back new values. This breaks Z-layers rendering which are drawn after RayTracing program - and this became more important after dynamic highlighting being rendered in this way in Neutral Point in #0026272.

Steps to reproduce

pload MODELING VISUALIZATION
box b 1 2 3
vinit View1
vglinfo
vclear
vaxo
vsetdispmode 1
vdisplay b
vfit
vraytrace 1
vmoveto 250 250

bug -> highlighting ignores depth values in RayTracing mode.

Public activity

7 archived notes

Participants are labeled by their role within this record.

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

[revision removed]


Detailed log of new commits:

Author: duv
Date: Tue Mar 1 16:54:01 2016 +0300

    Pathtrace depth write

Author: duv
Date: Mon Feb 29 17:11:34 2016 +0300

    Raytrace depth write support
02Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: duv
Date: Mon Feb 29 17:11:34 2016 +0300

    0026571: Visualization, TKOpenGl - write depth values within RayTracing program
    
    View-projection matrix was added to raytrace shaders (as uniform) in order to compute correct depth values for OpenGL.
    For path tracing the additional depth buffer sampler was added to Display.fs program. It allows propagation of depth values from internal FBO to resulting FBO.
    The old approach of mixing of OpenGL and ray-tracing graphics was kept in order to keep correct blending of transparent ray-traced objects with non-transparent OpenGL objects.
03Commenter 3
Dear kgv,

Please review the patch in CR26571_1.
04Author
Please test the patch, test case is not needed.

05Commenter 5
Dear BugMaster,

Branch CR26571_1 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MacOS: 0 (0 on master)
products component:
   Linux: 41 (41 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 90092694 / 90518419 [-0.47%]
Total CPU difference: 19189.10999999978 / 19185.769999999953 [+0.02%]

Testing on Windows:
Total MEMORY difference: 57380977 / 57104588 [+0.48%]
Total CPU difference: 19246.48297409871 / 17709.888724198754 [+8.68%]
06Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]
07Commenter 2
Branch [archived branch] has been deleted by Author.

[revision removed]

Related records