- Timestamp:
- 02/28/07 18:17:34 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreCubeMapRenderingRun.cpp
r2055 r2174 69 69 Vector3 center = sharedRuns->getRootPosition(cubemapRunType); 70 70 cam->setPosition(center); 71 71 72 72 bool renderAllwithOwnColor = false; 73 73 … … 83 83 if(useEnvMaterial) 84 84 { 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 /////////////////////////////////////////////////// 85 115 setMaterialForVisibles(environmentMaterial, cam); 86 116 //sm->_queueSkiesForRendering(cam); … … 88 118 else 89 119 { 120 //sm->_findVisibleObjectsOC(cam, rt->getViewport(0), false, true, false); 90 121 sm->_findVisibleObjects(cam, false); 91 122 sm->_queueSkiesForRendering(cam);
Note: See TracChangeset
for help on using the changeset viewer.