- Timestamp:
- 03/19/07 16:53:07 (18 years ago)
- Location:
- GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreCubeMapRenderingRun.cpp
r2180 r2265 83 83 if(useEnvMaterial) 84 84 { 85 /////////////////////////////////////////////////////////////////86 //// DEBUG87 /////////////////////////////////////////////////////////////////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 ///////////////////////////////////////////////////115 85 setMaterialForVisibles(environmentMaterial, cam); 116 86 //sm->_queueSkiesForRendering(cam); -
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgreFocusingMapRenderingRun.cpp
r1425 r2265 106 106 107 107 108 MaterialPtr mat = MaterialManager::getSingleton().getByName("G ameTools/FocusingShader");108 MaterialPtr mat = MaterialManager::getSingleton().getByName("GTP/Basic/Focusing"); 109 109 GpuProgramParameters* Vparams = mat->getTechnique(0)->getPass(0)->getVertexProgramParameters().getPointer(); 110 Vparams->setNamedConstant(" lightTransform", lightMatrix);110 Vparams->setNamedConstant("LightViewProj", lightMatrix); 111 111 112 setMaterialForVisibles(String("G ameTools/FocusingShader"), camera);112 setMaterialForVisibles(String("GTP/Basic/Focusing"), camera); 113 113 114 114 RenderTarget* rt = focusingTexture->getBuffer().getPointer()->getRenderTarget();
Note: See TracChangeset
for help on using the changeset viewer.