Ignore:
Timestamp:
02/28/07 18:17:34 (17 years ago)
Author:
szirmay
Message:
 
File:
1 edited

Legend:

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

    r2055 r2174  
    6969        Vector3 center = sharedRuns->getRootPosition(cubemapRunType); 
    7070        cam->setPosition(center); 
    71  
     71         
    7272        bool renderAllwithOwnColor = false; 
    7373 
     
    8383                        if(useEnvMaterial) 
    8484                        { 
     85///////////////////////////////////////////////////////////////// 
     86////   DEBUG 
     87///////////////////////////////////////////////////////////////// 
     88/*              Camera* camm = new Camera("tempCAm", sm); 
     89                TexturePtr texPtr = Ogre::TextureManager::getSingleton().createManual(  "tempRT",  
     90                                                                                                                                                        "default", 
     91                                                                                                                                                        TEX_TYPE_2D, 
     92                                                                                                                                                        256, 
     93                                                                                                                                                        256, 
     94                                                                                                                                                        0, 
     95                                                                                                                                                        0, 
     96                                                                                                                                                        PF_FLOAT16_RGBA, 
     97                                                                                                                                                        TU_RENDERTARGET); 
     98                camm->setPosition(0,50,0); 
     99                camm->setAspectRatio(1); 
     100                camm->setFOVy(Radian(Degree(90))); 
     101                camm->setNearClipDistance(0.1); 
     102                camm->setFarClipDistance(1000); 
     103                Texture* result = texPtr.getPointer(); 
     104                HardwarePixelBuffer* hpb = (result->getBuffer()).getPointer(); 
     105                RenderTarget* rt = hpb->getRenderTarget(0); 
     106                Viewport* v = rt->addViewport(camm); 
     107                v->setOverlaysEnabled(false); 
     108                rt->setAutoUpdated(false); 
     109                 
     110                int cnt = sm->_findVisibleObjectsOC(camm, v, false, true, false); 
     111                int cnt2 = sm->_findVisibleObjectsOC(cam, v, false, true, false); 
     112                int cnt3 = sm->_findVisibleObjectsOC(camm, cam->getViewport(), false, true, false); 
     113                int cnt3 = sm->_findVisibleObjectsOC(cam, cam->getViewport(), false, true, false);*/ 
     114/////////////////////////////////////////////////// 
    85115                                setMaterialForVisibles(environmentMaterial, cam); 
    86116                                //sm->_queueSkiesForRendering(cam);                              
     
    88118                        else 
    89119                        { 
     120                                //sm->_findVisibleObjectsOC(cam, rt->getViewport(0), false, true, false); 
    90121                                sm->_findVisibleObjects(cam, false); 
    91122                                sm->_queueSkiesForRendering(cam); 
Note: See TracChangeset for help on using the changeset viewer.