0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera...
[occt.git] / tests / bugs / vis / bug23652
CommitLineData
61c421bf 1puts "========"
2puts "OCC23652"
3puts "========"
4
5###############################################################################
6c8856a0 6# Non zoomable text with alignment slides away when zooming view
61c421bf 7###############################################################################
6c8856a0 8
6fb1a930 9vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
6c8856a0 11vinit
12vtrihedron tri
aaf8d6a9 13vdrawtext text0 Default -pos 0.0 0.0 0.0 -color WHITE -halign left -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
14vdrawtext text1 Right_Align -pos 0.0 0.0 0.0 -color WHITE -halign right -valign bottom -angle 0 -zoom 1 -height 20 -aspect regular -font SansFont
61c421bf 15
16set scale 3.1783114563761763
61c421bf 17set proj_X 0.57735025882720947
18set proj_Y -0.57735025882720947
19set proj_Z 0.57735025882720947
20set up_X -0.40824827551841736
21set up_Y 0.40824827551841736
22set up_Z 0.81649655103683472
23set at_X 0
24set at_Y 0
25set at_Z 0
26
197ac94e 27vviewparams -scale ${scale} -proj ${proj_X} ${proj_Y} ${proj_Z} -up ${up_X} ${up_Y} ${up_Z} -at ${at_X} ${at_Y} ${at_Z}
61c421bf 28
3af9db62 29set x_coord 210
30set y_coord 204
61c421bf 31
32checkcolor $x_coord $y_coord 0.6 0.6 0.6
33
5747059b 34checkview -screenshot -3d -path ${imagedir}/${test_image}.png