fixed: auto_ptr -> unique_ptr
[opensg.git] / Examples / CSM / Common / system-passive.osg
blobe9baee1cae8fd1dff88db1eac2352042cda0655b
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               USE GlobalEffect2
31             ]
32           }
34           children
35           [
36             DEF SceneRoot Node 
37             {
38               core MultiCore
39               {
40                 cores
41                 [
42                   Group {}
43                   USE SceneEffect1
44                   USE SceneEffect2
45                   USE SceneEffect3
46                   USE SceneEffect4
47                   USE SceneEffect5
48                   USE SceneEffect6
49                   USE SceneEffect7
50                 ]
51               }
53               children
54               [
55                 DEF ZLight Node
56                 {
57                   core DirectionalLight
58                   {
59                     ambient    0.24 0.24 0.24 1.0
60                     diffuse    0.80 0.80 0.80 1.0
61                     direction  0.0 0.0 1.0
62                     on         TRUE
63                     beacon     USE CameraRoot
64                   }
65                   children
66                   [
67                     DEF ModelRoot Node
68                     {
69                       core Group {}
70                     }
71                   ]
72                 }
73               ]
74             }
75           ]
76         }
77       ] 
78     }
80     DEF PerspCamGL CSMPerspectiveCamera
81     {
82       near   0.1
83       far    20000.0
84       fov    60.0
86       beacon USE CameraRoot
87     }
89     DEF PassiveBgnd PassiveBackground
90     {
91       clearFrameBufferObject TRUE
92     }
93   ]
95   drawManager DEF DrawManager CSMDrawManager
96   {
97     drawer
98     [
99       CSMDrawer
100       {
101         windows
102         [
103            DEF MainWindow CSMPassiveWindow
104            {
105 #             viewportScale 0.7 0.7
107 #             partitionDrawMode 0x0002
109              renderOptions DEF WinRenderOpts RenderOptions
110              {
111 #               useGLFinish TRUE;
112              }
114              viewports
115              [
116                CSMViewport
117                {
118                  root       USE RootNode
119                  camera     USE PerspCamGL
120                  background USE PassiveBgnd
121                  passive    TRUE
123                  foregrounds
124                  [
125                  ]
126                }
127              ]
128            }
129         ]  
130       }
131     ]
132   }