WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CWiid and OpenGL ??

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid
View previous topic :: View next topic  
Author Message
ac251404



Joined: 18 Oct 2007
Posts: 2

Digg It
PostPosted: 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
View user's profile Send private message
jacobd



Joined: 07 Dec 2007
Posts: 2

Digg It
PostPosted: 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> CWiid All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group