Changeset 560 for trunk/VUT/GtpVisibilityPreprocessor/src
- Timestamp:
- 01/20/06 09:41:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp
r559 r560 2922 2922 2923 2923 // new view cells are on the back 2924 int i = (int)viewCells.size();2924 int i = 0; 2925 2925 for (it = viewCells.begin(); it != it_end; ++ it) 2926 2926 { 2927 2927 Material m; 2928 2929 if (i -- < newVcSize)2928 // assign special material to new view cells 2929 if (i >= (viewCells.size() - newVcSize)) 2930 2930 { 2931 m = RandomMaterial(); 2932 /*float col = RandomValue(0.5, 1.0); 2933 m.mDiffuseColor.r = col; 2934 m.mDiffuseColor.g = 0; 2935 m.mDiffuseColor.b = 0;*/ 2931 //m = RandomMaterial(); 2932 m.mDiffuseColor.r = RandomValue(0.5, 1.0); 2933 m.mDiffuseColor.g = RandomValue(0.5, 1.0); 2934 m.mDiffuseColor.b = RandomValue(0.5, 1.0); 2936 2935 } 2937 2936 else 2938 2937 { 2939 float col = RandomValue(0. 5, 1.0);2938 float col = RandomValue(0.1, 0.4); 2940 2939 m.mDiffuseColor.r = col; 2941 2940 m.mDiffuseColor.g = col;
Note: See TracChangeset
for help on using the changeset viewer.