Continuous Learner #5


Discovering Windows Phone 7 #3 – Displaying a 3D Model with XNA

image Following the example on msdn ( I created a Phone Application with XNA that display a rotating 3D ship.

This took me about 10 seconds, and it was pretty easy to do, but what about creating my own 3D model? Looks like XNA support just Autodesk FBX as 3D model (let me know if I’m wrong), and the simplest tool I know to design 3D objects, Google SketchUp ( does not support it. I binged on google and googled on bing, but I could not find a free software to convert COLLADA .dae files (the only format you can export to using the free SketchUp) to Autodesk .fbx.

There should be a free FBX Converter tool ( but I could not find the correct link to download it.

In the end, I installed Google SketchUp Pro 7 Beta, created my model and converted into a nice and supported fbx file.

You can download the project from here ( and see a screenshot of SketchUp and my phone app below.


Discovering Windows Phone 7 #2 – The AccelerometerSensor

Microsoft.Devices.Sensors.Sensor.AccelerometerSensor implement is a physic device that measure force applied on the 3 axes of your device over time.


As explained here, if the device is sitting on the desk with the screen upside, the force will be –1 gravity on Z, if it’s sitting in portrait orientation the force will be –1G on Y, if it’s sitting in Landscape mode the force will be –1 on X.

Unfortunately the Emulator does not support yet the AccelerometerSensor, and unfortunately we do not have a Windows Phone yet.

Thanks to Pete Blois and his Labyrinth Sample for Windows Phone ( there’s a simple way to test your app and use your mouse to apply G forces on X and Z.
He created a clever AccelerometerProxy that use the mouse movement to generate fake forces that you can use on your app.

The proxy also include a cleverer AccelerometerEventArgs that replace the original AccelerometerReadingAsyncEventArgs. With the original one, to get the X and Y forces you had to type e.Value.Value.X, while on the AccelerometerEventArgs you can simply use e.X and e.Z.

Here ( you can download my working example of the “One Button” example demoed in the CL16 session using the fake accelerometer.

To test it, click the button, then click somewhere else on the emulator screen and drag the mouse.

Discovering Windows Phone 7 #1

I’m starting to learn about XAN 4 for Windows Mobile 7, and going through all the examples from the MIX10.
The example I’m showing tonight comes from Shawn Hargreaves Blog ( and It’s an example of how to create a Frame Rate counter component. I heard about this on this on the session CL19 (DEVELOPMENT AND DEBUGGING TOOLS FOR BUILDING XNA GAMES FOR WINDOWS PHONE –

At first I had some problems with this specific line of code:

_font = Game.Content.Load<SpriteFont>(“Arial”);

The runtime was throwing a File Not Found exception.
I was initially adding the Arial.spritefont manually to the WindowsPhoneGame project, but digging the XNA Forums ( I figured out that that resource needed to be added to the WindowsPhoneGameContent project instead of the Game project.

In the end, here it’s my FPS counter


Continuous Learner #4

Continuous Learner #3


Scaling Out Facebook:
Understanding the Real-Time Web for Web Developers:

Motorola Droid vs Nexus One: Multitouch Test:
Android Developer:

Flash vs HTML5

Hack and Spy

Cool stuff
Microsoft Pivot:

LAgent: an agent framework in:

Ted Talks
Bill Gates on energy: Innovating to zero!:
James Cameron: Before Avatar … a curious boy:
Blaise Aguera y Arcas demos augmented-reality maps:

Agenda for Microsoft Architect Insight Conference 2010: