Changeset 6794
- Timestamp:
- Apr 26, 2010, 5:01:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/graphics/Model.cc
r6786 r6794 92 92 &&this->lodLevel_!=0) 93 93 { 94 float scaleFactor = this->getScale(); 94 Vector3 scale3d = this->getScale3D(); 95 float scaleFactor = scale3d.x; 96 if(scale3d.y>scaleFactor) 97 scaleFactor = scale3d.y; 98 if(scale3d.z>scaleFactor) 99 scaleFactor = scale3d.z; 100 95 101 COUT(0) << this->meshSrc_<< " lodLevel_: " << this->lodLevel_ <<" scale: "<< scaleFactor << std::endl; 96 102 //Für Asteroiden perfekt … … 102 108 #endif 103 109 104 float factor = scaleFactor*scaleFactor*scaleFactor*scaleFactor; 110 float factor = scaleFactor; 111 COUT(0)<<"scaleFactor:"<<scaleFactor<<std::endl; 105 112 106 113 distList.push_back(70.0f*factor); … … 115 122 distList.push_back(330.0f*factor); 116 123 117 float reductionValue = 0. 5f;124 float reductionValue = 0.2f; 118 125 119 126
Note: See TracChangeset
for help on using the changeset viewer.