How can I use WPF's D3DImage with managed DirectX or XNA?
Asked Answered
A

4

5

I'd really like to get into some D3D coding, but I don't have the time lately to learn C++ for what will amount to a hobby project.

Asthmatic answered 24/9, 2008 at 23:7 Comment(1)
Could you clarify your question a little bit? I'm not really sure what you're asking. But, I'd love to help and it sounds right up my alley :)Areca
B
1

If you're looking for a managed way to do Direct3D programming, I would recommend SlimDX. It's an open source .NET wrapper over DirectX. Since managed DirectX is not being supported any longer by Microsoft, this is a good way to use managed code with D3D. It's updated quite frequently and I've had very good luck using it thus far. There's a thread here that talks about using SlimDX with D3DImage.

Biaxial answered 4/11, 2008 at 0:54 Comment(0)
M
1

It's not officially supported as far as I know. Looks like some folks hacked it to make it work.

Maretz answered 25/9, 2008 at 2:39 Comment(0)
M
1

Looks like this might not be an issue for much longer, at least come .NET 4.0. Microsoft showed off a demo of XNA integration with WPF at PDC on Tuesday. If you want to see it in action, you can see the session video at the PDC site:

https://sessions.microsoftpdc.com/public/timeline.aspx

The session is PC46 (WPF Roadmap), XNA demo is around the 38 minute mark. I'm hoping they'll go into more details during the WPF Graphics Futures talk today (Session PC07). Might be a bit down the road, but it's encouraging that they're working on it.

Mommy answered 30/10, 2008 at 18:1 Comment(0)
B
1

If you're looking for a managed way to do Direct3D programming, I would recommend SlimDX. It's an open source .NET wrapper over DirectX. Since managed DirectX is not being supported any longer by Microsoft, this is a good way to use managed code with D3D. It's updated quite frequently and I've had very good luck using it thus far. There's a thread here that talks about using SlimDX with D3DImage.

Biaxial answered 4/11, 2008 at 0:54 Comment(0)
S
1

Another alternative to managed DirectX and XNA is MOgre, which is a C# wrapper around a great open source C++ graphics engine that uses Direct3D, called Ogre3D. (If it is a hobby project, I think you might get going quicker by using an engine like this rather than straight-up D3D. I don't know much about XNA or SlimDX.)

Here is a CodeProject article by Leslie Godwin that takes the D3DImage class (from the Dr. WPF article mentioned by Ian) and shows how to use it with MOgre.

Edit: I created an open source project, called MogreInWpf, for using D3DImage with Mogre, based on Leslie Godwin's code referenced above, and with an alternative sample app.

Spook answered 24/1, 2010 at 22:40 Comment(1)
There - fixed it for ya. =) Thanks for the links - I'll check them out soon. =)Asthmatic

© 2022 - 2024 — McMap. All rights reserved.