Changeset 560


Ignore:
Timestamp:
01/20/06 09:41:18 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.cpp

    r559 r560  
    29222922                 
    29232923                                                // new view cells are on the back 
    2924                                                 int i = (int)viewCells.size(); 
     2924                                                int i = 0; 
    29252925                                                for (it = viewCells.begin(); it != it_end; ++ it) 
    29262926                                                { 
    29272927                                                        Material m; 
    2928  
    2929                                                         if (i -- < newVcSize) 
     2928                                                        // assign special material to new view cells 
     2929                                                        if (i >= (viewCells.size() - newVcSize)) 
    29302930                                                        { 
    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); 
    29362935                                                        } 
    29372936                                                        else 
    29382937                                                        { 
    2939                                                                 float col = RandomValue(0.5, 1.0); 
     2938                                                                float col = RandomValue(0.1, 0.4); 
    29402939                                                                m.mDiffuseColor.r = col; 
    29412940                                                                m.mDiffuseColor.g = col; 
Note: See TracChangeset for help on using the changeset viewer.