Changeset 2155 for GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Timestamp:
- 02/22/07 17:54:55 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Files:
-
- 3 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");
Note: See TracChangeset
for help on using the changeset viewer.