Changeset 1104 for GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Timestamp:
- 07/07/06 17:07:06 (19 years ago)
- Location:
- GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Geom/Demo_LodStrips/main.cpp
r1092 r1104 446 446 447 447 //Models 448 entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/ dwarflod.mesh");448 entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/bunnylod.mesh"); 449 449 450 450 ogreMesh = entity->getMesh().getPointer(); … … 452 452 // load LOD info from the object 453 453 meshloader=new Geometry::GeoMeshLoader; 454 Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/ dwarflod.mesh");454 Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/bunnylod.mesh"); 455 455 456 456 node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); … … 481 481 entity->setMaterialName("test_mat"); 482 482 483 484 for (int i=1; i<4; i++) // 20 485 for (int j=1; j<4; j++) // 20 486 { 487 char newObjName[16]=""; 488 sprintf(newObjName,"arbol_%d_%d",i,j); 489 Ogre::SceneNode * auxnode = mSceneMgr->getRootSceneNode()->createChildSceneNode(); 490 auxnode->attachObject( entity->clone(newObjName) ); 491 auxnode->scale(0.8f,0.8f,0.8f); 492 float randomsepx = (float)((rand()%18)-9); 493 float randomsepy = (float)((rand()%12)-6); 494 auxnode->translate(i*100.0f+randomsepx,0.0f,-j*100.0f-randomsepx); 495 } 496 497 483 498 // show overlay 484 499 Overlay* pOver = OverlayManager::getSingleton().getByName("Demo_LodStrips/Overlay");
Note: See TracChangeset
for help on using the changeset viewer.