Archived issue #0026571
Visualization, TKOpenGl - write depth values within RayTracing program
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.
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
[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
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.
[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.
Dear kgv,
Please review the patch in CR26571_1.
Please review the patch in CR26571_1.
Please test the patch, test case is not needed.
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%]
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%]
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]
Branch [archived branch] has been deleted by Author.
[revision removed]
[revision removed]
Related records