[Kstars-devel] KStars, now with indexing!

Jason Harris jharris at 30doradus.org
Tue Jul 31 18:56:18 CEST 2007


Hello,

I took kstars_htm out for a quick spin last night.  It seems to be working 
well!  The responsiveness when slewing the sky seems comparable to 
kstars-3.x, especially after turning off solar system objects (which are not 
indexed yet).  I haven't had a chance to go into any depth in terms of 
testing or looking at the code, but it's looking good so far.

Congratulations, James, on all your hard work on this.

regards,
Jason

On Sunday 29 July 2007 12:06, James Bowlin wrote:
> Once more with feeling!
>
> The version of KStars with indexing is now available from:
>
> $SCHEME://svn.kde.org/home/kde/branches/work/kdeedu_kstars_htm
>
> Make sure you run a "make install" or "sudo make install" because
> some of the data files have moved/changed.  The new versions should
> peacefully coexist alongside the older versions.  When doing a clean
> install I noticed that Cities.dat, clines.dat, cnames.dat, and
> milkyway.dat were missing from data/CMakeLists.txt so I added them
> in order for the install to complete.
>
> I suspect that if it compiles, it will work.  If it doesn't compile,
> please let me know and I will try to fix the problem(s).
>
> If you want to see for yourself that the index is working, change
> line 175 in skycomponents/skymapcomposite.cpp from:
>
>     m_skyMesh->aperture(focus, radius + 1.0, DRAW_BUF);
> to:
>     m_skyMesh->aperture(focus, radius / 2.0, DRAW_BUF);
>
> (divide by 2.0 instead of add 1.0) which will make it so that indexed
> objects will only be drawn if they are in or near the central 1/4 of
> the screen.  Most things outside the solar system have been indexed.
>
> You can also make some of the mesh triangles visible by uncommenting
> lines 260 and 263 in that same file:
>
> 260:    //m_skyMesh->draw( ks, psky, scale, IN_CONSTELL_BUF );
> 263:    //m_skyMesh->draw( ks, psky, scale, OBJ_NEAREST_BUF );
>
> Line 260 will cause green triangles to appear after you rightclick
> on the skymap showing the trixels used to find the constellation you
> clicked in.  Line 263 will show yellow triangles almost always under
> the cursor when the index is used to find the object closest to the
> cursor (which quickly becomes boring and annoying). I think you could
> fill the screen with triangles by changing the last parameter in one
> of these two calls to DRAW_BUF.

-- 
Jason Harris
jharris at 30doradus.org


More information about the Kstars-devel mailing list