Archived issue #0025822
Visualization, TKOpenGl - front material should be used instead of back material in GLSL when distinguish mode is turned off
Description
Back material is usually undefined in fill area aspect when distinguish mode is turned off, which causes visual inconsistency between GLSL and FFP (default on desktop) rendering paths.
Steps to reproduce
pload MODELING VISUALIZATION OCAF XDE box b 10 10 10 NewDocument D MDTV-XCAF XAddShape D b XSetColor D b 0 0 1 explode b f XSetColor D b_1 1 0 0 XShow D vviewparams -proj 1 0.1 0.1 vfit vsetdispmode 1 vclipplane create pln vclipplane set pln view Driver1/Document_D/View1 vclipplane change pln equation -1 0 0 5 # FFP on, pixel is RED3, which is expected vcaps -ffp 1 vreadpixel 200 200 rgb name # GLSL on, pixel should has the same color RED3, but actual color is KHAKI1 vcaps -ffp 0 vreadpixel 200 200 rgb name
Public activity
5 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Feb 12 10:56:53 2015 +0300
0025822: Visualization, TKOpenGl - front material should be used instead of back material within distinguish mode turned off
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Feb 12 10:56:53 2015 +0300
0025822: Visualization, TKOpenGl - front material should be used instead of back material within distinguish mode turned off
Branch [archived branch] has been updated by Author.
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Feb 12 11:16:30 2015 +0300
add test case v3d/glsl/distinguish_off
[revision removed]
Detailed log of new commits:
Author: Author
Date: Thu Feb 12 11:16:30 2015 +0300
add test case v3d/glsl/distinguish_off
Please test the patch.
Dear Commenter 1,
Branch CR25822 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 18 (18 on master)
Windows: 0 (0 on master)
products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR25822-master-occt/Debian60-64/v3d/glsl/distinguish_off.html
http://occt-tests/CR25822-master-occt/Windows-32-VC10/v3d/glsl/distinguish_off.html
v3d glsl(013) distinguish_off: OK
Testing on Linux:
occt component :
Total MEMORY difference: 84555104 / 86236651
Total CPU difference: 50037.98000000005 / 47876.709999999846
products component :
Total MEMORY difference: 22959615 / 22980354
Total CPU difference: 15146.769999999986 / 14500.569999999965
Testing on Windows:
occt component :
Total MEMORY difference: 40649413 / 40658496
Total CPU difference: 37036.0 / 32754.0
products component :
Total MEMORY difference: 11034841 / 11081969
Total CPU difference: 10408.28125 / 10978.125
There are no differences in images found by testdiff.
Branch CR25822 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 18 (18 on master)
Windows: 0 (0 on master)
products component :
Linux: 11 (11 on master)
Windows: 1 (1 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR25822-master-occt/Debian60-64/v3d/glsl/distinguish_off.html
http://occt-tests/CR25822-master-occt/Windows-32-VC10/v3d/glsl/distinguish_off.html
v3d glsl(013) distinguish_off: OK
Testing on Linux:
occt component :
Total MEMORY difference: 84555104 / 86236651
Total CPU difference: 50037.98000000005 / 47876.709999999846
products component :
Total MEMORY difference: 22959615 / 22980354
Total CPU difference: 15146.769999999986 / 14500.569999999965
Testing on Windows:
occt component :
Total MEMORY difference: 40649413 / 40658496
Total CPU difference: 37036.0 / 32754.0
products component :
Total MEMORY difference: 11034841 / 11081969
Total CPU difference: 10408.28125 / 10978.125
There are no differences in images found by testdiff.
Branch [archived branch] has been deleted by Participant.
[revision removed]
[revision removed]
Related records