Tuesday, 21 July 2009

And i give you .....

OSM rendering in Marble!

Oh yes, that's right! We now have full OSM rendering. It has been quite a struggle to get to this point but the hard work has really paid off. The results are just beautiful! I'm not just braging about my own code, because as it happens there is a lot of work to do to get the OSM rendering in a pretty way, but instead I'm talking about the experience of loading an OSM file. It looks marvellous! See the video below and notice how precise the positioning of the lines and nodes are with respect to the underlying OSM tiles ( I know this is obvious but it just looks so synchronised! ).

I don't know about you guys but seeing that map rendering, where the data has been collected and modified with a lot of hard work from a lot of people, really gives me a sense of grandeur. Fair play to all the people in Open Street Map, my hat is really off to you guys ;)



Link for those reading this on the planet.

Friday, 17 July 2009

Life Hacks Really Do Work!

Hey all!

As my friend John Layt suggest I'll give you a little recap on what I'm doing. My GSoC project is to implement a nice Open Street Map annotation framework to make the lives of all you mappers a little bit easier! More info can be found on my proposal blog post. The thing that has really been a challenge with this project was the fact that I'm adding support for a QGraphicsItem like API to marble. Little bit hairy at times but its good fun too! This has really come quite far in the last week and you can see quite an exciting example of this in the video below ( planet viewers have to come to my blog because the planet doesn't embed embedded youtube for some reason ).

Starting Monday I brought out a little "life hack" that I used quite a lot in my last year of college. Quit simple, very loosely based on the "Getting Things Done" idea and it can be really effective when you have something that doesn't have a strict system of "This must be done by this time" or "This must be done first". Maybe I might blog about it sometime ;)

With this new life hack in hand I have fixed two bugs, closed one bug, identified the cause of another bug, cleaned up most of my code, made the Marble plugin system more flexible, started implementing default base GeoGraphicsItem classes ( quite similar to the idea of QGrahpicsLineItem being a default implementation of QGraphicsItem ), fixed the problem with the GeoXmlParser that was preventing me from loading OSM files and made my little text editor a damn sight more pretty! Wow that was a mouthful!

Now with that all under my belt I announce this little clip of the results. As you all know a lot of the stuff I was doing is hidden from view, and also a lot of it is very much visible but just being done a different way but I think it looks pretty cool too ;)



(Link for people reading on the planet)

There are some very exciting things planned for the coming week ( and even just today ) so watch this space. I hope you all like my little updates, if any of you would like me to go into any more detail about anything just drop me a line ( comment or email ) and I'm sure I can accommodate you in some way!

Happy Coding!

Tuesday, 14 July 2009

Morning Blog on GeoGraphicsView

Hello again everyone!

I too am one of the lucky people that got the chance to go to Akademy ( or whatever we are calling it these days ) and it was a truly great experience. Apart from being fantastic craic ( its an Irish thing ;) ) I got a lot of work done, or at least a lot of work discussed, and I'm ready for the next phase of my project. The phase of awesomeness!! ... maybe I need to work on the name...

The main problem that I have been faced with is a pretty big one. We are currently implementing a Marble API that is as close to the QGraphicsView as possible ( see my last post for info ). I mentioned that a lot of the stuff has been done before but there were two problems with the current direction of things : 1) there was no real interaction framework or hit tests and 2) we were working with implicit sharing... which is a big NO for a QGraphicsView re-implementation.

Before a week ago I didn't even see this as a problem, but now that I've taken the role of a Guinea Pig implementer of this framework it has been shown in a new light. The problem was that somewhere during the implicit sharing and copying values from references there was an explicit downcast of all classes. This may not be a bad thing all of the time because we adopted a QVariant style system but for plugin developers this made things get very hairy. To make a long story short, if a plugin designer wanted to make a new weird and wacky GeoGraphicsItem they would have to directly edit the sources of the Marble Library to make this happen. Not Good.

So that's what I'm working on right now. If anyone feels like watching marble crash for the fun of it just check out the svn and enable my stuff ( the osmannotation plugin ) and let the fun begin! The joys of CMake and plugins have given me a great sandbox or more importantly kept my crazy code from all you nice people. Hopefully after all this all you third party developers will be able to make a really cool marble plugin with absolutely no effort, so watch this space!

Saturday, 20 June 2009

Update and Exciting Features

Right so I thought it was about time to give a bit of an update on what I have been working on so far for my GSoC project. I have done some really interesting stuff with a lot of ground yet to cover so I'll try to keep it brief ( and I hope to update you all more frequently ).

If you have a look at my last post you can see the big goals that I have created for myself, which is a definite positive as I believe you can never aim high enough! The first of these goals is what i called the Annotation Rendering Framework, which has proved to be a challenge. The Idea of the rendering framework was to provide similar functionality to the QGraphicsView, QGraphicsScene and QGraphicsItem classes in the Qt Gui Module. And believe me, thats a hard act to follow! The main feature from the Qt classes that I wanted to recreate is the ability to "Click and Drag" items around the interface of marble, which is made difficult by the fact that marble is not a 2D surface and hit tests get a little bit more complicated.

Thankfully I have the opportunity to stand on the shoulders of giants to get all of this working. The Marble developers have implemented a lot of the necessary functionality to get my stuff off the ground an its my job to extend this and integrate it all in a useful way. So without further ado I have a small video to present you with showing a little bit of my work.



The next step is to get nice little pop-up showing the details of each annotation, be it text, video or audio. This hopefully shouldn't take very long as I have already done a few experiments to do with Geo-Located QWidgets so watch this space!