| View previous topic :: View next topic |
| Author |
Message |
ac251404
Joined: 18 Oct 2007 Posts: 2
Digg It |
Posted: Thu Oct 18, 2007 3:59 pm Post subject: CWiid and OpenGL ?? |
|
|
I am wanting to make a *very* basic OpenGL project for rotating a cube with a wiimote. I am fairly experienced with C++ (some C) and I am attempting this for a final project in my interactive graphics class. I know I can use wminput to make the wiimote act as a mouse fairly simply, but I would also like to get to the rotational information from the accelerometer. Is it possible to turn on wminput and also feed this accelerometer info to my OpenGL callbacks? Would I be better off editing wminput to map accelerometer info to a keyboard button, so if it was accelerating upward it would press the UP key on the keyboard? Rotating left could be left arrow, etc. This way I could just use straight OpenGL key/mouse callbacks for everything and let wminput handle all the wiimote stuff. I just ordered my wiimote, adapter and wireless IR bar and it should be here in a few days but I really want to start laying out how I'm going to do this ahead of time if I can. If anyone has any ideas or input I'd love to hear it.
thanks |
|
| Back to top |
|
 |
jacobd
Joined: 07 Dec 2007 Posts: 2
Digg It |
Posted: Fri Dec 07, 2007 10:21 pm Post subject: |
|
|
I wrote a small program which used IR data from the wii. Instead of wminput, i just used the cwiid api to get data from the wii. Using wmdemo.c as my template, i added some calls to GLUT and was up and running. I've posted a link to the source code on the cwiid page of wiili as well as on cwiid.
Jacob |
|
| Back to top |
|
 |
|