1 #########################################################################
2 # 26437: Visualization - Improve path tracing rendering engine
3 #########################################################################
7 # setup 3D viewer content
8 vinit name=View1 w=512 h=512
17 vdisplay b_1 b_2 b_3 b_5 b_6
22 vsetmaterial b_1 plastic
23 vsetmaterial b_2 plastic
24 vsetmaterial b_3 plastic
25 vsetmaterial b_5 plastic
26 vsetmaterial b_6 plastic
34 vbsdf b_2 -kd 0.3 0.5 1
35 vbsdf b_1 -kd 1 0.3 0.3
37 vsetlocation b_1 1 0 0
38 vsetlocation b_2 -1 0 0
39 vsetlocation b_5 0 0 1
40 vsetlocation b_6 0 0 -1
41 vsetlocation b_3 0 1 0
45 vlight add positional head 0 pos 0.5 0.5 0.85
46 vlight change 0 sm 0.06
47 vlight change 0 int 60.0
51 vsetlocation s 0.21 0.3 0.2
53 vbsdf s -absorpcolor 0.8 0.8 1.0
54 vbsdf s -absorpcoeff 6
58 vsetlocation c 0.55 0.3 0.0
59 vlocrotate c 0 0 0 0 0 1 -30
60 vsetmaterial c plastic
61 vbsdf c -kd 1.0 0.8 0.2 -ks 0.3 -n
65 vsetlocation g 0.7 0.25 0.2
66 vlocrotate g 0 0 0 0 0 1 10
68 vbsdf g -absorpcolor 0.8 1.0 0.8
69 vbsdf g -absorpcoeff 6
73 vsetmaterial r plastic
74 vbsdf r -kd 0.5 0.9 0.3 -ks 0.0 -kr 0.3 -n
75 vbsdf r -fresnel Constant 1.0
76 vsetlocation r 0.5 0.65 0.1
78 vrenderparams -ray -gi -rayDepth 8