Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Forum » Wiimote Projects » Wiimote Desktop VR/Head Tracking » Running program without wiimotes... gray screen?
Pages: [1]
  Print  
Author Topic: Running program without wiimotes... gray screen?  (Read 752 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 1
Offline Offline
View Profile
« on: March 15, 2008, 02:27:47 PM »

Hello,

I've created a 3d Pong-like game that works moderately well, however I'd like to be able to develop and run the program without connecting the wiimotes at all. (no need to interact, except perhaps mouse = wiimote2, as already setup)

Unfortunately, when I comment out the remote.someMethod calls in the OnCreateDevice method, all I get is a gray screen when I run the program. (Same for setting doWiimote = false)

Is there a better way to do this? Do I need to "trick" my program into thinking there's a wiimote connecting?

Thank you in advance!
Logged
Guru
*
Karma: +11/-1
Posts: 137
Offline Offline
View Profile
« Reply #1 on: March 15, 2008, 03:46:51 PM »

2 questions first:
What are you using to create the 3d game?
What language are you using?

Ok now some answers that might help you.
You probably set the whole 3d up to render when your wiimotestate changed (event). Just make a while loop in which you render your thing, and poll the wiimote for information. I'm using it that way, and i also made it so that if you dont have a wiimote connected, it'll still run. I did that by making a global boolean variable that holds the connected state of a wiimote object, if that one is true, then it's checking for information, otherwise it'll just skip that step.

Greetings,
Bart
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics