0028762: Visualization, Ray tracing - Implement depth-of-field effect
[occt.git] / tests / v3d / raytrace / tone_mapping
1 puts "========"
2 puts "Ray Tracing - check tone mapping"
3 puts "========"
4
5 pload MODELING VISUALIZATION
6
7 vclear
8 vinit View1
9
10 vlight add positional head 0 pos 0.5 0.5 0.85
11 vlight change 0 sm 0.06
12 vlight change 0 int 25.0
13
14 vsetdispmode 1
15 vcamera -persp
16
17 box b 1 1 1 
18 explode b FACE 
19 vdisplay -noupdate b_1 b_2 b_3 b_5 b_6
20 vlocation -noupdate b_1 -setLocation  1  0  0
21 vlocation -noupdate b_2 -setLocation -1  0  0
22 vlocation -noupdate b_3 -setLocation  0  1  0
23 vlocation -noupdate b_5 -setLocation  0  0  1
24 vlocation -noupdate b_6 -setLocation  0  0 -1
25
26 vsetmaterial -noupdate b_1 plastic
27 vsetmaterial -noupdate b_2 plastic
28 vsetmaterial -noupdate b_3 plastic
29 vsetmaterial -noupdate b_5 plastic
30 vsetmaterial -noupdate b_6 plastic
31 vbsdf b_1 -kd 1 0.3 0.3 -ks 0
32 vbsdf b_2 -kd 0.3 0.5 1 -ks 0
33 vbsdf b_3 -kd 1 -ks 0
34 vbsdf b_5 -kd 1 -ks 0
35 vbsdf b_6 -kd 1 -ks 0
36
37 vfront
38 vfit
39
40 psphere s 0.2
41 vdisplay     -noupdate s
42 vlocation    -noupdate s -setLocation 0.21 0.3 0.2
43 vsetmaterial -noupdate s glass
44 vbsdf s -absorpColor 0.8 0.8 1.0
45 vbsdf s -absorpCoeff 6
46
47 box c 0.3 0.3 0.2
48 vdisplay     -noupdate c
49 vlocation    -noupdate c -setLocation 0.55 0.3 0.0
50 vlocation    -noupdate c -rotate 0 0 0 0 0 1 -30
51 vsetmaterial -noupdate c plastic
52 vbsdf c -kd 1.0 0.8 0.2 -ks 0.3 -n
53
54 box g 0.15 0.15 0.3
55 vdisplay     -noupdate g
56 vlocation    -noupdate g -setLocation 0.7 0.25 0.2
57 vlocation    -noupdate g -rotate 0 0 0 0 0 1 10
58 vsetmaterial -noupdate g glass
59 vbsdf g -absorpColor 0.8 1.0 0.8
60 vbsdf g -absorpCoeff 6
61
62 psphere r 0.1
63 vdisplay -noupdate r
64 vsetmaterial -noupdate r plastic
65 vbsdf r -kd 0.5 0.9 0.3 -ks 0.3 -baseRoughness 0.0 -n
66 vbsdf r -baseFresnel Constant 1.0
67 vlocation r -setLocation 0.5 0.65 0.1
68
69 vrenderparams -ray -gi -rayDepth 10 -iss
70
71 vrenderparams -tonemapping filmic
72 vrenderparams -exposure -1.0
73 vrenderparams -whitepoint 7.0