[osg-users] Origin of computing maximum level in osgdem

maya leonard mayaleonard at hotmail.com
Mon Jun 20 15:02:25 PDT 2016


Hello,

Can someone point me to the literature for computing

(1 ) AR = xRange/ yRange in 

      bool DataSet::computeOptimumTileSystemDimensions(int& C1, int& R1)
      Lines 247- 270 DataSet.cpp

and 

(2) int k_cols = int( ceil( 1.0 + ::log( destination_xRange / (_C1 * sourceResolutionX * tileSize ) ) / ::log(2.0) ) );
      
      
                 int k_rows = int( ceil( 1.0 + ::log( destination_yRange / (_R1 * sourceResolutionY * tileSize ) ) / ::log(2.0) ) );

      bool DataSet::computeOptimumLevel(Source* source, int maxLevel, int& level)
     Lines 201 - 210 DataSet.cpp

Thank you

Maya


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160620/d3c51fb9/attachment-0001.htm>


More information about the osg-users mailing list