Changeset 117 for trunk/VUT/Ogre


Ignore:
Timestamp:
05/30/05 08:09:49 (20 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/Ogre
Files:
5 edited

Legend:

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

    r97 r117  
    3232                /**  
    3333                        Sets the material used for occlusion queries.  
    34                         @remark the material is called "QueryMaterial" and 
     34                        @remark the material is called "Visibility/QueryMaterial" and 
    3535                        uses no lighting, no depth write, and no colours 
    3636                */ 
  • trunk/VUT/Ogre/include/OgreSolidHalfBoundingBox.h

    r97 r117  
    3232        /**  
    3333                Sets the material used for occlusion queries.  
    34                 @remark the material is called "QueryMaterial" and 
     34                @remark the material is called "Visibility/QueryMaterial" and 
    3535                uses no lighting, no depth write, and no colours 
    3636        */ 
  • trunk/VUT/Ogre/src/OgreSolidBoundingBox.cpp

    r103 r117  
    120120void SolidBoundingBox::SetOcclusionQueryMaterial() 
    121121{ 
    122         m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 
     122        m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 
    123123 
    124124        if (m_pMaterial.isNull()) 
    125125        { 
    126126                m_pMaterial = MaterialManager::getSingleton(). 
    127                         create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
     127                        create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
    128128 
    129                 m_pMaterial->setColourWriteEnabled(false); 
    130                 m_pMaterial->setDepthWriteEnabled(false); 
    131                 m_pMaterial->setLightingEnabled(false); 
     129                Pass *queryPass = m_pMaterial->getTechnique(0)->getPass(0); 
     130                queryPass->setColourWriteEnabled(false); 
     131                queryPass->setDepthWriteEnabled(false); 
     132                queryPass->setLightingEnabled(false); 
    132133        } 
    133134 
    134         setMaterial("QueryMaterial"); 
     135        setMaterial("Visibility/QueryMaterial"); 
    135136} 
    136137 
  • trunk/VUT/Ogre/src/OgreSolidHalfBoundingBox.cpp

    r103 r117  
    8787void SolidHalfBoundingBox::SetOcclusionQueryMaterial( void ) 
    8888{ 
    89         m_pMaterial = MaterialManager::getSingleton().getByName("QueryMaterial"); 
     89        m_pMaterial = MaterialManager::getSingleton().getByName("Visibility/QueryMaterial"); 
    9090 
    9191        if (m_pMaterial.isNull()) 
    9292        { 
    9393                m_pMaterial = MaterialManager::getSingleton(). 
    94                         create("QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
     94                        create("Visibility/QueryMaterial", ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); 
    9595        } 
    9696 
     
    9999        m_pMaterial->setLightingEnabled(false); 
    100100 
    101         setMaterial("QueryMaterial"); 
     101        setMaterial("Visibility/QueryMaterial"); 
    102102} 
    103103 
  • trunk/VUT/Ogre/src/OgreVisibilityTerrainSceneManager.cpp

    r116 r117  
    5151                mDepthPass->setDepthWriteEnabled(true); 
    5252                mDepthPass->setLightingEnabled(false); 
    53                 depthMat->load(); 
     53                //depthMat->load(); 
    5454        } 
    5555        else 
Note: See TracChangeset for help on using the changeset viewer.