0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / v3d / glsl / interior1
CommitLineData
2a332745 1puts "============"
2puts "0029076: Visualization - implement element shrinking Shader"
3puts "Test case on spheres"
4puts "============"
5puts ""
6
7pload MODELING VISUALIZATION
8vclear
9vclose ALL
10vinit View1 -width 768 -height 409
11vdefaults -autoTriang 0
12vzbufftrihedron
13psphere s1 2
14psphere s2 1
15psphere s3 1
16psphere s4 1
17psphere s5 1
18compound s1 s2 s3 s4 s5 c
19incmesh c 1.0
20vdisplay -dispMode 1 s1 s2 s3 s4 s5
21vsetlocation s2 -1.3 -1.3 1.3
22vsetlocation s3 1.3 1.3 1.3
23vsetlocation s4 1.3 -1.3 0.0
24vsetlocation s5 -1.3 -1.3 -1.3
25vrotate 0.0 0.5 0.0
26vrotate 0.4 0.0 0.0
27vfit
28
29vaspects s1 -setShadingModel PHONG -setInteriorStyle HOLLOW -setDrawEdges 1 -color GRAY80
30vdrawtext t1 " s1: phong hollow-edges " -pos 2 0 0 -disptype SUBTITLE -color BLACK -subColor GRAY80
31
32vaspects s2 -setShadingModel GOURAUD -setInteriorStyle SOLID -setDrawEdges 1 -setEdgeColor YELLOW
33vdrawtext t2 " s2: gouraud solid-edges " -pos -1.3 -1.3 2.5 -halign CENTER -disptype SUBTITLE -color BLACK -subColor YELLOW
34
aaf8d6a9 35vaspects s3 -setShadingModel PHONG -setInteriorStyle SOLID -setDrawEdges 1 -edgeWidth 2 -setEdgeColor BLUE
36vdrawtext t3 " s3: phong solid-edges " -pos 1.3 1.3 2.5 -halign CENTER -disptype SUBTITLE -color WHITE -subColor BLUE
2a332745 37
38vaspects s4 -setShadingModel GOURAUD -setInteriorStyle HIDDENLINE -setDrawEdges 1 -setEdgeColor RED
39vdrawtext t4 " s4: hiddenline-edges " -pos 1.3 -1.3 -1.3 -halign CENTER -disptype SUBTITLE -color BLACK -subColor RED
40
41vaspects s5 -setShadingModel FLAT -setInteriorStyle SOLID -setDrawEdges 1 -setEdgeColor 0 1 0 0 -edgeWidth 3
42vdrawtext t5 " s5: flat solid-edges " -pos -1.3 -1.3 -2.5 -halign CENTER -disptype SUBTITLE -color BLACK -subColor GREEN
43
44vrenderparams -msaa 0
45vcaps -polygonMode 1
46vdump $imagedir/${casename}_ortho_polmode.png
47
48vcaps -polygonMode 0
49vdump $imagedir/${casename}_ortho_glsl.png
50
51vrenderparams -msaa 4
52vcaps -polygonMode 1
53vdump $imagedir/${casename}_ortho_polmode_msaa.png
54
55vcaps -polygonMode 0
56vdump $imagedir/${casename}_ortho_glsl_msaa.png
57
58vcamera -persp
59vzoom 0.8
60vrenderparams -msaa 0
61vcaps -polygonMode 1
62vdump $imagedir/${casename}_persp_polmode.png
63
64vcaps -polygonMode 0
65vdump $imagedir/${casename}_persp_glsl.png
66
67vrenderparams -msaa 4
68vcaps -polygonMode 1
69vdump $imagedir/${casename}_persp_polmode_msaa.png
70
71vcaps -polygonMode 0
72vdump $imagedir/${casename}_persp_glsl_msaa.png