Changeset 1965


Ignore:
Timestamp:
Oct 20, 2005, 5:21:06 PM (19 years ago)
Author:
darran
Message:
  • fixed flipped y coordinate georeferencing in cylinders.tif test image
  • fixed resultant problem in assigned texture coords
  • hopeful that this solves karratha texture issue ...
Location:
Swollen
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/saveImage.cpp

    r125 r1965  
    2525   image->readPixels(x, y, width, height, GL_RGB, GL_UNSIGNED_BYTE);
    2626
     27
     28
     29
    2730   if ( osgDB::writeImageFile(*image, "image.jpg") )
    2831   {
  • Swollen/swollen/version.cpp

    r125 r1965  
    1 const char* version() { const char* s = "Revision: 120:121M"; return s; }
     1const char* version() { const char* s = "Revision: 1844M"; return s; }
  • Swollen/swwreader/swwreader.cpp

    r133 r1965  
    349349      for( unsigned int iv=0; iv < _npoints; iv++ )
    350350         _bedslopetexcoords->push_back( osg::Vec2( (_px[iv] + _xllcorner - xorigin)/xrange,
    351                                                    (_py[iv] + _yllcorner - yorigin)/yrange ) );
     351                                                   1.0 - (_py[iv] + _yllcorner - yorigin)/yrange ) );
    352352   }
    353353   else
Note: See TracChangeset for help on using the changeset viewer.