At Tuesday 12/12/2006 16:53 -0800, savi-users-owner@... wrote:
>I wish to change the colour and thickness of the lines along which the
>satellites orbit in the 3D view. I was unable to find the constants or
>lines where these were set. Is this feasible for someone unfamiliar with
>the code base or the tcl language?
>If it is feasible, could anyone provide me with some pointers. I wish to
>have each orbit of the GPS constellation drawn in a different colour.
look at the code in orbits.c::orbit_display(). Line 172 or so:
/* These four numbers specify the color (RGBA). */
gv_send("1 1 0 1} })\n");
gv_send("1 0 0 1} })\n");
Each colour is range 0.0 (black) to 1.0 (white). The above outputs yellow (red+green) if the satellite is selected (tagged) by the user, otherwise it outputs just red.
Computing unique colours based on the unique s->id number of each satellite should be straightforward -- or you could just randomly compute three numbers from 0.0 to 1.0 and output those instead.
Many of the constellation scripts where satellites share a plane turn off orbit drawing for all but one satellite in each plane to speed up rendering.
I'd be interested in seeing a diff patch of any changes you make.
SaVi satellite constellation visualisation: http://savi.sf.net/
Get latest updates about Open Source Projects, Conferences and News.