Changeset 8196
- Timestamp:
- 04/23/08 18:23:11
- Files:
-
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/C++AndMemoryManagement/02_memory_Exercise.vym (deleted)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/C++AndMemoryManagement/C++AndMemoryManagement.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/C++AndMemoryManagement/CppAndOpenSceneGraph.p3d (modified) (4 diffs)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Callbacks/Callbacks.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Databases/Databases.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Geometry/04_geometry_Exercise.vym (deleted)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Geometry/Geometry.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/01_Introduction_Exercise.vym (deleted)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/BuildingOpenSceneGraph.p3d (modified) (2 diffs)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/Introduction.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/OpenSceneGraphTour.p3d (modified) (1 diff)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/run_theimpactofopensource.sh (deleted)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/theimpactofopensource.p3d (modified) (1 diff)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Maths/03_maths_Exercise.vym (deleted)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Maths/Maths.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Maths/MathsAndOpenSceneGraph.p3d (modified) (7 diffs)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/NodeKits/NodeKits.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/NodeKits/osgFX.p3d (modified) (1 diff)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Nodes/Nodes.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Optimizing/Optimizing.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/PagedDatabases/PagedDatabases.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/PagedDatabases/databasepaging.p3d (modified) (2 diffs)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/State/Multi-Pass.p3d (modified) (1 diff)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/State/State.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Traversers/Traversers.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/Viewers/Viewers.vym (modified) (previous)
- OpenSceneGraph-TrainingMaterials/trunk/Presentations/index.vym (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OpenSceneGraph-TrainingMaterials/trunk/Presentations/C++AndMemoryManagement/CppAndOpenSceneGraph.p3d
r8159 r8196 8 8 --> 9 9 10 <presentation >10 <presentation character_size="0.02"> 11 11 <name>Siggraph Menu</name> 12 12 <textcolor>YELLOW</textcolor> 13 13 14 <path>/home/robert/Presentations/Siggraph</path> 14 15 16 <path>${DATA_DIR}</path> 17 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 18 <path>${DATA_DIR}/Images</path> 19 <path>${DATA_DIR}/Models</path> 20 <path>${DATA_DIR}/Earth</path> 21 22 <title-settings character_size="0.04"></title-settings> 23 <text-settings character_size="0.03"></text-settings> 15 24 16 25 <template_slide name="front"> … … 19 28 <base> 20 29 <click_to_event>Home</click_to_event> 21 <bullet character_size="0.02 5" position="0.5 0.02 0.05">Home</bullet>30 <bullet character_size="0.02" position="0.5 0.02 0.05">Home</bullet> 22 31 <click_to_event>Next</click_to_event> 23 <bullet character_size="0.02 5" position="0.9 0.02 0.05">Next</bullet>32 <bullet character_size="0.02" position="0.9 0.02 0.05">Next</bullet> 24 33 </base> 25 34 </template_slide> … … 30 39 <base> 31 40 <click_to_event>Previous</click_to_event> 32 <bullet character_size="0.02 5" position="0.1 0.02 0.05">Previous</bullet>41 <bullet character_size="0.02" position="0.1 0.02 0.05">Previous</bullet> 33 42 <click_to_event>Home</click_to_event> 34 <bullet character_size="0.02 5" position="0.5 0.02 0.05">Home</bullet>43 <bullet character_size="0.02" position="0.5 0.02 0.05">Home</bullet> 35 44 <click_to_event>Next</click_to_event> 36 <bullet character_size="0.02 5" position="0.9 0.02 0.05">Next</bullet>45 <bullet character_size="0.02" position="0.9 0.02 0.05">Next</bullet> 37 46 </base> 38 47 </template_slide> … … 43 52 <base> 44 53 <click_to_event>Previous</click_to_event> 45 <bullet character_size="0.02 5" position="0.1 0.02 0.05">Previous</bullet>54 <bullet character_size="0.02" position="0.1 0.02 0.05">Previous</bullet> 46 55 <click_to_event>Home</click_to_event> 47 <bullet character_size="0.02 5" position="0.5 0.02 0.05">Home</bullet>56 <bullet character_size="0.02" position="0.5 0.02 0.05">Home</bullet> 48 57 </base> 49 58 </template_slide> OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/BuildingOpenSceneGraph.p3d
r8155 r8196 12 12 <textcolor>YELLOW</textcolor> 13 13 14 <path>/home/robert/Presentations/Siggraph</path> 14 <path>${DATA_DIR}</path> 15 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 16 <path>${DATA_DIR}/Images</path> 17 <path>${DATA_DIR}/Models</path> 18 <path>${DATA_DIR}/Earth</path> 19 20 <title-settings character_size="0.04"></title-settings> 21 <text-settings character_size="0.03"></text-settings> 15 22 16 23 <template_slide name="front"> … … 58 65 Distribution</paragraph> 59 66 <image fade="0 0.99 1 0.99" position="0.5 0.90 0" scale="0.55">Images/logops.rgb</image> 60 <image position="0.6 0.10 0.0" scale="0.55">Images/Cetma.jpg</image>61 </layer>62 </slide>63 64 <slide inherit="middle">65 <bgcolor>WHITE</bgcolor>66 <background></background>67 <title> </title>68 <layer>69 <image position="0.5 0.5 0.01" scale="0.95">BuildingOpenSceneGraph.png</image>70 67 </layer> 71 68 </slide> OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/OpenSceneGraphTour.p3d
r8155 r8196 10 10 <presentation> 11 11 12 <path>../Images</path> 13 <path>../Data</path> 14 <path>..</path> 15 <path>/home/robert/Data/WholeEarth</path> 12 <path>${DATA_DIR}</path> 13 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 14 <path>${DATA_DIR}/Images</path> 15 <path>${DATA_DIR}/Models</path> 16 <path>${DATA_DIR}/Earth</path> 16 17 17 18 <name>OpenSceneGraph History Tour</name> OpenSceneGraph-TrainingMaterials/trunk/Presentations/Introduction/theimpactofopensource.p3d
r8194 r8196 13 13 <env>OSG_NEAR_FAR_RATIO=0.00001</env> 14 14 15 <path>${DATA_DIR}</path> 16 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 17 <path>${DATA_DIR}/Images</path> 18 <path>${DATA_DIR}/Models</path> 19 <path>${DATA_DIR}/Earth</path> 20 15 21 <name>Role of Scene Graphs in VR</name> 16 22 <bgcolor>BLACK</bgcolor> 17 23 <textcolor>YELLOW</textcolor> 18 24 19 <path>/home/robert/Presentations/Siggraph</path>20 25 21 26 <holding_slide> OpenSceneGraph-TrainingMaterials/trunk/Presentations/Maths/MathsAndOpenSceneGraph.p3d
r8162 r8196 9 9 10 10 <presentation> 11 <name>Siggraph Menu</name> 11 12 <path>${DATA_DIR}</path> 13 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 14 <path>${DATA_DIR}/Images</path> 15 <path>${DATA_DIR}/Models</path> 16 <path>${DATA_DIR}/Earth</path> 17 18 <title-settings character_size="0.05"></title-settings> 19 <text-settings character_size="0.03.5"></text-settings> 20 12 21 <textcolor>YELLOW</textcolor> 13 14 <path>/home/robert/Presentations/Siggraph</path>15 22 16 23 <template_slide name="front"> … … 66 73 67 74 Float vector classes: 68 75 69 76 osg::Vec2f, osg::Vec3f, osg::Vec4f 70 77 osg::Vec*f::value_type == float 71 72 osg::Vec2, osg::Vec3, osg::Vec4 - typedef'd to Vec2f, Vec3f, Vec4f 78 79 osg::Vec2, osg::Vec3, osg::Vec4 - typedef'd to 80 Vec2f, Vec3f, Vec4f 73 81 74 82 Double vectors classes: 75 83 76 84 osg::Vec2d, osg::Vec3d, osg::Vec4d 77 85 osg::Vec*d::value_type == double … … 81 89 <page inherit="middle" title="Vec accessors"> 82 90 83 91 84 92 Vec4 v; 85 93 … … 88 96 v[2] == v.z() == v.b() 89 97 v[3] == v.w() == v.a() 90 91 // to get raw data92 float* ptr = v.ptr()98 99 // to get raw data 100 float* ptr = v.ptr() 93 101 94 102 </page> … … 101 109 v3 = v1 + v2; 102 110 v3 += v1; 103 111 104 112 // component wise subtraction 105 113 v3 = v1 - v2; 106 114 v3 -= v1; 107 115 108 116 // scalar multiplication 109 117 v3 = v3 * 10.0f; 110 118 v3 *= 10.0f; 111 119 112 120 // scalar division 113 v3 = v3 / 10.0f; 121 v3 = v3 / 10.0f; 114 122 v3 /= 10.0f; 115 123 </page> … … 118 126 119 127 osg::Vec4 v1, v2, v3; 120 128 121 129 // dot product 122 130 v3 = v1 * v2; 123 131 124 132 // cross product 125 133 v3 = v1 ^ v2; 126 134 127 135 // length 128 136 float len = v3.length(); … … 149 157 150 158 float 4x4 matrix: 151 159 152 160 osg::Matrixf 153 161 osg::Matrixf::value_type == float 154 162 155 163 double 4x4 matrix: 156 164 157 165 osg::Matrixd 158 166 osg::matrixd::value_type == double OpenSceneGraph-TrainingMaterials/trunk/Presentations/NodeKits/osgFX.p3d
r8175 r8196 15 15 <duration>1.0</duration> 16 16 17 <path>/home/robert/Presentations/Siggraph</path> 17 <path>${DATA_DIR}</path> 18 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 19 <path>${DATA_DIR}/Images</path> 20 <path>${DATA_DIR}/Models</path> 21 <path>${DATA_DIR}/Earth</path> 18 22 19 23 <slide> OpenSceneGraph-TrainingMaterials/trunk/Presentations/PagedDatabases/databasepaging.p3d
r8194 r8196 2 2 <presentation> 3 3 4 <env>OSG_COMPUTE_NEAR_FAR_MODE=COMPUTE_NEAR_FAR_USING_PRIMITIVES</env> 5 <env>OSG_NEAR_FAR_RATIO=0.00001</env> 6 4 <env>OSG_COMPUTE_NEAR_FAR_MODE=COMPUTE_NEAR_FAR_USING_PRIMITIVES</env> 5 <env>OSG_NEAR_FAR_RATIO=0.00001</env> 6 7 <path>${DATA_DIR}</path> 8 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 9 <path>${DATA_DIR}/Images</path> 10 <path>${DATA_DIR}/Models</path> 11 <path>${DATA_DIR}/Earth</path> 7 12 8 13 <name>Database Paging</name> … … 10 15 <textcolor>1.0 1.0 0.20 1.0</textcolor> 11 16 <duration>1.0</duration> 12 13 <path>/home/robert/Presentations/Siggraph</path>14 <path>/home/robert/Presentations/Opticore/Nellis</path>15 17 16 18 <holding_slide> OpenSceneGraph-TrainingMaterials/trunk/Presentations/State/Multi-Pass.p3d
r8167 r8196 6 6 <textcolor>YELLOW</textcolor> 7 7 8 <path>/home/robert/Presentations/Siggraph</path> 8 <path>${DATA_DIR}</path> 9 <path>${DATA_DIR}/OpenSceneGraph-Data</path> 10 <path>${DATA_DIR}/Images</path> 11 <path>${DATA_DIR}/Models</path> 12 <path>${DATA_DIR}/Earth</path> 9 13 10 14 <template_slide name="front">
