changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-cluster-multi-wall.osg
bloba21e8a54cc4a3f04d55375c16f09bf8928b8d455
1 #OSG V1.0 
3 ComplexSceneManager
5   globals
6   [
7     DEF RootNode Node
8     { 
9       core Group {}
11       children
12       [ 
13         DEF CameraRoot Node
14         {
15           core Transform {}
17           children 
18           [ 
19           ]
20         },
22         DEF GlobalEffectRoot Node
23         {
24           core MultiCore
25           {
26             cores
27             [
28               Group {}
29               USE GlobalEffect1
30             ]
31           }
33           children
34           [
35             DEF SceneRoot Node 
36             {
37               core MultiCore
38               {
39                 cores
40                 [
41                   Group {}
42                   USE SceneEffect1
43                 ]
44               }
46               children
47               [
48                 DEF ZLight Node
49                 {
50                   core DirectionalLight
51                   {
52                     ambient    0.24 0.24 0.24 1.0
53                     diffuse    0.80 0.80 0.80 1.0
54                     direction  0.0 0.0 1.0
55                     on         TRUE
56                     beacon     USE CameraRoot
57                   }
58                   children
59                   [
60                     DEF ModelRoot Node
61                     {
62                       core Group {}
63                     }
64                   ]
65                 }
66               ]
67             }
68           ] 
69         }
70       ]
71     }
73     DEF PerspCamGL CSMPerspectiveCamera
74     {
75       near   0.1
76       far    20000.0
77       fov    60.0
79       beacon USE CameraRoot
80     }
82   ]
84   drawManager DEF DrawManager CSMDrawManager
85   {
86     drawer
87     [
88       CSMDrawer
89       {
90         windows
91         [
92            CSMClusterWindow
93            {
94              clientWindow DEF MainWindow CSMNativeWindow
95              {
96                size 300 300
97                position 200, 200
98                decorEnabled TRUE
99              }
101              servers    ["opensg-tile-0-0", "opensg-tile-1-0"]
102              serverIds  [1, 0]
104              serverRows 1
106              connectionType "Multicast"
107              clusterMode    "Multi"
109              size 600 300
111              viewports
112              [
113                CSMViewport
114                {
115                  root       USE RootNode
116                  camera     ProjectionCameraDecorator
117                  {
118                    surface 
119                    [
120                      -1195.0 -950.0 -2000.0,
121                          0.0 -950.0 -2000.0,
122                          0.0  950.0 -2000.0,
123                      -1195.0  950.0 -2000.0
124                    ]
126                    decoratee USE PerspCamGL
127                  }
129                  background USE BGnd
131                  foregrounds
132                  [
133                    USE LogoFGnd
134                  ]
136                  leftBottom 0.0 0.0
137                  rightTop   0.5 1.0
138                }
140                CSMViewport
141                {
142                  root       USE RootNode
143                  camera          ProjectionCameraDecorator
144                  {
145                    surface 
146                    [
147                          0.0 -950.0 -2000.0,
148                       1195.0 -950.0 -2000.0,
149                       1195.0  950.0 -2000.0,
150                          0.0  950.0 -2000.0
151                    ]
153                    decoratee USE PerspCamGL
154                  }
156                  background USE BGnd
158                  foregrounds
159                  [
160                    USE LogoFGnd
161                  ]
163                  leftBottom 0.5 0.0
164                  rightTop   1.0 1.0
165                }
166              ]
167            }
168         ]  
169       }
170     ]
171   }