Gaming World Forums

General Category => Technology and Programming => Topic started by: Carrion Crow on December 16, 2010, 06:03:06 pm

Title: Easy 3D in C# .Net
Post by: Carrion Crow on December 16, 2010, 06:03:06 pm
Hello,

For my final year project I am creating a motion capture system.  In order to display the current positions of the infrared markers in the camera scope I am performing triangulation and this returns 3D coordinates of their locations.

I would like to be able to display them in a 3D viewport but I am unsure over which route to take so that I can get a nice embedded 3D window in my Windows Form App.

Have any of you put a 3D view in a forms app before? Was it easy?

I have looked at XNA and some OpenGL wrappers but I am none the wiser as to which is going to be the biggest pain in the bum.

Title: Easy 3D in C# .Net
Post by: cowardknower on December 16, 2010, 09:37:42 pm
I've only used XNA with 2d, but that hasn't been two hard.  What were your reservations about it?
Title: Easy 3D in C# .Net
Post by: Carrion Crow on December 16, 2010, 09:38:31 pm
Never used it before! Just want a simple homer-simpson's-spice-rack style solution I can tack on to my project.
Title: Easy 3D in C# .Net
Post by: cowardknower on January 21, 2011, 03:47:50 pm
nobody else had any suggestions i guess?

you could also use slimdx or something.
Title: Easy 3D in C# .Net
Post by: Gulp on January 22, 2011, 01:59:38 am
I know how to do it!!

Basically it involves using pointers from the graphics buffer of XNA to a handler of a form object. (usually I use a graphics box).

I'm uploading the code right now.

http://www.youtube.com/watch?v=X07LKMZGWdo (http://www.youtube.com/watch?v=X07LKMZGWdo) <== here is how I used it. this was like one of the first things I made in XNA and C#.

http://www.megaupload.com/?d=29LTJJA3
Title: Easy 3D in C# .Net
Post by: Carrion Crow on February 18, 2011, 02:34:49 pm
I well thought this thread had disappeared! I am downloading now to have a look. Thanks much!
Title: Easy 3D in C# .Net
Post by: Gulp on February 18, 2011, 06:10:03 pm
No prob. :D Let me know if it's what you were looking for.

if megaupload sucks, you can find the code here: http://rpgmaker.net/games/2217/. I made a separate file in the download section just for the template.