0696239f3840b9db99eb8a6d01f42c113f2abe81
[occt.git] / tests / v3d / raytrace / bug25201
1 puts "========"
2 puts "OCC25201: Visualization - Implementing soft shadows and ambient occlusion in OCCT ray-tracing core"
3 puts "========"
4
5 # custom shapes
6 set aShape1 [locate_data_file occ/Top.brep]
7 set aShape2 [locate_data_file occ/Bottom.brep]
8
9 # setup 3D viewer content
10 vinit name=View1 w=512 h=512
11 vglinfo
12
13 vvbo 0
14 vsetdispmode 1
15 vsetgradientbg 180 200 255 180 180 180 2
16 vtextureenv on 4
17 restore $aShape1 s1
18 restore $aShape2 s2
19 vdisplay s1 s2
20 vsetmaterial s1 Gold
21 vsetmaterial s2 Silver
22 vsetlocation s1 0.0 0.1 0.0
23 vlight change 0 pos -1 1 0.5
24 vturnview 3.0 -1.2 -0.1
25 vfit
26
27 # activate path tracing
28 vrenderparams -raytrace
29 vrenderparams -gi
30 vrenderparams -rayDepth 12
31
32 set aModeNum 0
33
34 vlight change 0 sm 0.1
35 vlight change 0 int 100
36 vbsdf s1 roughness 6400
37
38 vfps 200
39 vdump $imagedir/${casename}_${aModeNum}.png
40 incr aModeNum
41
42 vsetmaterial s1 glass
43 vbsdf s1 absorpcoeff 1.0
44
45 vfps 200
46 vdump $imagedir/${casename}_${aModeNum}.png
47 incr aModeNum
48
49 vsetmaterial s2 plaster
50
51 vfps 200
52 vdump $imagedir/${casename}_${aModeNum}.png
53 incr aModeNum