0024887: Visualization - revise and extend Raytracing controls
[occt.git] / tests / v3d / raytrace / refraction
CommitLineData
dc9ef964 1puts "========"
2puts "Ray Tracing - check refraction"
3puts "========"
4
5vinit View1
bc8c79bb 6vclear
7vrenderparams -rasterization
dc9ef964 8vsetdispmode 1
9vsetgradientbg 180 200 255 180 180 180 2
10
11box wall1 1 8 8
12box wall2 1 8 8
13box wall3 16 8 1
14
15psphere S1 1.5
16psphere S2 1.5
17psphere S3 1.5
18
19box B1 -1.5 -1.5 -1.5 2.5 2 3
20box B2 -1.5 -1.5 -1.5 2.5 2 3
21box B3 -1.5 -1.5 -1.5 2.5 2 3
22
23vdisplay S1
24vdisplay S2
25vdisplay S3
26
27vdisplay B1
28vdisplay B2
29vdisplay B3
30
31vdisplay wall1
32vdisplay wall2
33vdisplay wall3
34
35vsetlocation S1 2 2 4
36vsetlocation S2 -2 2 4
37vsetlocation S3 -6 2 4
38
39vsetlocation B1 2 6 4
40vsetlocation B2 -2 6 4
41vsetlocation B3 -6 6 4
42
43vsetlocation wall1 -10 0 0
44vsetlocation wall2 5 0 0
45vsetlocation wall3 -10 0 -1
46
47vsetmaterial S1 water
48vsetmaterial S2 glass
49vsetmaterial S3 diamond
50
51vsetmaterial B1 water
52vsetmaterial B2 glass
53vsetmaterial B3 diamond
54
55vsetmaterial wall1 stone
56vsetmaterial wall2 stone
bc8c79bb 57vsetmaterial wall3 pewter
dc9ef964 58
59vsetcolor wall1 red
60vsetcolor wall2 green
61
62vsettransparency S1 0.8
63vsettransparency S2 0.8
64vsettransparency S3 0.8
65
66vsettransparency B1 0.8
67vsettransparency B2 0.8
68vsettransparency B3 0.8
69
70vright
71vturnview 0 -0.3 0
72vfit
73vlight change 0 pos 1 1 1
74vlight add directional
bc8c79bb 75vrenderparams -raytrace -raydepth 5 -shadows off -reflections -fsaa