Changeset 2164


Ignore:
Timestamp:
02/26/07 14:52:48 (17 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Illum/Ogre/bin/Release/resources.cfg

    r2156 r2164  
    4848FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleRefraction 
    4949 
    50 [GTP_MultipleCausticRefraction] 
    51 FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleCausticRefraction 
     50#[GTP_MultipleCausticRefraction] 
     51#FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleCausticRefraction 
    5252 
    5353[GTP_MultipleReflection_MinMax] 
     
    5757FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleRefractionMinMax 
    5858 
    59 [GTP_MultipleCausticRefraction_MinMax] 
    60 FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleCausticRefractionMinMax 
     59#[GTP_MultipleCausticRefraction_MinMax] 
     60#FileSystem=../../Media/materials/GTPAdvancedEnvMap/multibounce/multipleCausticRefractionMinMax 
  • GTP/trunk/App/Demos/Illum/Ogre/src/GameToolsRaytraceDemo/scripts/GameToolsRaytraceDemo.7.10.vcproj

    r2141 r2164  
    164164                        </File> 
    165165                </Filter> 
     166                <File 
     167                        RelativePath="..\..\..\..\..\..\..\..\..\Ogre\trunk\ogrenew\Samples\Common\bin\Release\resources.cfg"> 
     168                </File> 
    166169        </Files> 
    167170        <Globals> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/include/OgreOcclusionCullingSceneManager.h

    r2160 r2164  
    3636 
    3737        void _renderVisibleObjects(); 
    38         void _findVisibleObjects(Camera* cam, bool onlyShadowCasters); 
     38        void myFindVisibleObjects(Camera* cam, bool onlyShadowCasters); 
    3939        void _updateSceneGraph(Camera* cam); 
    4040 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp

    r2161 r2164  
    678678} 
    679679//----------------------------------------------------------------------- 
    680 void OcclusionCullingSceneManager::_findVisibleObjects(Camera* cam, 
     680void OcclusionCullingSceneManager::myFindVisibleObjects(Camera* cam, 
    681681                                                                                                                bool onlyShadowCasters) 
    682682{ 
     
    20332033    { 
    20342034        // Parse the scene and tag visibles 
    2035         _findVisibleObjects(camera,  
     2035        myFindVisibleObjects(camera,  
    20362036            mIlluminationStage == IRS_RENDER_TO_TEXTURE? true : false); 
    20372037    } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/HashPvs.h

    r2162 r2164  
    2525   }; 
    2626 
    27    /*int operator()(T a) const 
    28    { 
    29            if (!a) 
    30                    return -2; 
    31            return (size_t)(a->GetId()); 
    32    }*/ 
    33  
    3427   int operator()(int a) const 
    3528   { 
     
    10396public: 
    10497 
    105         //HashPvs(): mEntries((Intersectable *)100) {}; 
    106         HashPvs()  
     98        HashPvs()//: mEntries(1009) 
    10799        { 
    108100                 mEntries.set_deleted_key(-1); 
    109101                 mEntries.set_empty_key(-2); 
    110                  //mEntries.Reset(); 
    111102        }; 
    112103        //virtual ~HashPvs() {}; 
     
    141132        bool IsDirty() const; 
    142133 
    143         bool RequiresResort() const; 
     134        inline bool RequiresResort() const; 
    144135 
    145136        /** Finds sample in PVS. 
     
    273264                                                                                const float pdf) 
    274265{ 
     266        static pair<HASH_ITERATOR, bool> result; 
     267        result = mEntries.insert(pair<int, T>(sample->GetId(), sample)); 
     268        return result.second; 
     269 
     270        /* 
    275271        static CONST_HASH_ITERATOR it; 
    276272 
     
    280276        const bool found = (it != mEntries.end()); 
    281277 
     278        //return false; 
    282279        // already in map 
    283280        if (found) 
     
    287284        mEntries.insert(pair<int, T>(sample->GetId(), sample)); 
    288285         
    289         return true; 
     286        return true;*/ 
    290287} 
    291288 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Intersectable.h

    r2116 r2164  
    6363  virtual ~Intersectable(); 
    6464 
    65   void SetId(const int id) { mId = id; } 
    66   int GetId() { return mId; } 
     65  inline void SetId(const int id) { mId = id; } 
     66  inline int GetId() { return mId; } 
    6767   
    6868  ///////////// 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp

    r2124 r2164  
    16601660        if (pvsObjects.empty()) 
    16611661        { 
    1662                 Debug << "here81 no objects" << endl; 
     1662                Debug << "no objects" << endl; 
    16631663                pvsObjects = preprocessorObjects; 
    16641664        } 
  • GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.vcproj

    r2162 r2164  
    221221                                OptimizeForProcessor="3" 
    222222                                OptimizeForWindowsApplication="TRUE" 
    223                                 AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer;..\src\ootl\src\;..\src\ootl\src\cpp;..\src\ootl\src\include\ootl\sandbox;..\src\ootl\;..\src\ootl\src\include\ootl;..\src\sparsehash\src\google\sparsehash;..\src\sparsehash\src\windows;..\src\sparsehash\src\google;..\src\sparsehash\src" 
     223                                AdditionalIncludeDirectories="..\src;..\..\..\..\..\..\NonGTP\Devil\include;..\..\..\..\..\..\NonGTP\Zlib\include;..\..\..\..\..\..\NonGTP\Xerces;..\..\..\..\..\..\NonGTP\Boost;..\MultiLevelRayTracing;&quot;$(QTDIR)\include\QtCore&quot;;&quot;$(QTDIR)\include\QtGui&quot;;&quot;$(QTDIR)\include&quot;;&quot;$(QTDIR)\include\QtOpenGl&quot;;&quot;$(CG_INC_PATH)&quot;;Timer;..\src\ootl\src\;..\src\ootl\src\cpp;..\src\ootl\src\include\ootl\sandbox;..\src\ootl\src;..\src\ootl\src\include\ootl;..\src\sparsehash\src\google\sparsehash;..\src\sparsehash\src\windows;..\src\sparsehash\src\google;..\src\sparsehash\src;..\src\ootl\" 
    224224                                PreprocessorDefinitions="WIN32;NDEBUG;_LIB;GTP_INTERNAL;USE_QT;USE_HASH_PVS" 
    225225                                ExceptionHandling="TRUE" 
     
    11601160                        </File> 
    11611161                        <File 
     1162                                RelativePath=".\sparsehash\src\windows\hash_fun.h"> 
     1163                        </File> 
     1164                        <File 
    11621165                                RelativePath=".\sparsehash\src\google\sparsehash\hash_fun.h"> 
    1163                         </File> 
    1164                         <File 
    1165                                 RelativePath=".\sparsehash\src\windows\hash_fun.h"> 
    11661166                        </File> 
    11671167                        <File 
  • GTP/trunk/Lib/Vis/Preprocessing/src/RayCaster.h

    r2162 r2164  
    8888         
    8989        void Reserve(const int number) { 
    90                 cout<<"here3"<<endl; 
    91         DEL_PTR(mRays); 
    92         cout<<"here44"<<endl; 
    93           mRays = new VssRay[number]; 
    94           mNumber = number; 
     90                DEL_PTR(mRays); 
     91                mRays = new VssRay[number]; 
     92                mNumber = number; 
    9593        } 
    9694         
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCell.cpp

    r2124 r2164  
    19961996        default: 
    19971997                // pvs is stored consistently in the tree up 
    1998                 //to the root just return pvs size  
     1998                // to the root just return pvs size  
    19991999                pvsCost = vc->GetPvs().EvalPvsCost();    
    20002000                break; 
  • GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp

    r2161 r2164  
    26572657        if (addSamplesToPvs)  
    26582658        { 
    2659                 hasAbsContribution = viewCell->GetPvs(). 
    2660                         AddSampleDirtyCheck(obj, ray.mPdf); 
     2659                hasAbsContribution = viewCell->GetPvs().AddSampleDirtyCheck(obj, ray.mPdf); 
    26612660                //hasAbsContribution = viewCell->GetPvs().AddSample(obj,ray.mPdf); 
    26622661        } 
     
    26642663        { 
    26652664                hasAbsContribution =  
    2666                         viewCell->GetPvs().GetSampleContribution(obj, 
    2667                         ray.mPdf, 
    2668                         relContribution); 
     2665                        viewCell->GetPvs().GetSampleContribution(obj, ray.mPdf, relContribution); 
    26692666        } 
    26702667 
Note: See TracChangeset for help on using the changeset viewer.