Labels overlapping the Red Selection Cursor in 1.6.0pre

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Labels overlapping the Red Selection Cursor in 1.6.0pre

Post #1by t00fri » 05.01.2009, 23:45

Chris,

just in case you forgot, here is a reminder how things look without a rotation of the selection cursor by 45 degrees for galaxies and globulars

galaxy
ngc1003.jpg

globular
NGC6638.jpg


Fridger
Image

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Labels overlapping the Red Selection Cursor in 1.6.0pre

Post #2by chris » 06.01.2009, 00:13

Try changing this line in renderCrosshair (in render.cpp):

Code: Select all

        float theta = (float) i / (float) markCount * (float) (2 * PI);


to this:

Code: Select all

        float theta = (float) (PI / 4.0) + (float) i / (float) markCount * (float) (2 * PI);


Let me know your opinions. I think that it's an improvement--it doesn't just lessen label overlap, the 45 degree orientation also reduces obvious aliasing artifacts.

--Chris

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Re: Labels overlapping the Red Selection Cursor in 1.6.0pre

Post #3by t00fri » 06.01.2009, 01:08

chris wrote:Try changing this line in renderCrosshair (in render.cpp):

Code: Select all

        float theta = (float) i / (float) markCount * (float) (2 * PI);


to this:

Code: Select all

        float theta = (float) (PI / 4.0) + (float) i / (float) markCount * (float) (2 * PI);


Let me know your opinions. I think that it's an improvement

Aah! Good and simple. Doesn't look bad at all.

Incidentally, Stellarium also uses a similar selection cursor type with an inverted arrow quartett rotated by 45 degs. I have to "sleep one night" over the new looks. But so far it seems a clear improvement...

it doesn't just lessen label overlap, the 45 degree orientation also reduces obvious aliasing artifacts.

--Chris

Yes, we agree here, too..

Other opinions?

Fridger
Image


Return to “Bugs”