0027755: Visualization, V3d_View::ToPixMap() - fix image dump with MSAA turned on
[occt.git] / tests / v3d / glsl / msaa
CommitLineData
3c4b62a4 1puts "========"
2puts "Multisampling FBOs"
3puts "========"
4
5pload MODELING VISUALIZATION
6box b 2 3 1
7vclear
8vclose ALL
9vinit View1 w=512 h=512
10vsetgradientbg 180 200 255 180 180 180 2
11vsetdispmode 0
12vdisplay b
13vfit
14vrotate 0.5 0 0
15vzbufftrihedron
16
17vrenderparams -msaa 0
521b0d7f 18vdump $::imagedir/${::casename}_512x512@msaa0.png
3c4b62a4 19vrenderparams -msaa 2
521b0d7f 20vdump $::imagedir/${::casename}_512x512@msaa2.png
3c4b62a4 21vrenderparams -msaa 4
521b0d7f 22vdump $::imagedir/${::casename}_512x512@msaa4.png
3c4b62a4 23vrenderparams -msaa 8
521b0d7f 24vdump $::imagedir/${::casename}_512x512@msaa8.png
25
26# check dump with resolutions not equal to window size
27vdump $::imagedir/${::casename}_1920x1080@msaa8.png -width 1920 -height 1080
28vdump $::imagedir/${::casename}_2560x1440@msaa8.png -width 2560 -height 1440
29
30# check dump with stereo
31vstereo anaglyph
32vdump $::imagedir/${::casename}_512x512@msaa8stereo.png -stereo blend
33vdump $::imagedir/${::casename}_1920x1080@msaa8stereo.png -width 1920 -height 1080 -stereo blend
34vdump $::imagedir/${::casename}_2560x1440@msaa8stereo.png -width 2560 -height 1440 -stereo blend
35
36vraytrace 1
37vsetdispmode b 1
38vdump $::imagedir/${::casename}_512x512@msaa8stereort.png -stereo blend
39vdump $::imagedir/${::casename}_1920x1080@msaa8stereort.png -width 1920 -height 1080 -stereo blend
40vdump $::imagedir/${::casename}_2560x1440@msaa8stereort.png -width 2560 -height 1440 -stereo blend
41vsetdispmode b 0
42vraytrace 0