Changeset 379 for trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
- Timestamp:
- 11/05/05 12:40:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/X3dExporter.cpp
r378 r379 179 179 180 180 void 181 X3dExporter::ExportBspViewCellPartition(const BspTree &tree )181 X3dExporter::ExportBspViewCellPartition(const BspTree &tree, const int maxPvs) 182 182 { 183 183 ViewCellContainer viewCells; … … 186 186 ViewCellContainer::const_iterator it, it_end = viewCells.end(); 187 187 188 189 if (maxPvs == 0) 190 mUseForcedMaterial = true; 191 188 192 for (it = viewCells.begin(); it != it_end; ++ it) 189 193 { 194 mForcedMaterial.mDiffuseColor.b = 1.0f; 195 196 float importance = 0; 197 198 if (maxPvs > 0) 199 importance = (float)(*it)->GetPvs().GetSize() / (float)maxPvs; 200 201 mForcedMaterial.mDiffuseColor.r = importance; 202 mForcedMaterial.mDiffuseColor.g = 1.0f - mForcedMaterial.mDiffuseColor.r; 203 190 204 if ((*it)->GetMesh()) 191 205 ExportViewCell(*it); … … 194 208 PolygonContainer cell; 195 209 tree.ConstructGeometry(dynamic_cast<BspViewCell *>(*it), cell); 210 196 211 ExportPolygons(cell); 197 212 }
Note: See TracChangeset
for help on using the changeset viewer.