1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/vis/bug23747_1
san 269294d62e 0023747: Enabling environment mapping breaks text rendering
vtextureenv command added to reproduce the bug
Two test cases using vtextureenv command added:
bug23747_1 - checks that environment mapping does not break text rendering
bug23747_2 - tests environment mapping in general
vtextureenv command improved:
- User-friendly option names supported instead of integer values
- Better input arguments check implemented
2013-03-01 14:14:34 +04:00

29 lines
655 B
Plaintext

puts "============"
puts "CR23747"
puts "Check that enabling environment mapping does not break text rendering"
puts "============"
puts ""
vinit
vclear
vaxo
vtrihedron t
box b 10 20 30
vdisplay b
vsetdispmode b 1
vfit
# To fit trihedron labels into the view
vzoom 0.25
vdump $imagedir/${casename}_before_envmap.png
puts "Checking that text labels at trihedron axes are displayed correctly when env mapping is turned ON"
vtextureenv on 7
vdump $imagedir/${casename}_with_envmap.png
puts "Checking that text labels at trihedron axes are displayed correctly when env mapping is turned OFF"
vtextureenv off
vdump $imagedir/${casename}_after_envmap.png