- Timestamp:
- 11/10/05 01:09:53 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/SamplingPreprocessor.cpp
r396 r399 192 192 193 193 if (!ray.intersections.empty()) // second intersection found 194 195 196 197 194 { 195 sampleContributions += 196 AddObjectSamples(ray.intersections[0].mObject, ray); 197 } 198 198 } 199 199 } … … 475 475 { 476 476 ProcessBspViewCells(ray, 477 object,477 reverseSample ? NULL : object, 478 478 faceIndex, 479 479 passContributingSamples, … … 907 907 908 908 // export rays piercing this view cell 909 exporter->ExportRays(vcRays[i], 1000 , RgbColor(0, 1, 0));909 exporter->ExportRays(vcRays[i], 10000, RgbColor(0, 1, 0)); 910 910 911 911 m.mDiffuseColor = RgbColor(1, 0, 0); … … 981 981 982 982 Exporter *exporter = Exporter::GetExporter(s); 983 exporter->SetFilled(); 984 985 ViewCellPvsMap::iterator it = vc->GetPvs().mEntries.begin(); 986 983 987 984 exporter->SetFilled();//Wireframe(); 988 985 … … 1002 999 } 1003 1000 1004 Debug << i << ": pvs size=" << (int)vc->GetPvs().GetSize() << endl; 1001 1002 Debug << i << ": pvs size=" << (int)vc->GetPvs().GetSize() 1003 << ", piercing rays=" << (int)vcRays[i].size() << endl; 1005 1004 1006 1005 1007 1006 // export rays piercing this view cell 1008 exporter->ExportRays(vcRays[i], 1000 0, RgbColor(0, 1, 0));1009 1007 exporter->ExportRays(vcRays[i], 1000, RgbColor(0, 1, 0)); 1008 1010 1009 m.mDiffuseColor = RgbColor(1, 0, 0); 1011 1010 exporter->SetForcedMaterial(m); 1012 1011 1012 ViewCellPvsMap::const_iterator it, 1013 it_end = vc->GetPvs().mEntries.end(); 1014 1013 1015 // output PVS of view cell 1014 for ( ; it != vc->GetPvs().mEntries.end(); ++ it)1016 for (it = vc->GetPvs().mEntries.begin(); it != it_end; ++ it) 1015 1017 { 1016 1018 Intersectable *intersect = (*it).first; 1017 1019 if (!intersect->Mailed()) 1018 1020 { 1021 Material m = RandomMaterial(); 1022 1023 exporter->SetForcedMaterial(m); 1024 1019 1025 exporter->ExportIntersectable(intersect); 1020 1026 intersect->Mail();
Note: See TracChangeset
for help on using the changeset viewer.