![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUnW0dqBl42MN_Yo_CA5qtknjVqBhxYx3ri353I3tSvkl_9JrgMBu6DebwHVNNtlptGF_IE6dELSB2ncqWGg1C4lcXMKxqDnNHqyTMHzhb6INVJtyK_PmqaU7Jxm0q6w8kJYRiyTj6PVo/s320/Screen+Shot+2012-08-05+at+11.33.45+PM.png)
Found out that my initial getting of coordinates of comet and Sun was wrong, and they needed to be projected onto the 2d screen from their Right Ascension/Declination coordinates. Now, finally, the coordinates are correct. I drew a line from comet to Sun so that it would be obvious where the coordinates are.
Another issue was getting the Sun's coordinates, because in Planet.cpp and Comet.cpp, to a comet, the Sun's coordinates would always be (0., 0., 0.), which on screen is at the bottom left. So I had to get the Sun from Stellarium's SolarSystem via GETSTELMODULE.
With this, I have to rewrite the plasmaTail() and dustTail() functions, but it should be fairly fast now that the bug I couldn't get rid off is out of the way.
Process:
No comments:
Post a Comment