[Kstars-devel] KDE/kdeedu/kstars/kstars/skycomponents
Akarsh Simha
akarshsimha at gmail.com
Thu Jun 12 17:21:15 CEST 2008
SVN commit 819910 by asimha:
Replacing the old magnitude interpolation formula with James' new
interpolation formula, that tries to keep number of stars drawn on
screen a constant.
CCMAIL: kstars-devel at kde.org
M +2 -5 starcomponent.cpp
--- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #819909:819910
@@ -212,15 +212,12 @@
reindex( data->updateNum() );
//adjust maglimit for ZoomLevel
- float maglim = Options::magLimitDrawStar();
double lgmin = log10(MINZOOM);
double lgmax = log10(MAXZOOM);
double lgz = log10(Options::zoomFactor());
- if ( lgz <= 0.75*lgmax )
- maglim -= (Options::magLimitDrawStar() -
- Options::magLimitDrawStarZoomOut() ) *
- (0.75*lgmax - lgz)/(0.75*lgmax - lgmin);
+
+ float maglim = 4.444 * ( lgz - lgmin ) + Options::magLimitDrawStarZoomOut();
m_zoomMagLimit = maglim;
More information about the Kstars-devel
mailing list