Archived issue #0023804
Unexpected color modulation during texture mapping
Description
AIS_TexturedShape seems to always create Graphic3d_AspectFillArea3d instance with some default material attributes (brass).
As the result, unexpected modulate effect is observed between the texel color and material color (for brass ambient color is yellow - see attached screenshot), even if some different color is specified for the interactive object.
Another minor issue is that there is no way in DRAW to disable color modulation for AIS_TexturedShape. It makes sense to improve vtexture or related command(s).
As the result, unexpected modulate effect is observed between the texel color and material color (for brass ambient color is yellow - see attached screenshot), even if some different color is specified for the interactive object.
Another minor issue is that there is no way in DRAW to disable color modulation for AIS_TexturedShape. It makes sense to improve vtexture or related command(s).
Steps to reproduce
pload ALL
box b 100 100 100
vinit
vdisplay b
vfit
vsetdispmode b 1
vsetmaterial b plastic
vsetcolor b ANTIQUEWHITE
# After this line, the textured shape appears with yellow ambient color
vtexture b 3
# This line has no effect
vsetcolor b ANTIQUEWHITE
box b 100 100 100
vinit
vdisplay b
vfit
vsetdispmode b 1
vsetmaterial b plastic
vsetcolor b ANTIQUEWHITE
# After this line, the textured shape appears with yellow ambient color
vtexture b 3
# This line has no effect
vsetcolor b ANTIQUEWHITE
Public activity
4 archived notes
Participants are labeled by their role within this record.
Seems to be the same as good old #0003038
Dear kgv,
please review the patch in branch CR23804.
please review the patch in branch CR23804.
Patch is ready for testing in branch CR23804_1.
Dear Commenter 1,
Branch CR23804_1 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 18 (18 on master)
Windows: 0 (0 on master)
MacOS: 351 (351 on master)
products component :
Linux: 12 (12 on master)
Windows: 2 (2 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR24804-1-master-occt/Debian60-64/bugs/vis/bug23804.html
bugs vis(004) bug23804: OK
Testing on Linux:
Total MEMORY difference: 355037844 / 355768204
Total CPU difference: 58961.61 / 55245.89999999973
Testing on Windows:
Total MEMORY difference: 378887436 / 381791492
Total CPU difference: 33721.640625 / 43080.4375
There are no differences in images found by testdiff.
Branch CR23804_1 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]
Number of compiler warnings:
occt component :
Linux: 18 (18 on master)
Windows: 0 (0 on master)
MacOS: 351 (351 on master)
products component :
Linux: 12 (12 on master)
Windows: 2 (2 on master)
Regressions/Differences:
No regressions/differences
Testing cases:
http://occt-tests/CR24804-1-master-occt/Debian60-64/bugs/vis/bug23804.html
bugs vis(004) bug23804: OK
Testing on Linux:
Total MEMORY difference: 355037844 / 355768204
Total CPU difference: 58961.61 / 55245.89999999973
Testing on Windows:
Total MEMORY difference: 378887436 / 381791492
Total CPU difference: 33721.640625 / 43080.4375
There are no differences in images found by testdiff.
Related records