Changeset 8250
- Timestamp:
- 04/28/08 01:12:10
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph-TrainingMaterials/trunk/Presentations/State/Multi-Pass.p3d
r8196 r8250 11 11 <path>${DATA_DIR}/Models</path> 12 12 <path>${DATA_DIR}/Earth</path> 13 14 <title-settings character_size="0.04"></title-settings> 15 <text-settings character_size="0.022"></text-settings> 13 16 14 17 <template_slide name="front"> … … 77 80 78 81 Multi-Pass rendering: 79 82 80 83 Each pass applied diectly to existing frame buffer - no clear 81 84 82 85 Multiple passes over the same scene graph 83 86 84 87 Each pass can adjust State by decorating 85 88 86 89 87 90 Multi-Stage rendering: 88 91 89 92 Each pass does a clear of depth and or colour buffers 90 93 91 94 Multiple passes over the same scene graph 92 95 93 96 OR 94 97 95 98 Multiple stage that each have separate subgraphs 96 99 </page> … … 98 101 <page inherit="middle" title="Rendering back-end (draw traversal)"> 99 102 Rendering back end manages: 100 103 101 104 Clearing of frame buffer for each stage 102 105 … … 107 110 Classes: 108 111 109 osgUtil::StageGraph - a Composite class representing the inheritance of State 112 osgUtil::StageGraph 113 - a Composite class representing the inheritance of State 110 114 111 osgUtil::RenderLeaf - binds a single Drawable with its inherited State 112 113 osgUtil::RenderingBin - a Composite class that controls the draw order 114 115 osgUtil::RenderingStage - a subclass from RenderBin that adds clear and image readback. 115 osgUtil::RenderLeaf 116 - binds a single Drawable with its inherited State 117 118 osgUtil::RenderingBin 119 - a Composite class that controls the draw order 120 121 osgUtil::RenderingStage 122 - a subclass from RenderBin that adds clear and image readback. 116 123 </page> 117 124 … … 120 127 121 128 Classes: 122 129 123 130 osg::StateSet - can be placed on any Node or Drawable in scene graph, 124 131 controls the inheritance of State and RenderBin hierarchy … … 138 145 <page inherit="middle" title="Camera"> 139 146 Camera controls many differnt elements: 140 147 141 148 View and Projections matrices - can be RELATIVE_RF or ABSOLUTE_RF 142 149 143 150 Clearing of color, depth and stencil buffers 144 151 145 152 Set up of render to texture/image 146 153 … … 150 157 <page inherit="middle" title="Camera placement"> 151 158 Cameras can be used in multiple ways: 152 159 153 160 In the scene graphs - reflections, shadows 154 161 … … 156 163 157 164 In the Viewer - HUD, Render to Texture 158 165 159 166 As a separete View - CompositeViewer 160 167 </page>
