![]() |
StarSplatter Tests 2 - Constellations
|
![]() |
First, I excised the two Tcl scripts into files separate from the main viz routine. One needs to use a line like
set auto_path [linsert $auto_path 0 /home/summers/viz/starsplatter/lib]to search a library of routines for unresolved procedure calls.
The procedure that needed refining is "calc_den_and_sl.tcl" and it was the subject of many tests. The most telling of all is a test that creates stars of increasing magnitudes. A sequence of stars is created with adjacent ones differing by one magnitude. Various rows are created with the stars at different distances in each row, but same apparent magnitude. Hence, we check how magnitudes compare against each other, and ensure that it is independent of distance. The script for the test, mag_test.tcl The results of the test, after tweaking, mag_test.jpg (23 kb) The resulting Tcl scripts. These were optimized for a high contrast starfield -- the brightest stars jump out more than they do in reality. This simulates the view that most people, living in light polluted urban or suburban areas have. I would optimize the parameters a little differently if I were trying to purely simulate reality. get_pixel_scale.tcl calc_den_and_sl.tcl