Changeset 2155
- Timestamp:
- 02/22/07 17:54:55 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Geom
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Geom/Demo_LodStrips/main.cpp
r1781 r2155 189 189 lodfactor=1.0f; 190 190 191 if (fabsf(lodfactorBefore-lodfactor)>0.03f ||191 /* if (fabsf(lodfactorBefore-lodfactor)>0.03f || 192 192 (lodfactorBefore>0.0f && lodfactor==0.0f) || 193 193 (lodfactorBefore<1.0f && lodfactor==1.0f)) … … 196 196 lodfactorBefore=lodfactor; 197 197 } 198 198 */ 199 199 if ( mInputDevice->isKeyDown(Ogre::KC_F3) && ( miButtonTimer <= 0 ) ) 200 200 { … … 362 362 363 363 //Models 364 entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/ogro lod.mesh");364 entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/ogro-66.mesh"); 365 365 ogreMesh = entity->getMesh().getPointer(); 366 366 367 367 // load LOD info from the object 368 368 meshloader=new Geometry::GeoMeshLoader; 369 Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/ogro lod.mesh");369 Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/ogro-66.mesh"); 370 370 371 371 node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); … … 377 377 lod_file.append(".lod"); 378 378 379 if (!meshloader->GetLodStripsData())379 /* if (!meshloader->GetLodStripsData()) 380 380 OGRE_EXCEPT(1, "The loaded mesh does not contain any LOD info","LOD Demo"); 381 381 … … 383 383 themesh, 384 384 new CustomIndexData(ogreMesh) ); 385 385 */ 386 386 entity->setNormaliseNormals(true); 387 387 entity->setMaterialName("LODStripsDemo/Ogro"); -
GTP/trunk/App/Demos/Geom/OgreStuff/media/materials/scripts/Example.material
r1857 r2155 53 53 } 54 54 55 material toyota 56 { 57 technique 58 { 59 pass 60 { 61 ambient 1.0 1.0 1.0 62 texture_unit 63 { 64 texture gt4ggg.jpg 65 } 66 } 67 } 68 } 55 69 56 70 material Examples/DarkMaterial … … 150 164 tex_address_mode clamp 151 165 env_map cubic_reflection 166 } 167 } 168 } 169 } 170 171 material Examples/WhiteSkyBox 172 { 173 technique 174 { 175 pass 176 { 177 lighting off 178 depth_write off 179 fog_override true 180 181 texture_unit 182 { 183 cubic_texture white_sky.jpg separateUV 184 tex_address_mode clamp 152 185 } 153 186 } … … 708 741 pass 709 742 { 743 diffuse 1 1 1 744 } 745 } 746 } 747 748 material Demos/WhiteNoLight 749 { 750 technique 751 { 752 pass 753 { 754 lighting off 710 755 diffuse 1 1 1 711 756 } … … 1089 1134 } 1090 1135 } 1136 1137 material Material_#11/gt4_tex 1138 { 1139 technique 1140 { 1141 pass 1142 { 1143 1144 texture_unit 1145 { 1146 texture gt4works.jpg 1147 } 1148 1149 } 1150 } 1151 } 1152 1153 material Material_#11/gt4_glass 1154 { 1155 technique 1156 { 1157 pass 1158 { 1159 diffuse 0 0 0 1160 } 1161 } 1162 }
Note: See TracChangeset
for help on using the changeset viewer.