Changeset 2155


Ignore:
Timestamp:
02/22/07 17:54:55 (17 years ago)
Author:
gumbau
Message:
 
Location:
GTP/trunk/App/Demos/Geom
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Geom/Demo_LodStrips/main.cpp

    r1781 r2155  
    189189                        lodfactor=1.0f; 
    190190 
    191                 if (fabsf(lodfactorBefore-lodfactor)>0.03f ||  
     191/*              if (fabsf(lodfactorBefore-lodfactor)>0.03f ||  
    192192                        (lodfactorBefore>0.0f && lodfactor==0.0f) || 
    193193                        (lodfactorBefore<1.0f && lodfactor==1.0f)) 
     
    196196                        lodfactorBefore=lodfactor; 
    197197                } 
    198  
     198*/ 
    199199                if ( mInputDevice->isKeyDown(Ogre::KC_F3) && ( miButtonTimer <= 0 ) ) 
    200200                { 
     
    362362 
    363363                //Models 
    364         entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/ogrolod.mesh"); 
     364        entity = mSceneMgr->createEntity(model_name, "../../../OgreStuff/media/GT/ogro-66.mesh"); 
    365365                ogreMesh = entity->getMesh().getPointer(); 
    366366 
    367367                // load LOD info from the object 
    368368                meshloader=new Geometry::GeoMeshLoader; 
    369                 Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/ogrolod.mesh"); 
     369                Geometry::Mesh *themesh = meshloader->load("../../../OgreStuff/media/GT/ogro-66.mesh"); 
    370370 
    371371        node = mSceneMgr->getRootSceneNode()->createChildSceneNode(); 
     
    377377                lod_file.append(".lod"); 
    378378 
    379                 if (!meshloader->GetLodStripsData()) 
     379/*              if (!meshloader->GetLodStripsData()) 
    380380            OGRE_EXCEPT(1, "The loaded mesh does not contain any LOD info","LOD Demo"); 
    381381 
     
    383383                                                                                                        themesh, 
    384384                                                                                                        new CustomIndexData(ogreMesh)   ); 
    385                  
     385*/               
    386386                entity->setNormaliseNormals(true); 
    387387                entity->setMaterialName("LODStripsDemo/Ogro"); 
  • GTP/trunk/App/Demos/Geom/OgreStuff/media/materials/scripts/Example.material

    r1857 r2155  
    5353} 
    5454 
     55material 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} 
    5569 
    5670material Examples/DarkMaterial 
     
    150164                                tex_address_mode clamp 
    151165                                env_map cubic_reflection 
     166                        } 
     167                } 
     168        } 
     169} 
     170 
     171material 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 
    152185                        } 
    153186                } 
     
    708741        pass 
    709742        { 
     743           diffuse 1 1 1 
     744        } 
     745    } 
     746} 
     747 
     748material Demos/WhiteNoLight 
     749{ 
     750    technique 
     751    { 
     752        pass 
     753        { 
     754           lighting off 
    710755           diffuse 1 1 1 
    711756        } 
     
    10891134        } 
    10901135} 
     1136 
     1137material 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 
     1153material 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.