0027925: Visualization - implement order-independent transparency algorithm within...
[occt.git] / tests / v3d / transparency / blend
CommitLineData
a1073ae2 1puts "========"
2puts "Transparency - check different blend operators"
3puts "========"
4
5# custom shapes
6set aShape1 [locate_data_file occ/Top.brep]
7set aShape2 [locate_data_file occ/Bottom.brep]
8
9vinit View1
10vsetdispmode 1
11vsetgradientbg 180 180 180 255 255 255 2
12restore $aShape1 s1
13restore $aShape2 s2
14vdisplay s1
15vdisplay s2
16vsettransparency s1 0.5
17vsettransparency s2 0.5
18
19# check blending artifacts
20vviewparams -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
22vrenderparams -oit off
23vdump $imagedir/${casename}_blend_artifacts_unordered.png
24
25vrenderparams -oit 1.0
26vdump $imagedir/${casename}_blend_artifacts_oit.png
27
28# check depth occlusion
29vsetcolor s1 red
30vsetcolor s2 black
31
32vviewparams -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
34vrenderparams -oit off
35vdump $imagedir/${casename}_occlusion_unordered.png
36
37vrenderparams -oit 0.0
38vdump $imagedir/${casename}_occlusion_oit_nodepth.png
39
40vrenderparams -oit 1.0
41vdump $imagedir/${casename}_occlusion_oit.png