Archived

This topic is now archived and is closed to further replies.

DavidClarke

Direct3D and .NET Forms

Recommended Posts

DavidClarke    122
I want to create a gui for my direct3D app, .NET forms seem to be the logical way to go (I DONOT WANT TO USE MFC). Are there any tutorials or samples available on the internet? Your guidance would be much appreciated.

Share this post


Link to post
Share on other sites
If you don''t want to use all that MFC jazz, you can use either the Win32 API or .NET forms. Either will work fine, although -- depending on what you do -- you may need to clip the areas where you are drawing Windows.

Ideally, though, you''d just do your own. There is something unprofessional-looking about mixing DirectX and standard Windows -- even when they are cleverly disguised.

Share this post


Link to post
Share on other sites
Asim    122
Try the following, I haven't personally used them so I can't say how good they are. If you go to

http://www.gamedev.net/reference/list.asp?categoryid=24#53

and scroll down to the "General" section (about 4/5 of the way down), there are a number of tutorials there.

Good luck

Asim

BTW - This maybe MFC related - I don't know how much information you can find about .NET forms on the internet.

[edited by - asim on August 14, 2003 5:12:26 PM]

Share this post


Link to post
Share on other sites
Arild Fines    968
quote:
Original post by DavidClarke
I want to create a gui for my direct3D app, .NET forms seem to be the logical way to go (I DONOT WANT TO USE MFC). Are there any tutorials or samples available on the internet? Your guidance would be much appreciated.

This tutorial gives a pretty good introduction to Managed DirectX with C#: http://staff.develop.com/candera/weblog2/articleview.aspx/DirectX/Direct3D

Of course... if you already have a codebase in C++, you should be able to just take the Handle property of the .NET form in question, and pass it to your C++ code to use as the HWND for the viewport(ok, so I don''t really remember all the DX init stuff, but you get my drift...).



AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.

Share this post


Link to post
Share on other sites
This Wiki is oriented towards Managed DirectX but there are also C++ links as well....It is a Wiki so you can add any other links you find there as well

http://www.seedwiki.com/page.cfm?doc=DirectxLinks&wikiid=2492&wpid=0

I am in the middle of developing a business application, not a game and this so far is working well. I have directX working in a Panel in a multPanel MDI form within a series of forms running from a main application form. You just need to make sure you call your DirectX form the way the Managed DirectX samples run the main form.

The most difficult part is that the Documentation is almost non-existant.

Have fun







Of all the things that I have lost, it is my mind that I miss the most!

Share this post


Link to post
Share on other sites
nerdboy80    128
I too am prototyping a business app with Managed DirectX 9. I simply subclassed a System.Windows.Forms.Control, which is my directx viewport, and has support for multiple viewports via a global directx device wrapper singleton. The control is in a control library, so we can simply drag and drop the directx control into any form we like in the designer.

Share this post


Link to post
Share on other sites