Changeset 921 for OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/src
- Timestamp:
- 05/06/06 18:47:53 (19 years ago)
- Location:
- OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/src
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OGRE/trunk/ogre_changes/Ogre1.2/OgreMain/src/OgreSceneManager.cpp
r768 r921 1046 1046 1047 1047 // Prepare render queue for receiving new objects 1048 #ifdef GAMETOOLS_ILLUMINATION_MODULE 1049 if (mFindVisibleObjects) 1050 prepareRenderQueue(); 1051 #else 1052 prepareRenderQueue(); 1053 #endif 1054 1048 prepareRenderQueue(); 1055 1049 1056 1050 if (mFindVisibleObjects) … … 1304 1298 } 1305 1299 // Set active frame 1306 boxMat->getBestTechnique()->getPass(0)->getTextureUnitState(0) 1307 ->setCurrentFrame(i); 1300 Material::TechniqueIterator ti = boxMat->getSupportedTechniqueIterator(); 1301 while (ti.hasMoreElements()) 1302 { 1303 Technique* tech = ti.getNext(); 1304 tech->getPass(0)->getTextureUnitState(0)->setCurrentFrame(i); 1305 } 1308 1306 1309 1307 mSkyBoxEntity[i]->setMaterialName(boxMat->getName()); … … 2207 2205 return false; 2208 2206 } 2209 2210 #ifdef GAMETOOLS_ILLUMINATION_MODULE2211 if(!pass->isActive())2212 return false;2213 #endif2214 2207 2215 2208 return true; … … 4166 4159 mShadowIndexBuffer = HardwareBufferManager::getSingleton(). 4167 4160 createIndexBuffer(HardwareIndexBuffer::IT_16BIT, 4168 mShadowIndexBufferSize,4161 size, 4169 4162 HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY_DISCARDABLE, 4170 4163 false); … … 4859 4852 } 4860 4853 4861 } 4854 #ifdef GTP_VISIBILITY_MODIFIED_OGRE 4855 //----------------------------------------------------------------------- 4856 const Pass* SceneManager::setPassWrapper(Pass* pass) 4857 { 4858 return _setPass(pass); 4859 } 4860 //----------------------------------------------------------------------- 4861 void SceneManager::_renderSceneNode(Camera *cam, SceneNode *node, const int leavePassesInQueue) 4862 { 4863 // delete previously rendered objects from renderqueue 4864 _deleteRenderedQueueGroups(leavePassesInQueue); 4865 4866 node->_findVisibleObjects(cam, getRenderQueue(), false, mDisplayNodes, false); 4867 SceneManager::_renderVisibleObjects(); 4868 } 4869 //----------------------------------------------------------------------- 4870 void SceneManager::_deleteRenderedQueueGroups(const int leavePassesInQueue) 4871 { 4872 RenderQueue::QueueGroupIterator queueIt = 4873 getRenderQueue()->_getQueueGroupIterator(); 4874 4875 //-- find currently processed queue groups and delelete them from render queue 4876 while (queueIt.hasMoreElements()) 4877 { 4878 RenderQueueGroupID qId = static_cast<RenderQueueGroupID>(queueIt.peekNextKey()); 4879 RenderQueueGroup* pGroup = queueIt.getNext(); 4880 4881 if (isRenderQueueToBeProcessed(qId)) 4882 { 4883 pGroup->clear(leavePassesInQueue); 4884 } 4885 } 4886 4887 // Now trigger the pending pass updates 4888 // Pass::processPendingPassUpdates(); 4889 } 4890 4891 //----------------------------------------------------------------------- 4892 /*void SceneManager::renderEntity(Entity *ent) 4893 { 4894 int n = (int)ent->getNumSubEntities(); 4895 4896 for (int i = 0; i < n; ++i) 4897 { 4898 Pass *pass = setPass(ent->getSubEntity(i)->getTechnique()->getPass(0)); 4899 4900 _renderSingleObject(ent->getSubEntity(i), pass, false); 4901 } 4902 }*/ 4903 //----------------------------------------------------------------------- 4904 void SceneManager::_renderMovableObject(MovableObject *mov, const int leavePassesInQueue) 4905 { 4906 // delete previously rendered objects from renderqueue 4907 _deleteRenderedQueueGroups(leavePassesInQueue); 4908 4909 mov->_updateRenderQueue(getRenderQueue()); 4910 SceneManager::_renderVisibleObjects(); 4911 } 4912 //----------------------------------------------------------------------- 4913 void SceneManager::_renderSingleRenderable(Renderable *rend) 4914 { 4915 Pass *pass = rend->getTechnique()->getPass(0); 4916 _setPass(pass); 4917 renderSingleObject(rend, pass, false); 4918 } 4919 //----------------------------------------------------------------------- 4920 void SceneManager::useRenderableViewProjModeWrapper(Renderable* pRend) 4921 { 4922 useRenderableViewProjMode(pRend); 4923 } 4924 #endif //GTP_VISIBILITY_MODIFIED_OGRE 4925 4926 }
Note: See TracChangeset
for help on using the changeset viewer.