changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-cluster-multi.osg
blob7402cd5884918d99e9c297307424ee473ad41190
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 #             dumpContainer TRUE
96              clientWindow DEF MainWindow CSMNativeWindow
97              {
98                size 300 300
99                position 200, 200
100                decorEnabled TRUE
101              }
103              servers    
104              [
105                "opensg-tile-0-0", 
106                "opensg-tile-1-0"
107              ]
108              serverIds  
109              [
110                1, 
111                0
112              ]
114              serverRows 1
116              connectionType "Multicast"
117              clusterMode    "Multi"
119              size 600 300
121              viewports
122              [
123                CSMViewport
124                {
125                  root       USE RootNode
126                  camera     USE PerspCamGL
128                  background USE BGnd
130                  leftBottom 0.0 0.0
131                  rightTop   1.0 1.0
133                  foregrounds
134                  [
135                    USE FG0
136                  ]
137                }
138              ]
139            }
140         ]  
141       }
142     ]
143   }