0030182: Visualization, Image_AlienPixMap - support reading encoded image from memory...
[occt.git] / tests / bugs / vis / bug24001
1 puts "========"
2 puts "OCC24001"
3 puts "Camera dump test"
4 puts "========"
5
6 box b 1 2 3
7 vinit
8 vdisplay b
9
10 # initialize camera parameters 
11 vcamera -fov 45 -iodType relative -iod 0.05 -zfocustype relative -zfocus 1.0
12
13 # test vdump work
14 # make sure that neither of 4 produced images match each other
15 vcamera -ortho
16 vfit
17 set aTitle "ortho"
18 vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512
19 vcamera -persp
20 vfit
21 set aTitle "persp"
22 vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512
23 vcamera -stereo
24 set aTitle "stereoR"
25 vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512 -stereo R
26 set aTitle "stereoL"
27 vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512 -stereo L
28
29 # test context stereo mode swicthing
30 # if not supported by hardware it must not crash
31 vstereo 1
32 vclose all
33 vinit
34 vdisplay b
35 vcamera -stereo
36 vfit
37 set aTitle "afterSwitch"
38 vdump $imagedir/${casename}_${aTitle}.png -buffer rgb -width 512 -height 512 -stereo R