Matthieu LABAN
.NET, My Life, Flight Simulation and Real Flight...

 
About Me :
25 Years old developer and aviation
enthusiast living in Santa Clara, California.
View Matthieu Laban's profile on LinkedIn 
Contact me at :
mlaban at gmail dot com


Photo & Video Galleries:
- Gallery List
- Flight Videos
Resume :
e-mail me to get my latest résumé
Golden Gate Bridge in Flight Simulator Project 

Imported from Google 3D Warehouse. Looks sweet!

Cirrus SR22 Back to FSP! 

I brought the Cirrus back to life in FSP... Some pics before I go to bed :)

Enjoy!

New Phone, and new GPS Tracker 

I finally replaced my old HTC Wizard with a brand new HTC TyTN2. Nice device, fast connection, nice form factor, and GPS!
I talked about my GPS Tracker a little while ago in this blog. It’s an application that uses a GPS connected to a Windows Mobile PDA to log the positions in three dimensions and export it to a Google Earth KML file.
Before I got the TyTNII, I was using an external Bluetooth GPS (GPSlim 236) which is kind of an inconvenience as there was always two devices to keep charged and I had to carry both of them at the same time.
The TyTN II, coming with a GPS, gave me a new idea… An application that would log my every single movement on earth and that would send the data on my website.
Well, not all the data, I’m not an convict on probation with a tracking device on my ankle ;)
I would just send four items: the top speed of the day, the maximum and minimum altitude and the total distance. Doesn’t tell much, but I find it fun to know :)

I updated the code to enable permanent tracking, and the basic functionality was done yesterday night. I ran a few tests while going out for groceries, and everything worked fine. One problem though, when it was in my pocket, it didn’t work, even outside! Which didn’t make sense since it was working even inside my apartment.

Anyway, what better way is there to find out if the program really works, than go out for a little flight?
To make sure, I headed to Palo Alto airport for a test flight in a Citabria. I carefully started the old and the new phone with their tracking programs, and took off. Today was really crowded at Palo Alto. I thought with the not so good weather that people would have stayed home, but apparently, they did not…
A few of touch and goes later, I returned back to the parking… to find out that the tracker on the TyTNII had not logged one single thing!!!

Oh well, I had fun flying… too bad this didn’t work…
I eventually figured out that the problem was when the device was on stand by… it used to work on the Wizard, even when on stand by, the tracker was still logging…
For a while, I thought that the internal GPS was turned off when on stand by, but further tests revealed that it was indeed still on (Queried the device power state to make sure).
I figured it might be because the UI is stalled when the device is on stand by, and since I was relying on a Windows Timer, the events were probably not dispatched.

After moving the data reading and track writing to a thread, everything worked as expected!
It’s been running for the past hours and aside from the heavy battery drainage, nothing to complain about.
So, here are the features:

- Automatic Daily Tracking
- Automatic Start/Stop of tracking when moving / stopping
- Automatic upload of the file to a web service on White-clouds.org :-P
- Export to Google Earth KML file
- Email sent for every Google Earth export
- GPS Signal Quality Icon
- Battery Level Icon

Features to add:
- Establish schemes to save battery
o Figure out the location where nothing even happens and reduce the polling frequency. (Home, work…)
o Reduce poll frequency when the GPS position hasn’t changed for the past 5 minutes or so.
o Increase poll frequency when the GPS starts moving again…

That’ll be for another day…

Meanwhile, to make up for the cloudy pictures of today, here's a slideshow from last week's flight.

Atmospheric Scattering... Almost done :) 

Lots of progress on the atmospheric scattering front... I've got most of it working and I reworked the 3D texture to look more realistic during sunsets... I think the result looks good... at least good enough...

Notice that the higher the aircraft, the sharper the separation between the haze on the sky is...

I had some issues this week with MRT and multisample... but it's mostly sorted out, thanks to DX debug runtime and DBGView...

Looking at the website stats, I get a lot more visits than comments, so do not hesitate to drop me a line to let me know what you think about FSP, I would really appreciate it! Thanks! :)

Atmospheric Scattering in FSP 

I finally integrated the Atmospheric Scattering model in FSP and it looks sweet!

From Flight Simula...

One video below. I'm using the SoapBox version of it... I hate how youtube reduces my videos to a bunch of compressed pixels... I mean come on... what's up with the video quality YouTube??? It's 2007!


Video: Atmospheric Scattering in Flight Simulator Project 

 

The algorithm used is the same as the previous one, except that it now uses a 3D texture instead of multiple individual textures. It makes it much easier to interpolate between textures.

I also added real sun position and a notion of time to FSP...

Alright, 2am... off to bed :)

 

Flight Simulator Progress... 

Some progress on the FSP front... The new Earth system is now fully integrated to the FSP Core. I ran into the usual floating point precition problems as the earth model is horribly huge... but it's all sorted out now.

I uploaded pictures on my picasa account.

And a Video on SoapBox


Video: Landing at Palo Alto (KPAO) in Flight Simulator Project
 
Next step is adding my atmospheric scattering effect in the game... This should look sweeeeeet :)

Note that the FX Composer 2 video features this effect :) (First few seconds...)