6 ##########################################################################################
7 # Visualization, Ray Tracing - adopt progressive rendering Path Tracing for rendering stereoscopic pair
8 ##########################################################################################
11 set aShape1 [locate_data_file occ/Top.brep]
12 set aShape2 [locate_data_file occ/Bottom.brep]
14 # setup 3D viewer content
15 vinit name=View1 w=512 h=512
20 vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
24 vsetmaterial s1 Silver
25 vsetmaterial s2 Pewter
26 vsetlocation s1 0.0 0.1 0.0
27 vlight -change 0 -dir 0.577 -0.577 -0.577
29 # activate ray-tracing
30 vrenderparams -raytrace
32 vrenderparams -reflections -gi
36 vstereo -mode anaglyph