Changeset 287


Ignore:
Timestamp:
May 29, 2011, 1:37:04 PM (13 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/TerrainTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • experimental/TerrainTest/ReaderWriterTerrainMod.cpp

    r285 r287  
    2828                options->getBuildKdTreesHint() == Options::BUILD_KDTREES :
    2929                                osgDB::Registry::instance()->getBuildKdTreesHint() == Options::BUILD_KDTREES;
    30         // Save original KdTree Hint
     30        // If options are available: Save it'S original KdTree Hint.
    3131        Options::BuildKdTreesHint originalHint = Options::NO_PREFERENCE;
    3232        if(options)
  • experimental/TerrainTest/rampedEllipsoidTechnique.cpp

    r275 r287  
    8282                        double height_org = h->getHeight(x,y);
    8383                        double delta_h = _height - height_org;
    84                         // preset offsetvalue 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...
    8585                        double destination_height = std::numeric_limits<double>::max();
    8686
    8787                        // 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 height
     88                        if( Y_startCore<=y && y<=Y_endCore && X_startCore<=x && x<=X_endCore )  // If vertex is inside core: Apply final height
    8989                        {
    90                                         if(_height<destination_height)
    91                                         destination_height = _height;
     90                                destination_height = _height;
    9291                        }
     92                        // Startramp
    9393                        if(Y_startRamp<=y && y<Y_startCore) // Vertex is inside Y start ramp
    9494                        {
     
    107107                                        destination_height = dest;
    108108                        }
     109                        // End ramp
    109110                        if(Y_endCore<=y && y<Y_endRamp)  // Vertex is inside Y end ramp
    110111                        {
Note: See TracChangeset for help on using the changeset viewer.