a1073ae2 |
1 | puts "========" |
2 | puts "Transparency - check different blend operators" |
3 | puts "========" |
4 | |
5 | # custom shapes |
6 | set aShape1 [locate_data_file occ/Top.brep] |
7 | set aShape2 [locate_data_file occ/Bottom.brep] |
8 | |
9 | vinit View1 |
10 | vsetdispmode 1 |
11 | vsetgradientbg 180 180 180 255 255 255 2 |
12 | restore $aShape1 s1 |
13 | restore $aShape2 s2 |
14 | vdisplay s1 |
15 | vdisplay s2 |
16 | vsettransparency s1 0.5 |
17 | vsettransparency s2 0.5 |
18 | |
19 | # check blending artifacts |
20 | vviewparams -scale 4.519 -at 93.051 -88.513 17.789 -eye -156.923 -151.929 6.147 -up -0.246 0.969 0.002 |
21 | |
22 | vrenderparams -oit off |
23 | vdump $imagedir/${casename}_blend_artifacts_unordered.png |
24 | |
25 | vrenderparams -oit 1.0 |
26 | vdump $imagedir/${casename}_blend_artifacts_oit.png |
27 | |
28 | # check depth occlusion |
29 | vsetcolor s1 red |
30 | vsetcolor s2 black |
31 | |
32 | vviewparams -scale 5.807 -at -59.913 -276.799 -4.312 -eye -69.465 -20.350 23.739 -up 0.999 0.038 -0.009 |
33 | |
34 | vrenderparams -oit off |
35 | vdump $imagedir/${casename}_occlusion_unordered.png |
36 | |
37 | vrenderparams -oit 0.0 |
38 | vdump $imagedir/${casename}_occlusion_oit_nodepth.png |
39 | |
40 | vrenderparams -oit 1.0 |
41 | vdump $imagedir/${casename}_occlusion_oit.png |