Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

3d Wii Program

Loading...

Sign in or sign up now!
54,061
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 7, 2007

A video of a program i wrote using the cwiid API. It detects the position of an IR source in the x, y and z axis. It's also sort of fun. The source code should be available on wiili.org or the cwiid website.

  • likes, 8 dislikes

Link to this comment:

Share to:

Uploader Comments (3jd8)

  • cool, but how did you control the third ball?

  • There are two infra red light sources, one from each of the lighters.  The two wiimotes track both of the ir sources. The x positions from the left most ir source are taken from both wiimotes. The depth is calculated using a fairly simple 2d projection equation. It's then repeated for the right most ir source. The last ball just bounces around, you move it by hitting it with one of the two balls you control.

  • Combine this with Johnny Lee's headtracking stuff and you should be pretty well of ;)

  • Johnny Lee's headtracking is pretty amazing. After i saw it i tried implementing it in the Quake 3 engine. I got most of it working fairly well, only problem is that it's very poorly suited for a first person shooter. I should probably make a video of it sometime and post it, i just havn't had the time.

  • looks like your head has got burned, because I see only ashes

  • Lol, I have absolutely no idea what that means...

see all

All Comments (31)

Sign In or Sign Up now to post a comment!
  • Si I need to build a very good device to put on the Wiimote with lots of LEDs which get tracked from far away;)

    But at the moment the tracking seems similar to yours. Im also putting the Wiimotes with parallel axis. Mabe its better to put them at an angle, but then the Triangulation of the world point is more difficult.

  • Hey there, Im also doing Stereo Tracking with two Wiimotes at the moment. I also use Motion Plus with GlovePie to get the orientation of the Wiimote. Im trying to do some physically based games with Ogre.

    One problem seems to be that the viewing angle of the Wii IR Sensor is very small. So I have to stand far away to do big motions. But then the IR LEDs arent tracked very well

  • @3jd8 Can you tell me more about this 2D projection equaltion? Did you have to calibrate this set up with a known cude or other known shape as I have seen done with other Wii 3D projects? Would this be able to scale up? Like be able to track things in a cube 8 feet x 8 feet x 8 feet? I am very happy to have found your video, and judging from the comments youare very nice about answering questions. Thank you.

  • put some physics in there and youve practially got a game engin

  • This is really cool. Seeing it as a homebrew project, not as a game xD.

  • DevkitPro isn't a compiler, sorry.

  • Is this anything like Johnny Lee's program?

  • You Need To Know C/C++, Have the Homebrew Channel, And Have DevkitPro (look on wiibrew, its a compiler)

  • look at wiibrew(.)org ;p

  • not that hard on your PC..... you can use somit called GlovePIE and it can convert the wiimote data into 2 virtual joysticks, and then you just program your game to use those joysticks as input.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more