Solar9

Hi all,

WPF is attractive, simple, and yet powerful.

While this question may sound unInformed/uneducated, but still, let me vent it out.

Can we use WPF for games development The examples/samples that I have used, is more like, playing with the objects on screen. I was thinking then, what could be the difference between OpenGL and WPF then I mean, do you see WPF and OpenGL going separate ways, having completely separate domains for development, or will they converge to be one at some point in future

Just curious.

Thanks.




Re: Windows Presentation Foundation (WPF) WPF/OpenGL.

Laurent Bugnion

Hi,

Disclaimer: I am not a 3D expert.

First comment: You are comparing apples and bananas. OpenGL is rather to be compared to Direct3D, which WPF uses to render 3D graphics and animations.

The state of 3D in WPF is not a finished state. We should expect to see better APIs and better performances in future versions of WPF. That said, game development needs a lot of performance, and often needs tinkering with the graphic card (more or less) directly. This is not something that WPF allows. WPF must be seen as a high level library allowing easy use of 3D in applications, but it's an API, so a simplification of a lower level library. My guess is that WPF will not be suited for hardcore game development (not now and probably not in the future). My guess is that hardcore game developers will continue to talk to the lower level libraries directly, because they allow more control of the graphic card.

As for the future of OpenGL vs Direct3D, I cannot judge, since as said I am not an expert. I don't, however, see the need for one to disappear or to be replaced by another one. Concurrent technologies are good, because they keep innovation coming :-)

HTH,
Laurent





Re: Windows Presentation Foundation (WPF) WPF/OpenGL.

Jeremiah Morrill

>>Can we use WPF for games development

You can, but WPF is really for application UI, not game development. If you are looking for high-performance gaming, I would look into Direct3D or OpenGL.

>>I was thinking then, what could be the difference between OpenGL and WPF then

WPF, in respect to its 3D ability, is a high-level API designed to make 3D as simple as possible for designers and developers alike. WPF sits on top of Direct3D. OpenGL is a low level 3D library, similar in function to Direct3D. OpenGL has no real relation to WPF or Microsoft.

>>I mean, do you see WPF and OpenGL going separate ways, having completely separate domains for development, or will they converge to be one at some point in future

(Lets replace "OpenGL" in this question with "Direct3D")Direct3D and WPF definatly have separate development domains. One is for games/hi-perf 3D and the other is for application user interfaces. I think it would make sense for the two technologies to compliment each-other more, at least with some interop.

Hope this answers your questions.

-Jer





Re: Windows Presentation Foundation (WPF) WPF/OpenGL.

Solar9

Thanks Laurent and Jerimiah.

Very informative and thoughtful. Highly appreciated!