Click here to Skip to main content
15,900,468 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionJava in Visual Studio 2008 Team Suite? Pin
mauricemcse16-Feb-10 11:01
mauricemcse16-Feb-10 11:01 
AnswerRe: Java in Visual Studio 2008 Team Suite? Pin
Not Active16-Feb-10 12:21
mentorNot Active16-Feb-10 12:21 
AnswerRe: Java in Visual Studio 2008 Team Suite? Pin
Richard MacCutchan16-Feb-10 12:33
mveRichard MacCutchan16-Feb-10 12:33 
QuestionOne MSMQ Queue works but another one doesn't Pin
Hypermommy16-Feb-10 6:03
Hypermommy16-Feb-10 6:03 
QuestionUnable to print multiple copies for crystal report in vb.net. Pin
jgotlt15-Feb-10 0:06
jgotlt15-Feb-10 0:06 
QuestionHosting XNA in a windows forms control and in turn hosting that control in WPF Pin
Ekoj Lirpa13-Feb-10 8:23
Ekoj Lirpa13-Feb-10 8:23 
AnswerRe: Hosting XNA in a windows forms control and in turn hosting that control in WPF Pin
Hessam Jalali13-Feb-10 11:33
Hessam Jalali13-Feb-10 11:33 
GeneralRe: Hosting XNA in a windows forms control and in turn hosting that control in WPF Pin
Ekoj Lirpa13-Feb-10 13:04
Ekoj Lirpa13-Feb-10 13:04 
Yes, tricky is the right word. A GUI and a typical DirectX (or XNA) application do not have too much in common. The GUI application tries to use the CPU sparingly by handling events and idling most of the time. A DirectX application tries to get all the CPU time it can and make the best of it.

My approach to bringing XNA and WPF together resembles the second one you mentioned. The main difference is, that my control tries to replace XNA's game class and does not try to tweak it into accepting the control as render target.

The game originally was supposed to be a web application and still retains the behavior of a website because the client connects to the server over a webservice. This way it will certainly not be a hot action game. Most of the time there will still be some kind of forms and while we want a good design, we also value such things as data binding or our MVP libraries to keep the code short and orderly. A DirectX application will make those things more awkward and NeoForce still misses some controls we would certainly need.

The game is going to be something like the good old Master of Orion. The players will be exploring unknown planets and build colonies, research new technology. There will be trade, espionage, politcs and some strategic and tactical combat. But at no point will the player be shooting himself. Instead he will mashall his fleets, troops and commanders. In the end we need a GUI more than DirectX.

Let's say the player is looking at his colony. On a website we could display a grid with all buildings he has. Efficient, but not very appealing. Puzzling together some kind of image would be possible, but a little awkward. Rendering a dynamic image would be a little hard on the server and Microsoft does not recommend it because GDI+ is officially not safe to use in a web application.

Sending the information of the player's colony to a client is a more logical choice. We can then leave the work of visualizing the colony and its buildings to the client and also eliminate the need to send a large bitmap at every page request. Under WinForms we have to deal with some ugly flickering and sometimes a hard time when trying to get rid of the typical WinForms look, but GDI+ at least can efficiently compose a custom image. A static image may not be state of the art, but at least it is a custom image generated in no noticable time.

WPF was mage to allow rich means of designing and animating your GUI and there is no ugly updating and flickering, making the whole thing look much less old fashioned. We could also easily visualize things with custom images. So far, so good. But with XNA we can put together a scene of the planet's landscape and the player's buildings plus some little animations like drifting clouds or a landing ship.

The same goes for visualizing the star systems. The player will have quite a few controls to navigate and get information about the objects he sees. Again we could simply display a grid with all the boring facts. Or we could put together an image and let the player scroll through the system. With WPF we could also render and animate some spheres and put some textures on them. XNA will add full support of shaders and multi texturing and make the whole thing look far more interesting.

And, even more important, we are a bit tired of tearing everything apart and putting it back together in yet another way. We finally want to get down to business Smile | :)
QuestionIE create object to com wrapped dotnet dll launch exe Pin
nlarson1113-Feb-10 3:08
nlarson1113-Feb-10 3:08 
QuestionLooking for FTP component Pin
Hypermommy13-Feb-10 2:20
Hypermommy13-Feb-10 2:20 
AnswerRe: Looking for FTP component Pin
Dimitri Witkowski13-Feb-10 3:54
Dimitri Witkowski13-Feb-10 3:54 
AnswerRe: Looking for FTP component Pin
Not Active13-Feb-10 7:26
mentorNot Active13-Feb-10 7:26 
GeneralRe: Looking for FTP component Pin
Hypermommy15-Feb-10 6:09
Hypermommy15-Feb-10 6:09 
Question.NET Configuration Tools (caspol.exe) with visual studio 2008 express? Pin
giohappy12-Feb-10 7:17
giohappy12-Feb-10 7:17 
QuestionHelp with a gauge control [modified] Pin
Bob Beaubien12-Feb-10 4:34
Bob Beaubien12-Feb-10 4:34 
AnswerRe: Help with a gauge control Pin
Richard MacCutchan12-Feb-10 5:57
mveRichard MacCutchan12-Feb-10 5:57 
GeneralRe: Help with a gauge control Pin
Bob Beaubien12-Feb-10 10:56
Bob Beaubien12-Feb-10 10:56 
QuestionUpdate .Net Framework 3.5 to .Net Framework 3.5 SP1 Pin
xodeblack11-Feb-10 23:32
xodeblack11-Feb-10 23:32 
AnswerRe: Update .Net Framework 3.5 to .Net Framework 3.5 SP1 Pin
Richard MacCutchan12-Feb-10 0:20
mveRichard MacCutchan12-Feb-10 0:20 
AnswerRe: Update .Net Framework 3.5 to .Net Framework 3.5 SP1 Pin
Kevin McFarlane13-Feb-10 9:14
Kevin McFarlane13-Feb-10 9:14 
QuestionGetting Error while opening .NET project in Visual Studio 2005 Pin
deadlyabbas11-Feb-10 22:12
deadlyabbas11-Feb-10 22:12 
AnswerRe: Getting Error while opening .NET project in Visual Studio 2005 [modified] Pin
thatraja11-Feb-10 22:15
professionalthatraja11-Feb-10 22:15 
AnswerRe: Getting Error while opening .NET project in Visual Studio 2005 Pin
Abhinav S11-Feb-10 23:23
Abhinav S11-Feb-10 23:23 
QuestionHow to convert pixels to inches, cms, mts (VB.net) Pin
dileep200911-Feb-10 21:40
dileep200911-Feb-10 21:40 
AnswerRe: How to convert pixels to inches, cms, mts (VB.net) Pin
Eddy Vluggen12-Feb-10 1:57
professionalEddy Vluggen12-Feb-10 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.