Changeset 111 for trunk/VUT/Ogre


Ignore:
Timestamp:
05/24/05 17:55:14 (20 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/Ogre
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgrePlatformHierarchyInterface.h

    r103 r111  
    8282        */ 
    8383        void SetOnlyShadowCasters(bool onlyShadowCasters); 
     84        /** see set */ 
     85        bool GetOnlyShadowCasters(); 
    8486 
    8587protected: 
  • trunk/VUT/Ogre/src/OgrePlatformHierarchyInterface.cpp

    r103 r111  
    177177{ 
    178178        mOnlyShadowCasters = onlyShadowCasters; 
     179        mDummy = mOnlyShadowCasters ; 
     180} 
     181//----------------------------------------------------------------------- 
     182bool PlatformHierarchyInterface::GetOnlyShadowCasters() 
     183{ 
     184        return mOnlyShadowCasters; 
    179185} 
    180186} // namespace Ogre 
  • trunk/VUT/Ogre/src/OgreSceneContentGenerator.cpp

    r110 r111  
    7272                createChildSceneNode(String(name) + "Node", position); 
    7373 
     74        //ent->setCastShadows(false); 
    7475        currentObject->attachObject(ent); 
    7576        currentObject->setScale(mScale); 
  • trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp

    r110 r111  
    7676        if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3::NEGATIVE_UNIT_Y)) 
    7777        { 
    78                 queryResult.y += mOffset; 
    7978                // reject if height is too high 
    8079                if (queryResult.y < mMaxPos.y) 
    8180                { 
     81                        // add offset so object is over terrain 
     82                        queryResult.y += mOffset; 
     83 
    8284                        return SceneContentGenerator::GenerateSceneObject(queryResult, rotation, objName); 
    8385                } 
  • trunk/VUT/Ogre/src/OgreVisibilitySceneManager.cpp

    r103 r111  
    2525void VisibilitySceneManager::_findVisibleObjects(Camera* cam, bool onlyShadowCasters) 
    2626{ 
     27        mHierarchyInterface->SetOnlyShadowCasters(onlyShadowCasters); 
    2728        // does nothing if hierarchical culling is used => 
    2829        // we interleave identification and rendering of objects  
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r107 r111  
    8585void VisibilityTerrainSceneManager::_renderVisibleObjects() 
    8686{ 
     87 
    8788        if (!mShowVisualization) 
    8889        { 
Note: See TracChangeset for help on using the changeset viewer.