<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5451252864018428770</id><updated>2011-12-07T15:16:08.218+01:00</updated><category term='astronomy'/><category term='ESO'/><category term='stellarium'/><title type='text'>Fabien Chéreau's blog</title><subtitle type='html'>Stuff about programming, Stellarium and myself.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-6284821139743235270</id><published>2011-07-22T12:14:00.000+02:00</published><updated>2011-07-22T12:14:15.007+02:00</updated><title type='text'>Stellarium in SOCIS 2011</title><content type='html'>Are you a student looking for an exciting summer job? Get paid this summer to work on Stellarium!&lt;br /&gt;&lt;br /&gt;The Stellarium project was selected to be a mentoring organization for the ESA Summer of Code in Space 2011: a program funding european students for working on astronomy open source projects. Please review our ideas page and submit your application &lt;a href="http://sophia.estec.esa.int/socis2011/?q=node/13"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The stipend consist in 4000 EUR (upon project completion), and is available for students from European universities (see &lt;a href="http://sophia.estec.esa.int/socis2011/?q=tos"&gt;this page&lt;/a&gt; for more details).&lt;br /&gt;&lt;br /&gt;Hurry up! The application deadline is on July 27th at 11am UTC&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-6284821139743235270?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/6284821139743235270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/07/stellarium-in-socis-2011.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/6284821139743235270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/6284821139743235270'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/07/stellarium-in-socis-2011.html' title='Stellarium in SOCIS 2011'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-8324443683804986587</id><published>2011-06-15T16:19:00.001+02:00</published><updated>2011-06-17T11:25:54.331+02:00</updated><title type='text'>Atmospheric refraction in Stellarium</title><content type='html'>&lt;div&gt;The full moon eclipse coming "over bavaria" tonight (as said in the bavarian newpapers :) ) is a good occasion to show off the new atmospheric refraction code I finally had time to commit in stellarium (with important contributions from Georg Zotti).&lt;br /&gt;&lt;br /&gt;The &lt;a href="http://en.wikipedia.org/wiki/Atmospheric_refraction"&gt;atmospheric refraction&lt;/a&gt; effect is a small deviation of light rays when they go through the atmosphere. It causes stars to appear higher in the sky than they are in reality, and this effect is mostly visible close to the horizon.&lt;br /&gt;&lt;br /&gt;Luckily for the purpose of this post, today's moon eclipse is occuring very close to the horizon (in Munich) as you can see on this screenshot:&lt;br /&gt;&lt;br /&gt;&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-CZwuZtJ7Yhs/Tfi4qSGWcAI/AAAAAAAACsM/8npwrr-e9XU/s1600/refraction1.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-CZwuZtJ7Yhs/Tfi4qSGWcAI/AAAAAAAACsM/8npwrr-e9XU/s400/refraction1.png" width="393" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Moon eclipse simulated in Stellarium with atmosphere and refraction effect turned off (left) and on (right), at precisely the same time&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;What we can see in this image that:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;the moon on the right appears higher in the sky as it would without atmosphere. This means that on the right side (and in reality) we are actually seeing light originally coming from below the ground! This also mean that the apparent rising time for stars, sun and other astronomical objects is shifted by about a minute with respect to the geometric position.&lt;/li&gt;&lt;li&gt;the moon on the right doesn't have the shape of a disk but rather of an oval. This is because close to the horizon the light is 'compressed' vertically because of refraction.&lt;/li&gt;&lt;/ul&gt;This refraction effect is much smaller further away from the horizon but still cannot be neglected when e.g. pointing a telescope. The blinking image below show what happens when atmosphere refraction is toggled on and off on a star field.&lt;br /&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-fkaCrc_KVlQ/Tfi7sXJ83GI/AAAAAAAACsQ/zLWbFSwF6Fc/s1600/refraction.gif" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-fkaCrc_KVlQ/Tfi7sXJ83GI/AAAAAAAACsQ/zLWbFSwF6Fc/s320/refraction.gif" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Click on the image to see a larger animated version&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;As you can imagine, this new feature was quite challenging to integrate cleanly in the code of Stellarium, and as far as I know, Stellarium is currently the only software able to simulate oval moons, and it does that in real time :)&lt;br /&gt;&lt;br /&gt;To keep things short, the technical details will be the subject of another post.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-8324443683804986587?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/8324443683804986587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/06/atmospheric-refraction-in-stellarium.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8324443683804986587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8324443683804986587'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/06/atmospheric-refraction-in-stellarium.html' title='Atmospheric refraction in Stellarium'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-CZwuZtJ7Yhs/Tfi4qSGWcAI/AAAAAAAACsM/8npwrr-e9XU/s72-c/refraction1.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-5528998985186568761</id><published>2011-05-05T17:51:00.001+02:00</published><updated>2011-05-05T18:11:29.667+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stellarium'/><category scheme='http://www.blogger.com/atom/ns#' term='ESO'/><category scheme='http://www.blogger.com/atom/ns#' term='astronomy'/><title type='text'>SVMT plugin for Stellarium</title><content type='html'>If you have been wondering what &lt;a href="http://dmarcos.es/"&gt;Diego&lt;/a&gt; and myself worked on for more than a year at &lt;a href="http://www.eso.org"&gt;ESO&lt;/a&gt;, here is a quick video answer realized by Diego: &lt;br /&gt;&lt;br /&gt;&lt;iframe width="560" height="349" src="http://www.youtube.com/embed/COkwscvTnnM" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;And here is another video focusing on the GUI:&lt;br /&gt;&lt;br /&gt;&lt;iframe width="560" height="349" src="http://www.youtube.com/embed/xYmcpB794DM" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;Seeing the videos, you may now think: it looks cool, but what the hell is that?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is SVMT?&lt;/b&gt;&lt;br /&gt;SVMT standing for "Survey Visualization and Monitoring Tool" is a plugin for Stellarium which allows astronomers at ESO to monitor the progression and completion of &lt;a href="http://www.eso.org/sci/observing/policies/PublicSurveys/sciencePublicSurveys.html"&gt;large sky surveys&lt;/a&gt; (realized by telescopes in Chile). &lt;br /&gt;&lt;br /&gt;The main Stellarium screen (on the left) is used to display shapes in the sky representing the locations where pictures were taken by the telescopes. A special GUI allows to specify a set of contraints defining which data set we are interested in (by default all the data is displayed, yes that's millions of stuff!). For example, a typical query is "show me only the images taken by telescope X for survey Y between date d1 and d2". The results is then displayed graphically and some more contraints can be added in the GUI to continue refining the query.&lt;br /&gt;&lt;br /&gt;There is also the possibility of comparing the result of several queries using a system of layers: one layer per query, and each layer has a different color. This allows to answer some questions such as "What is the percentage of completion of this survey in area?".&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How does it works?&lt;/b&gt;&lt;br /&gt;Technically, the whole GUI part (on the right) was coded in &lt;a href="http://doc.qt.nokia.com/4.7/qdeclarativeintroduction.html"&gt;QML&lt;/a&gt; and is actually hosted on the server and downloaded by the client at startup. The queries themselves are computed on the server side and the result are returned as JSON files and displayed graphically on the sky and in the GUI.&lt;br /&gt;&lt;br /&gt;One of the most challenging piece of code done for this project is a library for computing the intersection and union of spherical polygons. As far as I know Stellarium's code contains the only &lt;a href="http://en.wikipedia.org/wiki/Spherical_geometry"&gt;spherical geometry&lt;/a&gt; library capable of managing spherical polygons which are non-convex (i.e. with holes or strange shapes) and potentially larger than 180° (i.e. larger than a half sphere). It is on my TODO list to write another post about that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What's next?&lt;/b&gt;&lt;br /&gt;Now that me and Diego left ESO, there is currently no maintainer for SVMT. However, the code is entirely open source (GPL license) and its design was done keeping in mind that it should be re-used for other data sets. Please contact me if you have any interest of &lt;a href="http://svmtdemo.hq.eso.org/1.0.1/doc/tuning.html"&gt;re-using the code for other purpose&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;For more info&lt;/b&gt;&lt;br /&gt;Try a &lt;a href="http://svmtdemo.hq.eso.org/"&gt;demo version&lt;/a&gt; (with public data sets only)&lt;br /&gt;See the project &lt;a href="http://launchpad.net/svmt"&gt;Launchpad page&lt;/a&gt;.&lt;br /&gt;Have a look at the &lt;a href="http://svmtdemo.hq.eso.org/1.0.1/doc/"&gt;Developers Documentation&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-5528998985186568761?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/5528998985186568761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/05/svmt-plugin-for-stellarium.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5528998985186568761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5528998985186568761'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/05/svmt-plugin-for-stellarium.html' title='SVMT plugin for Stellarium'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://img.youtube.com/vi/COkwscvTnnM/default.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-8158484483751987031</id><published>2011-05-05T15:04:00.000+02:00</published><updated>2011-05-05T15:04:53.012+02:00</updated><title type='text'>Looking for a job</title><content type='html'>After spending some months playing with small personal projects, it's now time for me to look for a proper job! For those interested, I just updated my CV [&lt;a href="http://chereau.free.fr/job/cvfab.html"&gt;html&lt;/a&gt;|&lt;a href="http://chereau.free.fr/job/cv-chereau-fabien.pdf"&gt;pdf&lt;/a&gt;]. &lt;br /&gt;&lt;br /&gt;Note that I am also available for specific consulting regarding Stellarium or other programming tasks!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-8158484483751987031?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/8158484483751987031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/05/looking-for-job.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8158484483751987031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8158484483751987031'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/05/looking-for-job.html' title='Looking for a job'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-5366561956877832117</id><published>2011-04-15T14:33:00.002+02:00</published><updated>2011-05-02T15:17:11.905+02:00</updated><title type='text'>RetroCosmos ported to Android</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-N3jCgYspVGs/Tag6ojQ8vdI/AAAAAAAACqA/Q6lb6aB54r4/s1600/promoGraphics.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-N3jCgYspVGs/Tag6ojQ8vdI/AAAAAAAACqA/Q6lb6aB54r4/s1600/promoGraphics.png" /&gt;&lt;/a&gt;&lt;/div&gt;I finally finished to port my new game RetroCosmos to Android! In adition to the standard space invaders features of the Symbian version, the android version features cool vintage sounds I made with my old analog synthesizer (Roland SH-101) as well as a techno music background (also composed by myself!).&lt;br /&gt;&lt;br /&gt;For those who don't own a compatible phone, I just uploaded a youtube video: &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://i.ytimg.com/vi/erMJGcqaR7k/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/erMJGcqaR7k?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266" src="http://www.youtube.com/v/erMJGcqaR7k?f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;On the development side, it was quite fun to use Java again after some years of Qt/C++ and I was quite impressed by the Android SDK, even though Eclipse feels like a regression after using QtCreator for years.&lt;br /&gt;&lt;br /&gt;The game is now available &lt;a href="https://market.android.com/details?id=com.noctuasoftware.retrocosmos2"&gt;for free on the Android Market&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Follow this link for more info on &lt;a href="http://www.noctua-software.com/retrocosmos"&gt;retrocosmos space invaders&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Have fun!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-5366561956877832117?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/5366561956877832117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/04/retrocosmos-ported-to-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5366561956877832117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5366561956877832117'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/04/retrocosmos-ported-to-android.html' title='RetroCosmos ported to Android'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-N3jCgYspVGs/Tag6ojQ8vdI/AAAAAAAACqA/Q6lb6aB54r4/s72-c/promoGraphics.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-2146527450797470571</id><published>2011-03-25T11:03:00.000+01:00</published><updated>2011-03-25T11:03:25.331+01:00</updated><title type='text'>RetroCosmos on OVI Store</title><content type='html'>In the last months I spent some days on creating a little video game called RetroCosmos with the aim of submitting it to the new &lt;a href="http://www.callingallinnovators.com/10M/"&gt;Calling All Innovators&lt;/a&gt; contest. I coded it using Qt 4.6 and made it run on Symbian. It's now &lt;a href="http://store.ovi.com/content/105285"&gt;available (for free) on the OVI store&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It doesn't use any fancy technology but I really tried hard to make it enjoyable to play, and I am quite satisfied with the result :)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-jGqtiWR-wx4/TYxoSSTw37I/AAAAAAAACp0/_N_srxa0Fh8/s1600/screenshot.png" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"&gt;&lt;img border="0" height="200" width="200" src="http://4.bp.blogspot.com/-jGqtiWR-wx4/TYxoSSTw37I/AAAAAAAACp0/_N_srxa0Fh8/s200/screenshot.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-2146527450797470571?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/2146527450797470571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/03/retrocosmos-on-ovi-store.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/2146527450797470571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/2146527450797470571'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/03/retrocosmos-on-ovi-store.html' title='RetroCosmos on OVI Store'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-jGqtiWR-wx4/TYxoSSTw37I/AAAAAAAACp0/_N_srxa0Fh8/s72-c/screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-5884795790744209809</id><published>2011-02-13T15:16:00.000+01:00</published><updated>2011-02-13T15:16:16.466+01:00</updated><title type='text'>Management disaster..</title><content type='html'>The news that Nokia is going to use Microsoft OS as its primary developement plateform really makes me sad. As many other developers I feel betrayed, after having spent so much time learning to develop apps for Maemo/Symbian based on Qt.&lt;br /&gt;When I now think about the last 2 years it was pretty obvious that we, developers, couldn't really trust Nokia strategy. I started to get involved with Maemo 5 when I decided to port Stellarium to the N900 after Nokia bought Trolltech. Since then Nokia changed many time its strategy toward apps developers:&lt;br /&gt;&lt;br /&gt; - 2009: Maemo5 and N900 were presented as developers tools. Developers should naturally continue developing the app afterward on Maemo6 which was then annouced as the future of smart phone at Nokia.&lt;br /&gt; - However already at this time, different hints made us understand that finally Nokia will also keep using Symbian for smart phones as well.&lt;br /&gt; - February 2010: Nokia starts MeeGO with Intel and we learnt that "the MeeGo announcement will not affect the Maemo 6 rollout schedule".&lt;br /&gt; - Later we hear "Maemo 6 will be completely compatible with MeeGo, and according to Ari Jaaksi, we even can consider Maemo 6 already a MeeGo instance"&lt;br /&gt; - Finally Maemo6/Harmattan never came, and we learnt that the first MeeGO release will in fact be renamed MeeGo/Harmattan (although both OSes are quite different).&lt;br /&gt; - September 2010: at this point it seems that Nokia refocused again its whole strategy toward Symbian with devices like the N8 (launch of the Calling all Innovators contest for this device only with AT&amp;T in North America).&lt;br /&gt; - November 2011: a bit unrelated but still insightful about the consistency of the Nokia management: we learn that "Nokia is partnering with Yahoo! to power and improve your Ovi Chat experience in the coming months"&lt;br /&gt; - Feb 2011: Now that it finally becomes reasonably easy to develop for Symbian/Maemo/MeeGO using Qt and QtCreator and that developers like me start to feel hope, Nokia decides to move to Microsoft and it's SDK.&lt;br /&gt;&lt;br /&gt;So much strategy changes in the last year! Now let's try to extrapolate a bit this story:&lt;br /&gt; - it is easy to see that the switch to MS SDK and OS will also take at least a year. At the same time Nokia will still support Symbian, Maemo and a new MeeGO device (although I am not sure I should trust Nokia when they claim it's coming).&lt;br /&gt; - I can't prevent thinking that during this Nth transition Nokia is going to continue doing so bad. Share holders will be angry and will ask for more blood, and Nokia will again change its strategy. Maybe move to Android?&lt;br /&gt;&lt;br /&gt;At the end, the loosers in this are definitely Nokia R&amp;D and Trolltech employees. As well as all the open source community using Qt.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-5884795790744209809?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/5884795790744209809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/02/management-disaster.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5884795790744209809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/5884795790744209809'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/02/management-disaster.html' title='Management disaster..'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-745899607339290470</id><published>2011-02-08T13:24:00.003+01:00</published><updated>2011-02-28T21:41:21.858+01:00</updated><title type='text'>Chatocracy opens</title><content type='html'>&lt;a href="http://www.chatocracy.com"&gt;Chatocracy&lt;/a&gt; is my new website which allows people to &lt;a href="http://www.chatocracy.com"&gt;find new friends or talk to strangers on the webcam&lt;/a&gt;. We tried to make it simple and funny: also, after each conversation you can rate the person you have been talking to; the better ranking you get, the more people you can talk to.&lt;br /&gt;&lt;br /&gt;My brother and me have been working on this for the last few weeks. Propagate the word! It is still beta so if you encounter problems please report it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-745899607339290470?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/745899607339290470/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2011/02/chatocracy-is-website-that-allows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/745899607339290470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/745899607339290470'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2011/02/chatocracy-is-website-that-allows.html' title='Chatocracy opens'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-1333856179953580745</id><published>2010-06-02T17:28:00.003+02:00</published><updated>2010-06-02T17:32:02.809+02:00</updated><title type='text'>Stellarium 0.10.5 finally released</title><content type='html'>It was quite painful, but finally we managed to do it: &lt;a href="http://www.stellarium.org"&gt;www.stellarium.org&lt;/a&gt;. Excepted many awful font display issues caused apparently by Qt, this release should be one of the most stable ever :)&lt;br /&gt;&lt;br /&gt;PS: I will post more interesting things in the next days here, so keep up to date!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-1333856179953580745?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/1333856179953580745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2010/06/stellarium-0105-finally-released.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/1333856179953580745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/1333856179953580745'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2010/06/stellarium-0105-finally-released.html' title='Stellarium 0.10.5 finally released'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-8838503725120864378</id><published>2009-05-01T18:21:00.005+02:00</published><updated>2009-07-06T11:38:59.160+02:00</updated><title type='text'>Spherical geometry optimisations</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_JaQP_ymPNbo/Sfsj3nP4MCI/AAAAAAAACg0/dTVCtckWO10/s1600-h/sphericalCap.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 196px;" src="http://4.bp.blogspot.com/_JaQP_ymPNbo/Sfsj3nP4MCI/AAAAAAAACg0/dTVCtckWO10/s200/sphericalCap.png" alt="" id="BLOGGER_PHOTO_ID_5330894022258470946" border="0" /&gt;&lt;/a&gt;I am currently working on recoding proper classes for managing spherical geometry primitives in Stellarium. One of the most used primitive is the so called spherical cap showed in the figure. A spherical cap (sometimes called half space) is a disk-like region of the sphere defined by a direction unit vector &lt;span style="font-weight: bold;"&gt;n&lt;/span&gt; and an aperture angle ⍺.&lt;br /&gt;&lt;br /&gt;The most common operation that we want to perform on a spherical cap is to check if a point A of the sphere lies inside the cap. This is pretty easy to do by checking whether the dot product &lt;span style="font-weight: bold;"&gt;n&lt;/span&gt;&amp;#183;&lt;span style="font-weight: bold;"&gt;OA&lt;/span&gt; is smaller than cos(⍺).&lt;br /&gt;&lt;br /&gt;The C++ code below implements this. Note that to avoid computing a CPU expensive cosine each time we perform the &lt;span style="font-family:courier new;"&gt;contains&lt;/span&gt; operation, we pre-compute cos(⍺) and store it as a class member d.&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"&gt;class SphericalCap&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bool contains(const Vec3d &amp;v) const {return (v*n&gt;=d);}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Vec3d n;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;double d;&lt;br /&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another useful operation we want to perform often is to check whether two spherical caps with direction vectors &lt;span style="font-weight: bold;"&gt;n1&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;n2&lt;/span&gt; and aperture ⍺1 and ⍺2 intersect. The st&lt;span style="font-family:georgia;"&gt;raightforward implementation is to compute the angle θ between &lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;n1&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; and &lt;/span&gt;&lt;span style="font-weight: bold;font-family:georgia;" &gt;n2&lt;/span&gt;&lt;span style="font-family:georgia;"&gt; and check wh&lt;/span&gt;ether it is smaller than ⍺1 + ⍺2.&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;bool intersects(const SphericalCap&amp;amp; other) const&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const double theta = n.angle(other.n);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return theta &amp;#60; acos(d) + acos(other.d);&lt;br /&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately, because we store only the cosine of ⍺1 and ⍺2, this solution involves 2 calls to the acos function, plus 1 call to the angle() function which itself involves 1 acos and 1 sqrt. Needless to say that it's not lightning fast..&lt;br /&gt;&lt;br /&gt;After some thoughts I finally came up with a solution involving only basic arithmetics: &lt;br&gt;&lt;br /&gt;First, in the case ⍺1+⍺2 &gt;= 180°, (i.e. if d1+d2&amp;#60;=0) the 2 caps necessarily intersect so we don't need to think further. Let's now treat the other cases:&lt;br /&gt;&lt;br /&gt;The 2 caps intersect only and only if:&lt;br /&gt;&lt;br /&gt;θ &amp;#60;= ⍺1+⍺2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(1)&lt;br /&gt;&lt;br /&gt;Because both members of (1) are &amp;#60; 180° (the angle θ between &lt;b&gt;n1&lt;/b&gt; and &lt;b&gt;n2&lt;/b&gt; can obviously not be &gt; 180°), we can transform (1) into:&lt;br /&gt;&lt;br /&gt;cos (θ) &gt;= cos(⍺1+⍺2)&lt;br /&gt;&lt;br /&gt;which with basic trigo can be transformed into:&lt;br /&gt;&lt;br /&gt;L &amp;#60;= sin ⍺1 sin ⍺2 , with L = cos ⍺1 cos ⍺2 - cos θ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(2)&lt;br /&gt;&lt;br /&gt;In our case L is known and given by d1*d2-&lt;b&gt;n1&amp;#183;n2&lt;/b&gt;. Because ⍺1 and ⍺2 are bounded between 0° and 180°, sin ⍺1 sin ⍺2 is bounded between 0 and 1. Therefore if L&amp;#60;=0, (2) is verified and the 2 caps intersect. Similarily, if L&gt;1, (2) is not verified and the 2 caps don't intersect. In the last case where 0&amp;#60;L&amp;#60;=1 we can transform (2) into:&lt;br /&gt;&lt;br /&gt;L² &amp;#60;= sin²⍺1 sin²⍺2&lt;br /&gt;&lt;br /&gt;which with basic trigo formulae can be transformed into:&lt;br /&gt;&lt;br /&gt;L² &amp;#60;= (1-cos²⍺1)(1-cos²⍺2) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(3)&lt;br /&gt;&lt;br /&gt;In our case cos²⍺1 and cos²⍺2 are know and given by d1² and d2² so we can easily check that (3) is verified or not.&lt;br /&gt;&lt;br /&gt;We thus have a solution to each cases, and none of them involve any CPU expensive operation!! In C++ code, this reasoning translates into:&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:courier new;font-size:85%;"  &gt;bool intersects(const SphericalCap&amp; other) const&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;const double L = d*other.d - n*other.n;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return d+other.d&lt;=0. || L&lt;=0. || (L&lt;=1. &amp;&amp; L*L &lt;= (1.-d*d)*(1.-other.d*other.d));&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-8838503725120864378?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/8838503725120864378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2009/05/spherical-geometry-optimisations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8838503725120864378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/8838503725120864378'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2009/05/spherical-geometry-optimisations.html' title='Spherical geometry optimisations'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_JaQP_ymPNbo/Sfsj3nP4MCI/AAAAAAAACg0/dTVCtckWO10/s72-c/sphericalCap.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5451252864018428770.post-2259089777456275876</id><published>2009-05-01T16:08:00.000+02:00</published><updated>2009-05-01T16:23:57.485+02:00</updated><title type='text'>First post!</title><content type='html'>Et hop!&lt;br /&gt;I finally open a blog. In this blog I will post whatever I feel like writing, but I guess the main subjects will be technical about my project &lt;a href="http://www.stellarium.org/"&gt;Stellarium&lt;/a&gt;.&lt;br /&gt;Actually the idea of creating a blog was suggested by a friend after I proudly explained to him how I optimized a small spherical geometry method in Stellarium.. So I guess with topic will be my first real post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5451252864018428770-2259089777456275876?l=f4bien.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://f4bien.blogspot.com/feeds/2259089777456275876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://f4bien.blogspot.com/2009/05/first-post.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/2259089777456275876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5451252864018428770/posts/default/2259089777456275876'/><link rel='alternate' type='text/html' href='http://f4bien.blogspot.com/2009/05/first-post.html' title='First post!'/><author><name>Fab1</name><uri>http://www.blogger.com/profile/01463177955419672228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/-PkennR0vOrs/TcLIMrXH0YI/AAAAAAAACqo/uG93cJk-QdI/s220/moi.jpeg'/></author><thr:total>3</thr:total></entry></feed>
