Changeset 2057


Ignore:
Timestamp:
01/24/07 21:46:05 (17 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/App/Demos/Illum/Ogre/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/src/DiffuseTest/include/DiffuseTest.h

    r2025 r2057  
    360360                ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 
    361361                ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 
     362                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 
     363                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Diffuse"); 
    362364        } 
    363365 
     
    652654 
    653655        Entity* object = mSceneMgr->createEntity("object", "buddha.mesh"); 
    654                 object->setMaterialName("GameTools/Diffuse/use"); 
     656                object->setMaterialName("GTP/Diffuse/Disc2Point"); 
    655657                //object->setMaterialName("GameTools/DiffuseP2P"); 
    656658                objectNode = rootNode->createChildSceneNode(); 
     
    658660                objectNode->scale(0.4,0.4,0.4); 
    659661                objectNode->rotate(Vector3(0,1,0),Radian(Math::PI)); 
    660                 objectNode->setPosition(0,0,0); 
     662                objectNode->setPosition(0,1,0); 
    661663                objectNode->_updateBounds(); 
    662664 
  • GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsParticleDemo/include/GameToolsParticleDemo.h

    r2025 r2057  
    111111                ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 
    112112                ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 
     113                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Particles"); 
    113114        } 
    114115 
     
    146147                 
    147148                 
    148                 ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("tuzecske", "GameTools/DemoParticle1"); 
     149                ParticleSystem* pSys1 = mSceneMgr->createParticleSystem("tuzecske", "GTP/SBB"); 
    149150                pSys1->setKeepParticlesInLocalSpace(false); 
    150151                SceneNode *pSysNode = rootNode->createChildSceneNode(); 
     
    184185                mainLightNode->attachObject(mainLight);  
    185186                 
    186                  
     187                OgreIlluminationManager::getSingleton().initTechniques(); 
     188                /* 
    187189                {//SBB 
    188190                                OgreSharedRuns* sharedruns = new OgreSharedRuns(); 
     
    204206                        group->addRenderTechnique(techn); 
    205207                        renderer->getSpriteSet()->setRenderTechniqueGroup(group); 
    206                 } 
     208                }*/ 
    207209                 
    208210   } 
  • GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/include/GameToolsRaytraceDemo.h

    r2025 r2057  
    3030 
    3131float causize = 10; 
    32 float cauintens = 40; 
     32float cauintens = 1; 
    3333 
    3434// Listener class for frame updates 
     
    6666    } 
    6767        bool processUnbufferedKeyInput(const FrameEvent& evt) 
    68     {/* 
    69                 MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cauathene_SE_0_clone"); 
     68    { 
     69                MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone"); 
    7070                GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 
    7171                GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
     
    7575                        cauintens -= 0.5; 
    7676                        cauintens = std::max(cauintens, 1.0f); 
    77                         float intensity = pow( cauintens / 100.0f, 2 ); 
    78                         Fparams->setNamedConstant("CauSpriteIntens", intensity);                         
     77                        float intensity = cauintens; 
     78                        float causticColor[] = {1.0, 1.0, 1.0, intensity}; 
     79                        Fparams->setNamedConstant("CausticColor", causticColor, 4);                              
    7980                } 
    8081                if (mInputDevice->isKeyDown(KC_ADD)) 
     
    8384                        cauintens = std::min(cauintens, 100.0f); 
    8485                        float intensity = pow( cauintens / 100.0f, 2 ); 
    85                         Fparams->setNamedConstant("CauSpriteIntens", intensity);                                 
     86                        float causticColor[] = {1.0, 1.0, 1.0, intensity}; 
     87                        Fparams->setNamedConstant("CausticColor", causticColor, 4);                                      
    8688                } 
    8789                if (mInputDevice->isKeyDown(KC_MULTIPLY)) 
     
    9597                        Vparams->setNamedConstant("CauSpriteSize", causize);                     
    9698                } 
    97         */ 
    98                 if (mInputDevice->isKeyDown(KC_SPACE)) 
    99         { 
    100                         mTimeUntilNextToggle = 2; 
    101                         static bool first = true; 
    102                         first = !first; 
    103                         goldSphereNode->setVisible(first,true); 
    104                         goldSphereNode->setVisible(!first,false); 
    105                         aluSphereNode->setVisible(first,true); 
    106                         aluSphereNode->setVisible(!first,false); 
    107                         silverSphereNode->setVisible(first,true); 
    108                         silverSphereNode->setVisible(!first,false); 
    109                         copperSphereNode->setVisible(first,true); 
    110                         copperSphereNode->setVisible(!first,false); 
    111                         centerSphereNode->setVisible(first,true); 
    112                         centerSphereNode->setVisible(!first,false); 
    113                          
    114                  
    115                 } 
    116  
     99         
    117100                return ExampleFrameListener::processUnbufferedKeyInput(evt); 
    118101        } 
     
    120103    { 
    121104                static bool first = true; 
    122         /*      if(first) 
     105                if(first) 
    123106                { 
    124                         MaterialPtr mat = MaterialManager::getSingleton().getByName("GameTools/Cauathene_SE_0_clone"); 
     107                        MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Caustic/CauCube_PointSpritecenterHead_SE_0_clone"); 
    125108                        GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 
    126109                        GpuProgramParameters* Fparams = mat->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
    127                         float intensity = pow( cauintens / 100.0f, 2 ); 
    128                         Fparams->setNamedConstant("CauSpriteIntens", intensity);                         
     110                        float intensity = cauintens; 
     111                        float causticColor[] = {1.0, 1.0, 1.0, intensity}; 
     112                        Fparams->setNamedConstant("CausticColor", causticColor, 4);                      
    129113                        Vparams->setNamedConstant("CauSpriteSize", causize); 
    130114                        first = false; 
    131                 }*/ 
     115                } 
    132116 
    133117                lightNode->setPosition( 100.0 * Vector3(cos(-(float)framecount/500.0),2.0,sin(-(float)framecount/500.0))); 
     
    187171                ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 
    188172                ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 
     173                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 
    189174                ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 
     175                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_EnvMap"); 
     176                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Caustic"); 
    190177        } 
    191178 
     
    212199                OgreIlluminationManager::getSingleton().setMainViewport(mWindow->getViewport(0)); 
    213200                 
    214                 OgreIlluminationManager::getSingleton().setMaxJoinRadius(420);           
     201                OgreIlluminationManager::getSingleton().setMaxJoinRadius(1000);          
    215202 
    216203                Root::getSingleton()._setCurrentSceneManager(mSceneMgr); 
     
    237224                Entity* aluHead = mSceneMgr->createEntity("aluHead", "head.mesh"); 
    238225 
    239                 Entity* centerSphere = mSceneMgr->createEntity("centerSphere", "sphere.mesh"); 
    240                 Entity* goldSphere = mSceneMgr->createEntity("goldSphere", "sphere.mesh"); 
    241                 Entity* silverSphere = mSceneMgr->createEntity("silverSphere", "sphere.mesh"); 
    242                 Entity* copperSphere = mSceneMgr->createEntity("copperSphere", "sphere.mesh"); 
    243                 Entity* aluSphere = mSceneMgr->createEntity("aluSphere", "sphere.mesh"); 
    244  
    245  
    246  
    247226                kupola->setCastShadows(false); 
    248                 //lod 
    249                 //MeshPtr amesh = athene->getMesh(); 
    250                 //Mesh::LodDistanceList distances; 
    251                 //distances.push_back(1); 
    252                 //distances.push_back(2); 
    253                 //distances.push_back(3); 
    254                 //distances.push_back(4); 
    255                 ////distances.push_back(5); 
    256                 //amesh->generateLodLevels(distances,ProgressiveMesh::VertexReductionQuota::VRQ_PROPORTIONAL,0.6); 
    257                 //athene->setMeshLodBias(50000.0,0); 
    258                 //tangents 
    259                 //amesh->buildTangentVectors(0,1); 
     227                 
    260228                MeshPtr kmesh = kupola->getMesh(); 
    261229                kmesh->buildTangentVectors(0,1); 
     
    270238 
    271239                centerSphereNode = rootNode->createChildSceneNode("centerSphere"); 
    272                 SceneNode* centerHeadNode = centerSphereNode->createChildSceneNode("centerHead"); 
    273240                centerSphereNode->setPosition(0, 100,0); 
    274                 centerHeadNode->attachObject(centerHead); 
    275                 centerSphereNode->attachObject(centerSphere); 
    276                 centerSphereNode->setScale(0.4,0.4,0.4); 
    277                 centerHeadNode->setScale(8,8,8);                 
    278                 centerHeadNode->setVisible(false, false); 
    279                  
    280  
     241                centerSphereNode->attachObject(centerHead); 
     242                centerSphereNode->setScale(3.2, 3.2, 3.2); 
     243                 
    281244                goldSphereNode = rootNode->createChildSceneNode( "goldSphere" ); 
    282                 SceneNode* goldHeadNode = goldSphereNode->createChildSceneNode( "goldHead" ); 
    283                 goldSphereNode->scale(0.3,0.3,0.3); 
    284                 goldHeadNode->setScale(8,8,8); 
    285                 goldHeadNode->setVisible(false, false); 
    286  
     245                goldSphereNode->scale(2.4, 2.4, 2.4); 
     246                goldSphereNode->attachObject(goldHead); 
     247                 
    287248                silverSphereNode = rootNode->createChildSceneNode( "silverSphere" ); 
    288                 SceneNode* silverHeadNode = silverSphereNode->createChildSceneNode( "silverHead" ); 
    289                 silverSphereNode->scale(0.3,0.3,0.3); 
    290                 silverHeadNode->setScale(8,8,8); 
    291                 silverHeadNode->setVisible(false, false); 
    292  
     249                silverSphereNode->scale(2.4, 2.4, 2.4); 
     250                silverSphereNode->attachObject(silverHead); 
     251                 
    293252                aluSphereNode = rootNode->createChildSceneNode( "aluSphere" ); 
    294                 SceneNode* aluHeadNode = aluSphereNode->createChildSceneNode( "aluHead" ); 
    295                 aluSphereNode->scale(0.3,0.3,0.3); 
    296                 aluHeadNode->setScale(8,8,8); 
    297                 aluHeadNode->setVisible(false, false); 
    298  
     253                aluSphereNode->scale(2.4, 2.4, 2.4); 
     254                aluSphereNode->attachObject(aluHead); 
     255                 
    299256                copperSphereNode = rootNode->createChildSceneNode( "copperSphere" ); 
    300                 SceneNode* copperHeadNode = copperSphereNode->createChildSceneNode( "copperHead" ); 
    301                 copperSphereNode->scale(0.3,0.3,0.3); 
    302                 copperHeadNode->setScale(8,8,8); 
    303                 copperHeadNode->setVisible(false, false); 
    304                  
    305  
    306                 goldSphereNode->attachObject(goldSphere); 
    307                 silverSphereNode->attachObject(silverSphere); 
    308                 aluSphereNode->attachObject(aluSphere); 
    309                 copperSphereNode->attachObject(copperSphere); 
    310                  
    311                 goldHeadNode->attachObject(goldHead); 
    312                 silverHeadNode->attachObject(silverHead); 
    313                 aluHeadNode->attachObject(aluHead); 
    314                 copperHeadNode->attachObject(copperHead); 
    315          
    316  
     257                copperSphereNode->scale(2.4, 2.4, 2.4); 
     258                copperSphereNode->attachObject(copperHead); 
     259                 
    317260                goldSphereNode->_updateBounds(); 
    318261                silverSphereNode->_updateBounds(); 
     
    320263                copperSphereNode->_updateBounds(); 
    321264 
    322                 goldHeadNode->_updateBounds(); 
    323                 silverHeadNode->_updateBounds(); 
    324                 aluHeadNode->_updateBounds(); 
    325                 copperHeadNode->_updateBounds(); 
    326  
     265                 
    327266                kupolaNode->_updateBounds(); 
    328267                centerSphereNode->_updateBounds(); 
    329                 centerHeadNode->_updateBounds(); 
    330  
     268                 
    331269                //Init lights 
    332270                mainLight = mSceneMgr->createLight("MainLight"); 
     
    345283                mainLightNode->attachObject(bbs); 
    346284                 
    347                 silverSphere->setMaterialName("EnvMetals/Silver"); 
    348                 copperSphere->setMaterialName("EnvMetals/Copper"); 
    349                 goldSphere->setMaterialName("EnvMetals/Gold"); 
    350                 aluSphere->setMaterialName("EnvMetals/Alu"); 
    351  
    352                 aluHead->setMaterialName("EnvMetals/Alu"); 
    353                 copperHead->setMaterialName("EnvMetals/Copper"); 
    354                 goldHead->setMaterialName("EnvMetals/Gold"); 
    355                 silverHead->setMaterialName("EnvMetals/Silver"); 
    356                          
    357  
    358                 centerSphere->setMaterialName("GameTools/CausticGlass"); 
    359                 centerHead->setMaterialName("GameTools/CausticGlass"); 
    360                  
    361                 OgreIlluminationManager::getSingleton().initTechniques(); 
    362                  
    363                  
     285                 
     286                aluHead->setMaterialName("GTP/EnvMap/Alu"); 
     287                copperHead->setMaterialName("GTP/EnvMap/Copper"); 
     288                goldHead->setMaterialName("GTP/EnvMap/Gold"); 
     289                silverHead->setMaterialName("GTP/EnvMap/Silver"); 
     290                centerHead->setMaterialName("GTP/Caustic/Glass"); 
     291 
     292                /*aluHead->setVisible(false); 
     293                copperHead->setVisible(false); 
     294                goldHead->setVisible(false); 
     295                silverHead->setVisible(false); 
     296                centerHead->setVisible(false);*/ 
     297 
     298                OgreIlluminationManager::getSingleton().initTechniques();        
    364299   } 
    365300 
  • GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/include/ReflectionTest.h

    r1879 r2057  
    3030#include "FrameCapture.h" 
    3131 
    32 int scene = 1; 
     32float refIndex = 0.77; 
     33int scene = 3; 
    3334FrameCapture* capture; 
    3435 
    3536bool multiplebounce = true; 
     37 
     38int currentMaterial = 6; 
     39int currentObject = 0; 
     40String objectNames[] = {String("sphere.mesh"), 
     41                        String("teapot.mesh")}; 
     42 
     43String materialNames[] = {String("GTP/MultiBounce/Reflector"), 
     44                                                        String("GTP/MultiBounce/Refractor"), 
     45                                                        String("GTP/MultiBounce/CausticRefractor"), 
     46                                                        String("GTP/MultiBounce/Reflector_MinMax"), 
     47                                                        String("GTP/MultiBounce/Refractor_MinMax"), 
     48                                                        String("GTP/MultiBounce/CausticRefractor_MinMax"), 
     49                                                        String("GTP/MultiBounce/Refractor2L")}; 
     50                         
     51String resourceGroupName[] = {  String("GTP_MultipleReflection"), 
     52                                                                String("GTP_MultipleRefraction"), 
     53                                                                String("GTP_MultipleRefraction"), 
     54                                                                String("GTP_MultipleReflection_MinMax"), 
     55                                                                String("GTP_MultipleRefraction_MinMax"), 
     56                                                                String("GTP_MultipleRefraction_MinMax"), 
     57                                                                String("GTP_MultipleRefraction2L")}; 
    3658 
    3759// Listener class for frame updates 
     
    5274                this->mMoveSpeed = 1.0; 
    5375                if(scene == 3) 
    54                 this->mMoveSpeed = 5.0; 
     76                this->mMoveSpeed = 10.0; 
    5577                 mStatsOn = false; 
    5678                 showDebugOverlay(mStatsOn); 
     
    79101                float elapsed = thisTime - lastTime; 
    80102                float move = elapsed * 0.25; 
     103                if(scene == 3) 
     104                        move *= 10; 
    81105                float rotate = 80.0 * move; 
     106 
     107                if (mInputDevice->isKeyDown(KC_J)) 
     108        { 
     109                        MaterialPtr mat1 = MaterialManager::getSingleton().getByName("GTP/MultiBounce/Refractor2L"); 
     110                        GpuProgramParameters* Fparams1 = mat1->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
     111                        MaterialPtr mat2 = MaterialManager::getSingleton().getByName("GTP/MultiBounce/PhotonMap2L"); 
     112                        GpuProgramParameters* Fparams2 = mat2->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
     113                         
     114                        refIndex -= 0.001; 
     115 
     116                        Fparams1->setNamedConstant("refIndex", refIndex); 
     117                        Fparams2->setNamedConstant("refIndex", refIndex); 
     118        } 
     119                if (mInputDevice->isKeyDown(KC_K)) 
     120        { 
     121                        MaterialPtr mat1 = MaterialManager::getSingleton().getByName("GTP/MultiBounce/Refractor2L"); 
     122                        GpuProgramParameters* Fparams1 = mat1->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
     123                        MaterialPtr mat2 = MaterialManager::getSingleton().getByName("GTP/MultiBounce/PhotonMap2L"); 
     124                        GpuProgramParameters* Fparams2 = mat2->getTechnique(0)->getPass(0)->getFragmentProgramParameters().getPointer(); 
     125                         
     126                        refIndex += 0.001; 
     127                        Fparams1->setNamedConstant("refIndex", refIndex); 
     128                        Fparams2->setNamedConstant("refIndex", refIndex); 
     129        } 
    82130 
    83131                if (mInputDevice->isKeyDown(KC_UP)) 
     
    277325 
    278326    } 
     327     
     328        void loadResources(void) 
     329        { 
     330                // Initialise, parse scripts etc 
     331                ResourceGroupManager::getSingleton().initialiseResourceGroup("Bootstrap"); 
     332                ResourceGroupManager::getSingleton().initialiseResourceGroup("General"); 
     333                ResourceGroupManager::getSingleton().initialiseResourceGroup("PostProc"); 
     334                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Basic"); 
     335                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_EnvMap"); 
     336                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_Caustic"); 
     337                ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_MultiBounce_Shared"); 
     338                ResourceGroupManager::getSingleton().initialiseResourceGroup(resourceGroupName[currentMaterial]); 
     339                if(currentMaterial == 2) 
     340                        ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_MultiBounce_PhotonMap"); 
     341                if(currentMaterial == 5) 
     342                        ResourceGroupManager::getSingleton().initialiseResourceGroup("GTP_MultiBounce_PhotonMap_MinMax"); 
     343        } 
    279344 
    280345        void createScene(void) 
     
    314379                //mCamera->lookAt(Vector3(0,1.2,0.0)); 
    315380                 
    316                 bool teapot = true; 
    317381                Entity* object; 
    318                 if(teapot) 
    319                 object = mSceneMgr->createEntity("object", "teapot.mesh"); 
    320                 else 
    321           object = mSceneMgr->createEntity("object", "sphere.mesh"); 
    322  
    323                 object->setMaterialName("MetalTeapotMultipleBounce"); 
     382                object = mSceneMgr->createEntity("object", objectNames[currentObject]); 
     383                  
     384                object->setMaterialName(materialNames[currentMaterial]); 
    324385                objectNode = rootNode->createChildSceneNode("objectNode"); 
    325386                objectNode->attachObject(object); 
    326                 if(teapot) 
    327                 objectNode->scale(0.5,0.5,0.5); 
    328                 else 
    329                 objectNode->scale(0.005,0.005,0.005); 
     387                 
     388                if(currentObject == 1) 
     389                        objectNode->scale(0.5,0.5,0.5); 
     390                if(currentObject == 0) 
     391                        objectNode->scale(0.005,0.005,0.005); 
    330392                //objectNode->scale(0.005,0.005,0.005); 
     393                 
    331394                objectNode->setPosition(0,1.2,0); 
    332395                objectNode->_updateBounds(); 
     
    381444                 
    382445                mCamera->setPosition(2.3,7.0,2.3); 
    383                 mCamera->lookAt(Vector3(0,5.75,0.0)); 
     446                //mCamera->lookAt(Vector3(0,5.75,0.0)); 
    384447                 
    385448                Entity* object = mSceneMgr->createEntity("object", "teapot.mesh"); 
     
    410473 
    411474        void createScene3(void) 
    412     { 
     475    {       
    413476        SceneNode* rootNode = mSceneMgr->getRootSceneNode(); 
    414477                 
    415                 bool teapot = true; 
    416478                //mCamera->getParentSceneNode()->translate(Vector3(6.564,4.328,0.059)); 
    417479                //mCamera->setPosition(4.0,4.2,-3.5); 
    418                 mCamera->setPosition(7.0,2.6,-0.5); 
    419                 mCamera->lookAt(Vector3(1.0, 0.0,0.6)); 
     480                mCamera->getParentSceneNode()->translate(7.0,2.6,-0.5); 
     481                //mCamera->setPosition(7.0,2.6,-0.5); 
     482                //mCamera->lookAt(Vector3(1.0, 0.0,0.6)); 
    420483                Entity* object; 
    421  
    422                 if(teapot) 
    423                  object = mSceneMgr->createEntity("object", "teapot.mesh"); 
    424                 else 
    425                  object = mSceneMgr->createEntity("object", "sphere.mesh"); 
    426                 object->setMaterialName("MetalTeapotMultipleBounce"); 
     484                 
     485                object = mSceneMgr->createEntity("object", objectNames[currentObject]); 
     486 
     487                object->setMaterialName(materialNames[currentMaterial]); 
    427488                objectNode = rootNode->createChildSceneNode(); 
    428489                objectNode->attachObject(object); 
    429490 
    430                 if(teapot) 
     491                if(currentObject == 1) 
    431492                { 
    432493                  objectNode->scale(2.7,2.7,2.7); 
    433494                  objectNode->setPosition(0,0.7,0.0); 
    434495                } 
    435                 else 
     496                if(currentObject == 0) 
    436497                { 
    437498                  objectNode->scale(0.027,0.027,0.027);          
     
    445506                SceneNode* roomNode = rootNode->createChildSceneNode(); 
    446507                roomNode->attachObject(room); 
    447                 roomNode->_updateBounds();                                       
     508                roomNode->setScale(2,2,2); 
     509                roomNode->_updateBounds(); 
     510 
     511                mSceneMgr->setShadowTechnique(SHADOWTYPE_NONE); 
     512                Light* Light1 = mSceneMgr->createLight("Light1"); 
     513                Light1->setType(Light::LT_SPOTLIGHT); 
     514                Light1->setCastShadows(true); 
     515        Light1->setDiffuseColour(ColourValue(1,1, 1)); 
     516                Light1->setPowerScale(1.0); 
     517                SceneNode* LightNode1 = rootNode->createChildSceneNode(); 
     518                LightNode1->setPosition(3,3,3); 
     519                Light1->setDirection(-1,-1,-1); 
     520                Light1->setSpotlightRange(Degree(0),Degree(120)); 
     521                LightNode1->attachObject(Light1); 
     522 
     523                BillboardSet* bbs = mSceneMgr->createBillboardSet("bb", 1); 
     524                bbs->setDefaultDimensions(0.2, 0.2); 
     525                bbs->createBillboard(Vector3::ZERO, ColourValue::White); 
     526                bbs->setMaterialName("Flare"); 
     527                LightNode1->attachObject(bbs); 
    448528   } 
    449529 
  • GTP/trunk/App/Demos/Illum/Ogre/src/ReflectionTest/scripts/ReflectionTest.7.10.vcproj

    r2025 r2057  
    22<VisualStudioProject 
    33        ProjectType="Visual C++" 
    4         Version="7,00" 
     4        Version="7.10" 
    55        Name="ReflectionTest" 
    66        ProjectGUID="{945CF851-1CE7-469B-AB24-82A7C12C7170}" 
    77        RootNamespace="GameToolsRaytraceDemo" 
    8         Keyword="Win32Proj" 
    9         > 
     8        Keyword="Win32Proj"> 
    109        <Platforms> 
    1110                <Platform 
    12                         Name="Win32" 
    13                 /> 
     11                        Name="Win32"/> 
    1412        </Platforms> 
    15         <ToolFiles> 
    16         </ToolFiles> 
    1713        <Configurations> 
    1814                <Configuration 
     
    2117                        IntermediateDirectory="..\obj\$(ConfigurationName)" 
    2218                        ConfigurationType="1" 
    23                         InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    24                         CharacterSet="2" 
    25                         > 
    26                         <Tool 
    27                                 Name="VCPreBuildEventTool" 
    28                         /> 
    29                         <Tool 
    30                                 Name="VCCustomBuildTool" 
    31                         /> 
    32                         <Tool 
    33                                 Name="VCXMLDataGeneratorTool" 
    34                         /> 
    35                         <Tool 
    36                                 Name="VCWebServiceProxyGeneratorTool" 
    37                         /> 
    38                         <Tool 
    39                                 Name="VCMIDLTool" 
    40                         /> 
     19                        CharacterSet="2"> 
    4120                        <Tool 
    4221                                Name="VCCLCompilerTool" 
     
    4423                                AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns;..\..\Common\include" 
    4524                                PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 
    46                                 MinimalRebuild="true" 
     25                                MinimalRebuild="TRUE" 
    4726                                BasicRuntimeChecks="3" 
    4827                                RuntimeLibrary="3" 
    49                                 EnableFunctionLevelLinking="true" 
     28                                EnableFunctionLevelLinking="TRUE" 
    5029                                UsePrecompiledHeader="0" 
    5130                                WarningLevel="3" 
    52                                 Detect64BitPortabilityProblems="true" 
    53                                 DebugInformationFormat="4" 
    54                         /> 
     31                                Detect64BitPortabilityProblems="TRUE" 
     32                                DebugInformationFormat="4"/> 
    5533                        <Tool 
    56                                 Name="VCManagedResourceCompilerTool" 
    57                         /> 
    58                         <Tool 
    59                                 Name="VCResourceCompilerTool" 
    60                         /> 
    61                         <Tool 
    62                                 Name="VCPreLinkEventTool" 
    63                         /> 
     34                                Name="VCCustomBuildTool"/> 
    6435                        <Tool 
    6536                                Name="VCLinkerTool" 
     
    6940                                AdditionalLibraryDirectories="..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\bin\Debug;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\bin\Debug" 
    7041                                IgnoreDefaultLibraryNames="" 
    71                                 GenerateDebugInformation="true" 
     42                                GenerateDebugInformation="TRUE" 
    7243                                ProgramDatabaseFile="$(OutDir)/proba.pdb" 
    7344                                SubSystem="2" 
    7445                                OptimizeForWindows98="1" 
    75                                 TargetMachine="1" 
    76                         /> 
     46                                TargetMachine="1"/> 
    7747                        <Tool 
    78                                 Name="VCALinkTool" 
    79                         /> 
    80                         <Tool 
    81                                 Name="VCManifestTool" 
    82                         /> 
    83                         <Tool 
    84                                 Name="VCXDCMakeTool" 
    85                         /> 
    86                         <Tool 
    87                                 Name="VCBscMakeTool" 
    88                         /> 
    89                         <Tool 
    90                                 Name="VCFxCopTool" 
    91                         /> 
    92                         <Tool 
    93                                 Name="VCAppVerifierTool" 
    94                         /> 
    95                         <Tool 
    96                                 Name="VCWebDeploymentTool" 
    97                         /> 
     48                                Name="VCMIDLTool"/> 
    9849                        <Tool 
    9950                                Name="VCPostBuildEventTool" 
    100                                 CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)" 
    101                         /> 
     51                                CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)"/> 
     52                        <Tool 
     53                                Name="VCPreBuildEventTool"/> 
     54                        <Tool 
     55                                Name="VCPreLinkEventTool"/> 
     56                        <Tool 
     57                                Name="VCResourceCompilerTool"/> 
     58                        <Tool 
     59                                Name="VCWebServiceProxyGeneratorTool"/> 
     60                        <Tool 
     61                                Name="VCXMLDataGeneratorTool"/> 
     62                        <Tool 
     63                                Name="VCWebDeploymentTool"/> 
     64                        <Tool 
     65                                Name="VCManagedWrapperGeneratorTool"/> 
     66                        <Tool 
     67                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    10268                </Configuration> 
    10369                <Configuration 
     
    10672                        IntermediateDirectory="..\obj\$(ConfigurationName)" 
    10773                        ConfigurationType="1" 
    108                         InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 
    10974                        CharacterSet="2" 
    110                         WholeProgramOptimization="1" 
    111                         > 
    112                         <Tool 
    113                                 Name="VCPreBuildEventTool" 
    114                         /> 
    115                         <Tool 
    116                                 Name="VCCustomBuildTool" 
    117                         /> 
    118                         <Tool 
    119                                 Name="VCXMLDataGeneratorTool" 
    120                         /> 
    121                         <Tool 
    122                                 Name="VCWebServiceProxyGeneratorTool" 
    123                         /> 
    124                         <Tool 
    125                                 Name="VCMIDLTool" 
    126                         /> 
     75                        WholeProgramOptimization="TRUE"> 
    12776                        <Tool 
    12877                                Name="VCCLCompilerTool" 
    12978                                Optimization="2" 
    13079                                InlineFunctionExpansion="1" 
    131                                 EnableIntrinsicFunctions="true" 
     80                                EnableIntrinsicFunctions="TRUE" 
    13281                                FavorSizeOrSpeed="1" 
    133                                 OmitFramePointers="true" 
    134                                 EnableFiberSafeOptimizations="false" 
     82                                OmitFramePointers="TRUE" 
     83                                EnableFiberSafeOptimizations="FALSE" 
    13584                                AdditionalIncludeDirectories="..\include;&quot;$(OGRE_PATH)\Samples\Common\include&quot;;&quot;$(OGRE_PATH)\OgreMain\include&quot;;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\include\RenderingRuns;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderTechniques;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\include\RenderingRuns;..\..\Common\include" 
    13685                                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;GAMETOOLS_ILLUMINATION_MODULE" 
    137                                 StringPooling="true" 
    138                                 MinimalRebuild="true" 
     86                                StringPooling="TRUE" 
     87                                MinimalRebuild="TRUE" 
    13988                                RuntimeLibrary="2" 
    140                                 BufferSecurityCheck="false" 
    141                                 EnableFunctionLevelLinking="true" 
     89                                BufferSecurityCheck="FALSE" 
     90                                EnableFunctionLevelLinking="TRUE" 
    14291                                UsePrecompiledHeader="0" 
    14392                                WarningLevel="3" 
    144                                 Detect64BitPortabilityProblems="true" 
    145                                 DebugInformationFormat="3" 
    146                         /> 
     93                                Detect64BitPortabilityProblems="TRUE" 
     94                                DebugInformationFormat="3"/> 
    14795                        <Tool 
    148                                 Name="VCManagedResourceCompilerTool" 
    149                         /> 
    150                         <Tool 
    151                                 Name="VCResourceCompilerTool" 
    152                         /> 
    153                         <Tool 
    154                                 Name="VCPreLinkEventTool" 
    155                         /> 
     96                                Name="VCCustomBuildTool"/> 
    15697                        <Tool 
    15798                                Name="VCLinkerTool" 
     
    160101                                LinkIncremental="1" 
    161102                                AdditionalLibraryDirectories="..\..\..\..\..\..\..\Lib\Illum\IllumModule\OgreIllumModule\bin\Release;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\Lib\Illum\IllumModule\IllumModule\bin\Release" 
    162                                 GenerateDebugInformation="false" 
     103                                GenerateDebugInformation="FALSE" 
    163104                                SubSystem="2" 
    164105                                OptimizeReferences="2" 
    165106                                EnableCOMDATFolding="2" 
    166107                                OptimizeForWindows98="1" 
    167                                 TargetMachine="1" 
    168                         /> 
     108                                TargetMachine="1"/> 
    169109                        <Tool 
    170                                 Name="VCALinkTool" 
    171                         /> 
    172                         <Tool 
    173                                 Name="VCManifestTool" 
    174                         /> 
    175                         <Tool 
    176                                 Name="VCXDCMakeTool" 
    177                         /> 
    178                         <Tool 
    179                                 Name="VCBscMakeTool" 
    180                         /> 
    181                         <Tool 
    182                                 Name="VCFxCopTool" 
    183                         /> 
    184                         <Tool 
    185                                 Name="VCAppVerifierTool" 
    186                         /> 
    187                         <Tool 
    188                                 Name="VCWebDeploymentTool" 
    189                         /> 
     110                                Name="VCMIDLTool"/> 
    190111                        <Tool 
    191112                                Name="VCPostBuildEventTool" 
    192                                 CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)" 
    193                         /> 
     113                                CommandLine="copy $(OutDir)\$(TargetFileName) ..\..\..\bin\$(ConfigurationName)"/> 
     114                        <Tool 
     115                                Name="VCPreBuildEventTool"/> 
     116                        <Tool 
     117                                Name="VCPreLinkEventTool"/> 
     118                        <Tool 
     119                                Name="VCResourceCompilerTool"/> 
     120                        <Tool 
     121                                Name="VCWebServiceProxyGeneratorTool"/> 
     122                        <Tool 
     123                                Name="VCXMLDataGeneratorTool"/> 
     124                        <Tool 
     125                                Name="VCWebDeploymentTool"/> 
     126                        <Tool 
     127                                Name="VCManagedWrapperGeneratorTool"/> 
     128                        <Tool 
     129                                Name="VCAuxiliaryManagedWrapperGeneratorTool"/> 
    194130                </Configuration> 
    195131        </Configurations> 
     
    199135                <Filter 
    200136                        Name="Source Files" 
    201                         Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm" 
    202                         > 
     137                        Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm"> 
    203138                        <File 
    204                                 RelativePath="..\src\ReflectionTest.cpp" 
    205                                 > 
     139                                RelativePath="..\src\ReflectionTest.cpp"> 
    206140                        </File> 
    207141                </Filter> 
    208142                <Filter 
    209143                        Name="Header Files" 
    210                         Filter="h;hpp;hxx;hm;inl;inc" 
    211                         > 
     144                        Filter="h;hpp;hxx;hm;inl;inc"> 
    212145                        <File 
    213                                 RelativePath="..\..\Common\src\FrameCapture.cpp" 
    214                                 > 
     146                                RelativePath="..\..\Common\src\FrameCapture.cpp"> 
    215147                        </File> 
    216148                        <File 
    217                                 RelativePath="..\..\Common\include\FrameCapture.h" 
    218                                 > 
     149                                RelativePath="..\..\Common\include\FrameCapture.h"> 
    219150                        </File> 
    220151                        <File 
    221                                 RelativePath="..\include\ReflectionTest.h" 
    222                                 > 
     152                                RelativePath="..\include\ReflectionTest.h"> 
    223153                        </File> 
    224154                </Filter> 
    225155                <Filter 
    226156                        Name="Resource Files" 
    227                         Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" 
    228                         > 
     157                        Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"> 
    229158                        <File 
    230                                 RelativePath="..\..\..\Media\materials\programs\MetalTeapot.hlsl" 
    231                                 > 
     159                                RelativePath="..\..\..\Media\materials\programs\MetalTeapot.hlsl"> 
    232160                        </File> 
    233161                        <File 
    234                                 RelativePath="..\..\..\Media\materials\scripts\MetalTeapot.material" 
    235                                 > 
     162                                RelativePath="..\..\..\Media\materials\scripts\MetalTeapot.material"> 
    236163                        </File> 
    237164                        <File 
    238                                 RelativePath="..\..\..\Media\materials\programs\MetalTeapotNew.hlsl" 
    239                                 > 
     165                                RelativePath="..\..\..\Media\materials\programs\MetalTeapotNew.hlsl"> 
    240166                        </File> 
    241167                </Filter> 
Note: See TracChangeset for help on using the changeset viewer.