Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How well does WPF blend with XNA in real life?

I understand that there are several ways to blend XNA and WPF within the same application. I find it enticing to use WPF for all GUI and HUD stuff in my XNA games. Does anyone have any practical experience on how well this approach works in real life using .NET 3.5 SP1 ? Any pitfalls (such as the "airspace problem")? Any hint on what appoach works best?

like image 502
bitbonk Avatar asked Sep 04 '08 12:09

bitbonk


2 Answers

There is an addition in 3.5 SP1 that allows better interaction between DirectX and WPF (D3DImage), and one way to get to that is through XNA.

Here are some details:

http://jmorrill.hjtcentral.com/Default.aspx?tabid=428&EntryID=259

like image 156
Kris Erickson Avatar answered Oct 26 '22 21:10

Kris Erickson


Thamir Khason presented a excellent session about WPF/XNA/Silverlight at Tech-ed... Here is his slides: http://blogs.microsoft.co.il/blogs/tamir/archive/2008/04/14/my-teched-08-presentation-slides-download.aspx

PS. This was quite impressive to see... he had a game that ran on the xbox. On his desktop using WPF to host XNA and ons his mobile phone using silverlight all playing against each other!!!

like image 20
rudigrobler Avatar answered Oct 26 '22 22:10

rudigrobler