Code Easy 3D in C# .Net (Read 304 times)

  • Avatar of Carrion Crow
  • I need to watch things die
  • PipPipPipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Apr 5, 2006
  • Posts: 3516
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.

  • Avatar of cowardknower
  • The MONSTER that lives inside of your COUCH!
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2002
  • Posts: 1807
I've only used XNA with 2d, but that hasn't been two hard.  What were your reservations about it?
  • Avatar of Carrion Crow
  • I need to watch things die
  • PipPipPipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Apr 5, 2006
  • Posts: 3516
Never used it before! Just want a simple homer-simpson's-spice-rack style solution I can tack on to my project.
  • Avatar of cowardknower
  • The MONSTER that lives inside of your COUCH!
  • PipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Aug 7, 2002
  • Posts: 1807
nobody else had any suggestions i guess?

you could also use slimdx or something.
  • Pip
  • Group: Member
  • Joined: Dec 2, 2010
  • Posts: 117
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 <== 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
  • Avatar of Carrion Crow
  • I need to watch things die
  • PipPipPipPipPipPipPipPipPip
  • Group: Premium Member
  • Joined: Apr 5, 2006
  • Posts: 3516
I well thought this thread had disappeared! I am downloading now to have a look. Thanks much!
  • Pip
  • Group: Member
  • Joined: Dec 2, 2010
  • Posts: 117
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.