0027254: [Regression] 7.0 types initialization mechanism is not thread-safe on VS2013
[occt.git] / samples / tcl / pathtrace.tcl
CommitLineData
8c820969 1#########################################################################
2# 26437: Visualization - Improve path tracing rendering engine
3#########################################################################
4
5pload ALL
6
7# setup 3D viewer content
8vinit name=View1 w=512 h=512
9vglinfo
10
11vvbo 0
12vsetdispmode 1
13vcamera -persp
14
15box b 1 1 1
16explode b FACE
17vdisplay b_1 b_2 b_3 b_5 b_6
18
27af3052 19vfront
8c820969 20vfit
21
22vsetmaterial b_1 plastic
23vsetmaterial b_2 plastic
24vsetmaterial b_3 plastic
25vsetmaterial b_5 plastic
26vsetmaterial b_6 plastic
27
28vbsdf b_1 -kd 1 -ks 0
29vbsdf b_2 -kd 1 -ks 0
30vbsdf b_3 -kd 1 -ks 0
31vbsdf b_5 -kd 1 -ks 0
32vbsdf b_6 -kd 1 -ks 0
33
34vbsdf b_2 -kd 0.3 0.5 1
35vbsdf b_1 -kd 1 0.3 0.3
36
37vsetlocation b_1 1 0 0
38vsetlocation b_2 -1 0 0
39vsetlocation b_5 0 0 1
40vsetlocation b_6 0 0 -1
41vsetlocation b_3 0 1 0
42
43vlight del 0
44vlight del 1
45vlight add positional head 0 pos 0.5 0.5 0.85
46vlight change 0 sm 0.06
47vlight change 0 int 60.0
48
49psphere s 0.2
50vdisplay s
51vsetlocation s 0.21 0.3 0.2
52vsetmaterial s glass
53vbsdf s -absorpcolor 0.8 0.8 1.0
54vbsdf s -absorpcoeff 6
55
56box c 0.3 0.3 0.2
57vdisplay c
58vsetlocation c 0.55 0.3 0.0
59vlocrotate c 0 0 0 0 0 1 -30
60vsetmaterial c plastic
61vbsdf c -kd 1.0 0.8 0.2 -ks 0.3 -n
62
63box g 0.15 0.15 0.3
64vdisplay g
65vsetlocation g 0.7 0.25 0.2
66vlocrotate g 0 0 0 0 0 1 10
67vsetmaterial g glass
68vbsdf g -absorpcolor 0.8 1.0 0.8
69vbsdf g -absorpcoeff 6
70
71psphere r 0.1
72vdisplay r
73vsetmaterial r plastic
74vbsdf r -kd 0.5 0.9 0.3 -ks 0.0 -kr 0.3 -n
75vbsdf r -fresnel Constant 1.0
76vsetlocation r 0.5 0.65 0.1
77
78vrenderparams -ray -gi -rayDepth 8