2 puts "OCC24819: TKOpenGl - extend the ray-tracing core by visualization of lines, text and point sprites"
5 # setup 3D viewer content
6 vinit name=View1 w=512 h=512
11 vsetgradientbg 180 200 255 180 180 180 2
15 vsetlocation b1 0 0 0.001
16 vsetmaterial b1 Silver
17 vsettransparency b1 0.5
20 vsetmaterial b2 Pewter
21 vsettransparency b2 0.8
24 text2brep t "text" "Arial" 8
28 voverlaytext "Overlay text!" 200 440 40
33 vmarkerstest mTest 7 -3 0 PointsOnSide=5 MarkerType=5
36 vdrawtext text0 3D_Text -pos 1 2 2 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 20 -aspect regular
38 vlight change 0 pos -1 1 1
45 # activate ray-tracing
46 vrenderparams -raytrace
48 # orthogonal projection
50 foreach aFSAAMode {on off} {
51 foreach aReflMode {on off} {
52 foreach aShadMode {on off} {
53 vrenderparams -shadows $aShadMode -reflections $aReflMode -fsaa $aFSAAMode
54 vdump $imagedir/${casename}_${aModeNum}.png
60 # perspective projection
63 foreach aFSAAMode {on off} {
64 foreach aReflMode {on off} {
65 foreach aShadMode {on off} {
66 vrenderparams -shadows $aShadMode -reflections $aReflMode -fsaa $aFSAAMode
67 vdump $imagedir/${casename}_${aModeNum}.png