Re: [guide-user] strange HORIZON.DAT

Bill J Gray Jan 28, 2004

Hi Bernd,

Hmmm... a few comments:

To get the color right, change

f 112 30 10 0

to

f112 30 10 0

I hadn't tested out fills with more than a hundred points before.
Turns out Guide reads the color of your current example as "2 30 10"
(ignoring the final 0) rather than the intended "30 10 0".

But a more basic problem is that you've got a fill that goes all
the way around the sky, so to speak, right through a mathematical
singularity at the point opposite the screen center. Depending on
what projection you've selected in Settings... Projection, this
will cause some sort of display error. In the (default) stereographic
projection, for example, the point opposite the screen center,
at the "antipodes", projects to undefined points infinitely far away.

There are a couple of ways of getting around this. One would be
to break up the whole shape into several shapes, each covering
(say) 45 degrees in azimuth. When Guide gets to the shape that is
"behind" you (or at all off-screen), it simply doesn't draw it,
so there is no display error associated with it.

The other way, which I'd recommend, is to use Guide's ability
to show an "horizon" in the manner described at

http://www.projectpluto.com/update7c.htm#easier_horizon

If you set your "home planet" to be the Moon, you can see an
example of this (and you can see how it's done by looking at the
file 'horizo10.dat'). In your situation, I'd create two such
horizons, one at positive altitudes and another at an altitude
of -20 degrees.

I've revised your 'horizon.dat' file accordingly. You'll see
that this basically involved replacing a 'fill' command with some
'hor' commands. I made the -20 piece of a slightly different
shade, just enough so one can tell it's not quite the same.

-- Bill

; HORIZON.DAT -- Definition file for objects on the horizon for Sternwarte
Herne, 2004/01/03
; after trees in south western direction were cut
;
; See end of file for description
;
hor 30 10 0
0 50
12 50
12 10
24 10
25 8
32 8
32 26
34 26
34 12
60 13
67 8
78 9
80 15
103 9
103 6
105 8
108 10
112 11
115 7
118 6
120 9
125 3
130 4
140 3
143 5
145 2
154 2
154 4
155 4
155 2
160 2
160 5
185 5
190 7
200 5
205 6
212 9
218 6
224 6
224 10
230 11
235 8
238 5
240 8
250 7
252 7
257 15
261 19
267 16
270 12
280 12
284 8
285 16
290 13
291 26
300 27
304 25
305 36
306 22
310 25
320 10
333 10
340 15
350 12
351 15
354 19
354 9
359 9
359 50
0 50
hend
hor 35 5 5
0 -20
10 -20
20 -20
30 -20
40 -20
50 -20
60 -20
70 -20
80 -20
90 -20
100 -20
110 -20
120 -20
130 -20
140 -20
150 -20
160 -20
170 -20
180 -20
190 -20
200 -20
210 -20
220 -20
230 -20
240 -20
250 -20
260 -20
270 -20
280 -20
290 -20
300 -20
310 -20
320 -20
330 -20
340 -20
350 -20
360 -20
0 -20
hend
end