[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Mon Jun 12 00:36:53 CEST 2006


SVN commit 550483 by harris:

Adding user option to toggle Antialiasing on/off.  Eventually, this will 
be set via the Options window, in the Advanced tab.  However, that tool 
is still not functioning, so for now I am binding it to the "A" key.

I had said on the mailing list that I was not going to keep the 
integer-pixel draw functions, because they weren't much faster than the 
floating-pixel equivalents.  After looking at it again, the 
integer-pixel draw functions are 20-40% faster than their floating-point 
counterparts.  So for now I am going to commit the changes that include 
using integer draw functions when antialiasing is off.

Also, I have fixed the problem where star colors get saturated when 
antialiasing is turned off (this was noticeable before while the sky was 
in motion).  The problem was caused by the fact that the colored rim of 
star images cannot be less than 1 pixel wide without antialiasing.  I 
solved it by keeping the width at 1 pixel, but desaturating the color of 
the rim by an appropriate amount.  It works pretty well!

Related API change: I removed some arguments from fromScreen() and 
toScreen(), because we were just passing around things like 
Options::useAltAz(), which are already accessible from within any 
function.  We still need to pass a "bool useRefraction" to toScreen, but 
this should almost always be left at its default value (true), which 
actually means "adopt whatever Options::useRefraction() is set to".  The 
exception is the Horizon; these points must never be refracted, so we 
pass "false" to the argument, which means "ignore 
Options::useRefraction(); don't refract the point".

There's also some code in this commit related to adding XYZ support to 
SkyPoint, but nothing yet that you'll notice unless you look at the 
code.

CCMAIL: kstars-devel at kde.org



 M  +106 -29   deepskyobject.cpp  
 M  +5 -0      kstars.kcfg  
 M  +6 -2      skycomponents/asteroidscomponent.cpp  
 M  +6 -2      skycomponents/cometscomponent.cpp  
 M  +7 -4      skycomponents/constellationboundarycomponent.cpp  
 M  +6 -2      skycomponents/constellationlinescomponent.cpp  
 M  +19 -6     skycomponents/constellationnamescomponent.cpp  
 M  +11 -3     skycomponents/coordinategridcomponent.cpp  
 M  +1 -1      skycomponents/customcatalogcomponent.cpp  
 M  +1 -1      skycomponents/deepskycomponent.cpp  
 M  +21 -9     skycomponents/eclipticcomponent.cpp  
 M  +20 -8     skycomponents/equatorcomponent.cpp  
 M  +114 -49   skycomponents/horizoncomponent.cpp  
 M  +9 -3      skycomponents/jupitermoonscomponent.cpp  
 M  +19 -6     skycomponents/milkywaycomponent.cpp  
 M  +6 -3      skycomponents/solarsystemlistcomponent.cpp  
 M  +15 -9     skycomponents/solarsystemsinglecomponent.cpp  
 M  +1 -1      skycomponents/starcomponent.cpp  
 M  +26 -21    skymap.cpp  
 M  +5 -10     skymap.h  
 M  +108 -79   skymapdraw.cpp  
 M  +15 -13    skymapevents.cpp  
 M  +5 -1      skyobject.cpp  
 M  +23 -0     skypoint.cpp  
 M  +20 -24    skypoint.h  
 M  +22 -4     starobject.cpp  




More information about the Kstars-devel mailing list