Ignore:
Timestamp:
04/24/06 15:49:01 (18 years ago)
Author:
szirmay
Message:
 
Location:
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/OgreRenderingRun.cpp

    r790 r808  
    144144} 
    145145 
    146 void OgreRenderingRun::setMaterialForVisibles(String& materialName, Camera* cam) 
     146void OgreRenderingRun::setMaterialForVisibles(String& materialName, Camera* cam, bool shadowcastersonly) 
    147147{ 
    148148        SceneManager* sm = Ogre::Root::getSingleton()._getCurrentSceneManager(); 
     
    158158        } 
    159159 
    160         sm->_findVisibleObjects (cam, false); 
     160        sm->_findVisibleObjects (cam, shadowcastersonly); 
    161161         
    162162        setMaterialForRenderables(materialName, rq); 
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderTechniques/OgreCausticRecieverRenderTechnique.cpp

    r790 r808  
    5757                st2->setTextureFiltering(TFO_BILINEAR); 
    5858 
    59                 newpass->setSceneBlending(SBT_ADD); 
     59                newpass->setSceneBlending(SBF_DEST_COLOUR, SBF_ONE); 
     60                //newpass->setSceneBlending(SBT_ADD); 
    6061                 
    6162                techn->movePass(lastpass, index);                        
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreDepthShadowMapRenderingRun.cpp

    r790 r808  
    6464void OgreDepthShadowMapRenderingRun::updateDepthMap() 
    6565{ 
    66         setMaterialForVisibles(materialName, depthMapCamera); 
     66        setMaterialForVisibles(materialName, depthMapCamera, true); 
    6767         
    6868        RenderTarget* rt = depthMapTexture->getBuffer().getPointer()->getRenderTarget(); 
    69           
     69         
     70        SceneManager* sm = Root::getSingleton()._getCurrentSceneManager(); 
     71         
    7072        rt->update();    
    7173 
  • GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePhotonMapRenderingRun.cpp

    r790 r808  
    7676        rt->update();    
    7777        /* 
     78        static int framecount = 0; 
    7879        String filename = "photon"; 
    79         //filename.append(StringConverter::toString(frameNum)); 
     80        filename.append(StringConverter::toString(framecount)); 
    8081        filename.append(".png"); 
    81         rt->writeContentsToFile(filename);*/ 
    82  
     82        rt->writeContentsToFile(filename); 
     83        framecount++;*/ 
     84         
    8385        restoreMaterials(); 
    8486} 
Note: See TracChangeset for help on using the changeset viewer.