Friday, December 29, 2006


Well, the same as last week: I won't be publishing any new posts till next Thuesday so I just want to wish you all have a Happy New Year 2007 !!!

See you next 2007 ... ;)


Some members of the XNA community (including me) have experienced problems with XNA games when running on fullscreen mode -in particular, I have a GeForce 6600 GT card.

The problem: when a XNA game tries to get/set the presentation parameters for accepted fullscreen modes, it takes the list of rates accepted by the gfx card and in some cases uses the higher one -for instance, like 240 Hz on 800x600. Phewww! So you will see nothing more than a black screen and your monitor trying to warn you that something is attempting to set an invalid refresh rate.

The workaround: if the user forgot to (or cannot) forbid any rate above the maximum accepted vertical retrace on the gfx card, just catch the "PreparingDeviceSettings" event and then set a common rate like 60 or 72 Hz. How? In the class that derives from "Microsoft.Xna.Framework.Game" class, add the following line (say, within the constructor):

graphics.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(MyMethod); // "graphics" is a reference previously instanced as "GraphicsDeviceManager(this)" usually in the same constructor

Then add the following method in the same class:

private void MyMethod (object sender, PreparingDeviceSettingsEventArgs args)
args.GraphicsDeviceInformation.PresentationParameters.FullScreenRefreshRateInHz = 60; // for instance, or 70, 72, 75, etc.

I've modified the code of games like Rocket Commander and Wildboarders and it all works great!

Let's hope Sharky modifies Air Legends soon so that I can finally play the game.



I was wondering lately what had happened with Visual3D.Net's CTP -due to be released this month, so I directed my browser ro V3D's forums so as to get some answers -which I did not, but for my surprise someone posted a couple of links to new XNA-targeted frameworks: "3D Evolution" and "XNA Magic".

To be honest, I didn't have time to browse 3D Evolution's site as much as I did for XNA Magic's one -I promise I will sometime soon, so I will talk about the latter in this post.

XNA Magic looks pretty cool. It reminds me of "Unity" (for MAC). The demo videos do a great job on showing off what this framework has to offer.

So, pay a visit to both frameworks' site and compare them while we still wait for V3D's CTP (c'mon guys, hurry up!).

More later.