Changeset 287
- Timestamp:
- May 29, 2011, 1:37:04 PM (13 years ago)
- Location:
- experimental/TerrainTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/TerrainTest/ReaderWriterTerrainMod.cpp
r285 r287 28 28 options->getBuildKdTreesHint() == Options::BUILD_KDTREES : 29 29 osgDB::Registry::instance()->getBuildKdTreesHint() == Options::BUILD_KDTREES; 30 // Save original KdTree Hint30 // If options are available: Save it'S original KdTree Hint. 31 31 Options::BuildKdTreesHint originalHint = Options::NO_PREFERENCE; 32 32 if(options) -
experimental/TerrainTest/rampedEllipsoidTechnique.cpp
r275 r287 82 82 double height_org = h->getHeight(x,y); 83 83 double delta_h = _height - height_org; 84 // preset offset value to max and let every region try to lower it...84 // preset offset value to max and let every ramp function try to lower it... 85 85 double destination_height = std::numeric_limits<double>::max(); 86 86 87 87 // Calculate vertex height according to the region it is in. 88 if( Y_startCore<=y && y< Y_endCore && X_startCore<=x && x<X_endCore ) // If vertex is inside core: Apply final height88 if( Y_startCore<=y && y<=Y_endCore && X_startCore<=x && x<=X_endCore ) // If vertex is inside core: Apply final height 89 89 { 90 if(_height<destination_height) 91 destination_height = _height; 90 destination_height = _height; 92 91 } 92 // Startramp 93 93 if(Y_startRamp<=y && y<Y_startCore) // Vertex is inside Y start ramp 94 94 { … … 107 107 destination_height = dest; 108 108 } 109 // End ramp 109 110 if(Y_endCore<=y && y<Y_endRamp) // Vertex is inside Y end ramp 110 111 {
Note: See TracChangeset
for help on using the changeset viewer.