Changeset 2209 for GTP/trunk/Lib/Illum
- Timestamp:
- 03/08/07 11:45:04 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IllumModule/OgreIllumModule/src/RenderingRuns/OgrePMWeightComputeRenderingRun.cpp
r2200 r2209 29 29 0, 30 30 0, 31 PF_FLOAT 32_RGBA,31 PF_FLOAT16_RGBA, 32 32 TU_RENDERTARGET); 33 33 allWeightsTexture = texPtr.getPointer(); … … 50 50 0, 51 51 0, 52 PF_FLOAT 32_RGBA,52 PF_FLOAT16_RGBA, 53 53 TU_RENDERTARGET); 54 54 weightTexture = texPtr.getPointer(); … … 94 94 95 95 rt->writeContentsToFile("allweights.bmp"); 96 rt->writeContentsToFile("allweights.dds"); 96 // rt->writeContentsToFile("allweights.dds"); 97 98 99 ///////////////////DEBUG 100 static BillboardSet* entryPointBBSet = 0; 101 if(entryPointBBSet == 0) 102 { 103 SceneManager* sm = Root::getSingleton()._getCurrentSceneManager(); 104 entryPointBBSet = sm->createBillboardSet("PATHMAP_ENTRYPOINTS", entryPointCnt); 105 entryPointBBSet->setBillboardType(BBT_POINT); 106 entryPointBBSet->setBillboardsInWorldSpace(true); 107 entryPointBBSet->setPointRenderingEnabled(true); 108 for(unsigned int i = 0; i < entryPointCnt; i++) 109 { 110 PathMapEntryPoint EP = OgreIlluminationManager::getSingleton().getPathMapEntryPoints().at(i); 111 Vector3 billboardPosition = EP.position; 112 float uCoord = ((float) (i % col) + 0.5f) / (float) col; 113 float vCoord = ((float)(i / col) + 0.5f) / 4096.0f; 114 entryPointBBSet->createBillboard(billboardPosition, ColourValue(uCoord, vCoord, 0, 0)); 115 } 116 entryPointBBSet->setMaterialName("GTP/PM/EPBillboards"); 117 MaterialPtr mater = MaterialManager::getSingleton().getByName("GTP/PM/EPBillboards"); 118 mater->getTechnique(0)->getPass(0)->getTextureUnitState(0)->setTextureName(allWeightsTexture->getName()); 119 sm->getRootSceneNode()->createChildSceneNode()->attachObject(entryPointBBSet); 120 } 121 ///////////////// 97 122 } 98 123 else … … 100 125 ///not implemented 101 126 } 102 127 /* 103 128 unsigned int clustercount = OgreIlluminationManager::getSingleton().getPathMapClusterLengthsSize(); 104 129 … … 118 143 119 144 rt->writeContentsToFile("weights.bmp"); 120 rt->writeContentsToFile("weights.dds"); 145 rt->writeContentsToFile("weights.dds"); */ 121 146 } 122 147
Note: See TracChangeset
for help on using the changeset viewer.