Dear all, the last days I had some time to continue working on atmosphere refraction using formulas and based on a branch coded by Georg and I think the code is now ready for merging. After merging this branch to trunk, atmospheric refraction will be automatically activated when atmosphere is activated. The refraction code was integrated deep into the projection code, allowing to apply the effect to everything, i.e. not only stars but also planets models etc.. This required deep changes in the core, including merging StelCore and StelNavigator classes in order to cleanly support non linear model view transformations (Matrix are not enough anymore). A lot of code has been broken but I repaired the plugins. In order to fix code break in your branches, you usually only have to get rid of any reference to StelNavigator. All the methods from this class are now accessible from StelCore instead.
Please note that supporting refraction created some additional difficulties when using altazimutal reference frame (or converting from/to it): you now have to choose if you want to use the geometric altaz frame (i.e. the one without atmosphere) or the apparent one (after diffraction effect applied). This happens e.g. in StelCore::altAzToJ2000(..). The one to use is generally case dependent. If you don't define it, StelCore will use an automatic value, which is ON if atmosphere is activated, OFF otherwise. I am quite excited because I believe this is a major feature for Stellarium: it will improve astrometric precision (e.g. for telescope users), it is very educative and fun to see the effect when toggling atmosphere, and I don't know any astronomy program who can actually render an oval sunset/moon etc :) I am waiting for your feedbacks to merge! Cheers, Fabien ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Stellarium-pubdevel mailing list Stellarium-pubdevel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel