Wiimote Project

Wiimote Projects => Wiimote Interactive Whiteboard => Topic started by: ujs on February 04, 2008, 08:02:36 PM

Title: Java Version, developed under Mac OS X
Post by: ujs on February 04, 2008, 08:02:36 PM
Hi, I did a rewrite of the program in Java which can be found here: http://www.uweschmidt.org/wiimote-whiteboard
It should work out of the box under Mac OS X Tiger on an Intel Mac (at least that's my development environment).
Haven't tested any other platforms hence feedback is highly appreciated. Tell me what you think...

Uwe
Title: possible bugs
Post by: Desca;zp on February 05, 2008, 11:08:45 AM
I tried it on my MacBook Pro, and it was tough to get it to work.  I didn't know I had to put the WiiRemoteJ and BlueCove jar files in Extensions, but once I got that figured out, it paired and loaded fine.

I had some problems, though:
1. I can not check the Cursor Control box.  Maybe this is on purpose, because you're trying it out or something.  I don't know.
2. It is not sensitive enough for some reason. It can't read the LED when I draw on the whiteboard, it doesn't even see the IR dots.  When I aim the LED back at the WiiMote, it can see it, but not well, and it doesn't receive a steady signal.  I know this is OSX-specific because I rebooted into Boot Camp and it works like a champ.  The WiiMote is in the same place and everything.

Good things:
1. It seems to work on the main monitor only on a dual-monitor setup.  Maybe that's just the way it's supposed to work (it's the same way in Windows), but that's the way I like it.
2. It's finally going to happen on OSX!  I've been waiting for this since I first heard about it.
3. It's in Java, which I have been meaning to learn about anyway. My little brother is bigtime into Java so he can help me learn to program again (it's been about 15 years, and that was in BASIC).

If there's anything specific you want me to try or look in to, let me know.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 05, 2008, 02:35:12 PM
Quote
I didn't know I had to put the WiiRemoteJ and BlueCove jar files in Extensions, but once I got that figured out, it paired and loaded fine.
WiiRemoteJ and BlueCove are bundled with the program (inside the WiimoteWhiteboard.jar), so it should work without putting those 2 files in the Extensions-folder.

Quote
1. I can not check the Cursor Control box.  Maybe this is on purpose, because you're trying it out or something.  I don't know.
You can only check the Cursor Control box after successful calibration or when a calibration file was found at startup and has been loaded.

Quote
. It is not sensitive enough for some reason. It can't read the LED when I draw on the whiteboard, it doesn't even see the IR dots.  When I aim the LED back at the WiiMote, it can see it, but not well, and it doesn't receive a steady signal.
Can you elaborate on that? I didn't have an issue with that, but I only tested with a flashlight since I don't even have an IR pen yet.

Quote
I know this is OSX-specific because I rebooted into Boot Camp and it works like a champ.  The WiiMote is in the same place and everything.
Did you run the original or my Whiteboard-program under Windows? I couldn't get my program to work under Windows...

Quote
Good things:
1. It seems to work on the main monitor only on a dual-monitor setup.  Maybe that's just the way it's supposed to work (it's the same way in Windows), but that's the way I like it.
I just use the default screen. I guess it wouldn't be too hard to list all available screen and to select the one you want to use.

Quote
2. It's finally going to happen on OSX!  I've been waiting for this since I first heard about it.
That's the main reason I wrote it :D

Quote
3. It's in Java, which I have been meaning to learn about anyway. My little brother is bigtime into Java so he can help me learn to program again (it's been about 15 years, and that was in BASIC).
The program is relatively short (about 400 lines of code in a single Class).
Especially all the perspective transformation is entirely handled by an existing Java class :D

Quote
If there's anything specific you want me to try or look in to, let me know.
Spread the word so that I can get feedback from people trying it on various platforms.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Thisisjon on February 05, 2008, 05:04:57 PM
Ive been messing with your program on Mac and PC. I have it working well on both. On both XP and Leopard, it's more receptive and sensitive than the original wiimote whiteboard. I have yet to find any major flaws in it. Good work.
Since you havent gotten it to work on pc, if you want me to check anything or elaborate, just let me know
Title: Re: Java Version, developed under Mac OS X
Post by: Gilthalas on February 05, 2008, 06:18:54 PM
I too don't seem to be able to register a source (I don't have an IR pen yet, but I've used a flame in the past for testing in Windows).  It connects fine and gets a battery reading, but no dots or any sort of recognition that it is seeing IR.  Thoughts?

By the way - you rock for porting this to Java - I work with Java IRL and will be happy to add on to it!

Gilthalas
Title: Re: Java Version, developed under Mac OS X
Post by: Thisisjon on February 05, 2008, 07:05:58 PM
I used a radioshack IR led, and it worked just fine. When you say "no dots" what do you mean? Do you mean the lights on the wiimote or dots on the screen?
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 05, 2008, 08:05:34 PM
Ive been messing with your program on Mac and PC. I have it working well on both. On both XP and Leopard, it's more receptive and sensitive than the original wiimote whiteboard. I have yet to find any major flaws in it. Good work.
Since you havent gotten it to work on pc, if you want me to check anything or elaborate, just let me know

Great to hear that! Which Bluetooth stack do use on Windows XP?

I too don't seem to be able to register a source (I don't have an IR pen yet, but I've used a flame in the past for testing in Windows).  It connects fine and gets a battery reading, but no dots or any sort of recognition that it is seeing IR.  Thoughts?

I sometimes have the same problem, seems to be a Bluetooth connectivity issue. Try to restart the program and see if it works. If it doesn't work for a couple times in a row then it might be another problem.

By the way - you rock for porting this to Java - I work with Java IRL and will be happy to add on to it!

Thanks! I thought there is a need for a Mac version, especially educators could use the program in classrooms. I actually don't have any need for a Whiteboard application. I just like to play around with technology ;)


Btw, I added a quick demo video to the page (http://www.uweschmidt.org/wiimote-whiteboard).
Quality is poor, but it should serve its purpose...

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Gilthalas on February 05, 2008, 08:28:39 PM
My initial testing shows that if I run it from XCode, I can see an IR source.  If I run it straight from the JAR file, I cannot.  I'm not sure how to interpret that. 

Nice video, by the way!

How did you make your IR pen?

Gilthalas
Title: Re: Java Version, developed under Mac OS X
Post by: Thisisjon on February 05, 2008, 10:07:37 PM
Im using the Bluesoleil stack, it was the default stack with my adapter.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 06, 2008, 05:43:00 AM
My initial testing shows that if I run it from XCode, I can see an IR source.  If I run it straight from the JAR file, I cannot.  I'm not sure how to interpret that. 

Do you see any Exception when you run the JAR file from the command line?
How do you run it from XCode? Did you create a Java project, added the library files (BlueCove and WiiRemoteJ) and compiled it yourself?
I never used XCode for Java coding...

Im using the Bluesoleil stack, it was the default stack with my adapter.

I also tried with BlueSoleil. My problem might be related to BlueSoleil's version or my Bluetooth dongle.
When I try to run it, I get an error like "Not supported on BlueSoleil" from BlueCove.


I don't even have an IR pen yet, so I'm using an ordinary flashlight.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Gilthalas on February 06, 2008, 08:23:58 AM
An ordinary flashlight.... with an IR bulb, I'm assuming?

I didn't see an exception because I just double clicked on the JAR - I'll try running it from the command line tonite.

As for XCode - yeah, made a java project, added in your source, and included the lib files. 

Gilthalas
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 06, 2008, 08:39:43 AM
An ordinary flashlight.... with an IR bulb, I'm assuming?

No, it is a regular filament lamp. Most (all?) of those lamps are also emitting infrared light.
But the accuracy for the Whiteboard program is poor, since I have a a rather big spot of light.
And you might noticed that I had to hold the lamp in a certain angle so that that screen reflected enough light back to the Wiimote.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Gilthalas on February 06, 2008, 09:56:51 AM
Interesting!  I may have to try that!

Gil
Title: Re: Java Version, developed under Mac OS X
Post by: Gilthalas on February 06, 2008, 06:36:26 PM
OK, I got things to run (albeit crudely) using a flashlight.  I was able to run Uwe's version in Java on OSX and I was able to run Johnny's on Windows using BlueSoleil (in Parallels on the MBP as a matter of fact).  I'm gonna try to track down a finer/tighter/more accurate source of light ---- but things are looking up!  I'll post more on the command line launch of the java version soon.
Title: Re: Java Version, developed under Mac OS X
Post by: Desca;zp on February 06, 2008, 10:23:49 PM
Quote
WiiRemoteJ and BlueCove are bundled with the program (inside the WiimoteWhiteboard.jar), so it should work without putting those 2 files in the Extensions-folder.
I had unzipped them into weird locations.  I fixed that, removed them from Extensions, and it is still working.

Quote
You can only check the Cursor Control box after successful calibration or when a calibration file was found at startup and has been loaded.
I see that now.  I did get it to successfully calibrate.

Quote
Can you elaborate on that? I didn't have an issue with that, but I only tested with a flashlight since I don't even have an IR pen yet.
The software, or the wiimote, or something, is picking up a poor signal for some reason.  It doesn't send a clear message.  I've tried it with 2 IR pens, with similar results: it works better in XP.  It us unusable in OSX.  It just occurred to me that the bluetooth module in this MBP is a piece of poo (my bluetooth mouse gets less than 3 feet of range, and it's not a very reliable signal at that), so maybe I should try to make it work with a bluetooth dongle instead (the Logitech one has awesome range).


Quote
Did you run the original or my Whiteboard-program under Windows? I couldn't get my program to work under Windows...
I use Johnny Lee's program in Windows.  I'm going to try it in Parallels.

I hope this has been helpful.  Am I the only one with such a crappy bluetooth card in my MBP?  Another co-worker has one (we ordered them together) and I'll have to try it on his and see if it's any better.
Title: Re: Java Version, developed under Mac OS X
Post by: Desca;zp on February 07, 2008, 04:53:09 PM
OK, I am now like 90% sure it's the bluetooth module's fault.  I just can't figure out how to disable the MBP's bluetooth module and use my own.  I'm going to see if there's something that they will replace under the warranty.

I'm going to try this on an older G4 iMac, but I hear that the G4 version of OSX Tiger has bluetooth problems, like pairing is problematic the second time or something.  I'll let you know how it works out.
Title: Re: Java Version, developed under Mac OS X
Post by: Thisisjon on February 08, 2008, 08:31:09 AM
Im using a normal macbook and it works fine. I dont know if the bluetooth is different between the macbook and macbook pro. But if you say that your mouse doesnt work more than 3 feet away I think you are right that the bluetooth is probably pretty jacked
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 08, 2008, 06:59:08 PM
I'm going to try this on an older G4 iMac, but I hear that the G4 version of OSX Tiger has bluetooth problems, like pairing is problematic the second time or something.  I'll let you know how it works out.

Like I wrote on my website:
Quote
Note for Mac OS X PowerPC (PPC) users: you will have to delete the Wii Remote from your previous devices list in System Preferences->Bluetooth->Devices after each connection (every time you connect a given Wii Remote). Even then, the outgoing connection will still fail every other time. There is some sort of bug relating to HCI devices and Apple's library. Luckily, it was fixed for the Intel Macs.

I can affirm that. I had the exact problem when I tested the program on my PowerPc Mac Mini.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Thisisjon on February 08, 2008, 07:46:50 PM
Now I am having problems running it on windows. It gets stuck at the "hold 1 and 2" window. I assume this is because the program isnt properly connecting to the bluetooth stack.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 08, 2008, 07:53:26 PM
You apparently need the "right" combination of bluetooth dongle and bluetooth stack to get it to work on Windows.
Try running it from the command line, I'm pretty sure you'll see an error message...


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Desca;zp on February 08, 2008, 09:38:34 PM
I tried this on a couple of PPC Macs (a lampshade iMac and a Titanium PowerBook), and I got an error, like the jar file could not be run, or something (I did it at work and didn't write down the error message).  Any ideas?

Note that both were running latest 10.4, and I used a Kensington BT stick, the same one in both machines.  I don't know if that matters.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 09, 2008, 07:16:01 AM
Note that both were running latest 10.4, and I used a Kensington BT stick, the same one in both machines.  I don't know if that matters.

I guess the problem is the 3rd party Bluetooth stick because the BlueCove Java Bluetooth library may not be able to deal with it.

And Java 5 is at least required to run the program, but you said both were latest 10.4 systems...


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: deeloke on February 11, 2008, 08:56:56 AM
Hi
i just played around with this on my MBP. Unfortunately the sensing range is very limited (reliably working when wiimote is within 10 CM from the IR source). I wonder why this is so? My IR pen was working well under the windows version (johnny lee'sWiimote Multipoint Grid programme) at which time my wiimote was placed several meters away.  I could not get it to compile via xcode (3 errors were produced using Xcode Version 2.4.1), however I did run the .jar from both command line and finder and did not notice a difference. Let me know if i can help in any way. I would love to see this working well.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 11, 2008, 09:52:09 AM
Hi
i just played around with this on my MBP. Unfortunately the sensing range is very limited (reliably working when wiimote is within 10 CM from the IR source). I wonder why this is so? My IR pen was working well under the windows version (johnny lee'sWiimote Multipoint Grid programme) at which time my wiimote was placed several meters away.

My software is just using the data that it gets from the Wiimote (indirectly through Java Blutetooth library and WiiRemoteJ). It is a strange problem, although I don't think it's related to my software since I just use a very high-level abstraction of the Wiimote (via WiiRemoteJ).
It might be an issue with the MBP's Bluetooth module, another user had a problem with that...

I could not get it to compile via xcode (3 errors were produced using Xcode Version 2.4.1), however I did run the .jar from both command line and finder and did not notice a difference. Let me know if i can help in any way. I would love to see this working well.

I use Eclipse for development and have no experience at all with Java development in XCode.
Did you add the BlueCove and WiiRemoteJ libraries to the Java classpath?

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: alanderouen on February 12, 2008, 12:58:10 PM
I confirm it working under Leopard.

System version : Mac OS X 10.5.2 (9C31).
Model Id : MacBook1,1
Processor : Intel Core Duo 1.83 GHz.

Activate bluetooth and then double click on the jar file and that's all.  :D

I don't have any video projector yet so i tested on my mackbook 13.3" screen from a short range. Thanks anyway to the dev(s ?). Keep up the good work.

alan
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 12, 2008, 01:17:29 PM
Thanks anyway to the dev(s ?). Keep up the good work.

You're welcome  :)
I'm currently working on an updated version. Details can be found at my site (http://www.uweschmidt.org/node/48/18#comment-18).
It would be great if someone could make an (Mac OS X) icon for the program...


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: harpastum on February 18, 2008, 03:51:32 AM
It would be great if someone could make an (Mac OS X) icon for the program...

I read this post and decided to give it a shot. I'm not by any means an artist, and I didn't really spend too much time on this, but it's probably better than nothing.


(http://d2l.mu.edu/pages/personal/38911/DockIcon.jpg)




(http://d2l.mu.edu/pages/personal/38911/Wiimote.jpg)

Here's the icns file:

http://d2l.mu.edu/pages/personal/38911/WiimoteWhiteboardIcon.zip (http://d2l.mu.edu/pages/personal/38911/WiimoteWhiteboardIcon.zip)


Title: Re: Java Version, developed under Mac OS X
Post by: Desca;zp on February 18, 2008, 06:10:29 PM
Here's another version of that icon, I added it to a little yellow circle, and put a wiimote in there too.  I'm not completely satisfied, but I don't hate it.

http://pskouson.googlepages.com/WiimoteWhiteboardIcon.icns (http://pskouson.googlepages.com/WiimoteWhiteboardIcon.icns)
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on February 19, 2008, 11:03:40 PM
I read this post and decided to give it a shot. I'm not by any means an artist, and I didn't really spend too much time on this, but it's probably better than nothing.

Thanks for your effort, but I decided for another icon someone else sent in. But I'm still looking for an "artist" who can make a neat icon ;D

The new version is online! Includes support for right click and selecting another screen. Check it out...


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: balam on February 28, 2008, 08:42:16 PM
have a imac 2.2 dual core
and have problems with the ir pen.
some times picks up the signal other not.
but when it picks up the signal
does not work well.  if I make a line the likes are draw few inches away from the ir pen.
Title: Re: Java Version, developed under Mac OS X
Post by: toine on March 06, 2008, 05:31:24 AM
Hi,
Great job. I installed the "mac only" version on a powerbook G4 : i didn't have to do anything, and it worked well. Besides, the right click is available, without needing another IR pen, and that's terrific.
So I tried to use the java version under WinXP : no success :(
It seems not to work with bluesoleil (especially installed in order to use johnny's prog), nor with the default Win driver. Btw, I'm talking about a driver, but I think BlueSoleil is no driver : I don't understand why Johnny's prog only works with blue soleil.
Could anyone tell me more ? I'm especially interested in making Java version work under Windows (without Bluesoleil would be great)
Thanks
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on March 06, 2008, 06:43:43 AM
It seems not to work with bluesoleil (especially installed in order to use johnny's prog), nor with the default Win driver. Btw, I'm talking about a driver, but I think BlueSoleil is no driver : I don't understand why Johnny's prog only works with blue soleil.
Could anyone tell me more ? I'm especially interested in making Java version work under Windows (without Bluesoleil would be great)

Some users say they got it running on Windows with BlueSoleil. I did some further research since then and found out that it actually shouldn't work.
The technical reason is that BlueCove doesn't support L2CAP with BlueSoleil.
BlueCove is the JSR-082 Java Bluetooth Library I'm using.
L2CAP is a Bluetooth connection method that is used to connect to the Wiimote by a 3rd-party library in my program.

So long, the best advice I can give you is to use a recent version of WIDCOMM on WinXP.
In this case, I actually got it working with my and Johnny's software on Windows. No guarantees though.

As far as I understand, Johnny's program works with BlueSoleil because it allows to "pair" with the Wii Remote without having to use a key. I could also do this with the WIDCOMM stack.

Hope that helped,
Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on March 06, 2008, 06:49:52 AM
Could anyone who uses my software in combination with BlueSoleil please post a trace to prove that it works.
With trace I mean the console output when connecting to the Wii Remote having the system property "bluecove.debug" set to "true".

Run the JAR-version of my software like this:
Code: [Select]
java -Dbluecove.debug=true -jar WiimoteWhiteboard.jar > trace.txt
Then connect to the Wii Remote and exit the program. The resulting trace.txt is what I'm interested in.

Thanks!
Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: toine on March 08, 2008, 02:20:35 AM
Hi
thanks for your explaintion. However, I couldn't make it work with widcom : I can't solve the conflict with windows driver (I'm not very competent, but I tried)
So I'm still very interested with anyone qho made it work under windows. This program is much easier to use (especially in a classroom) : it's great one can right click, and I finaly understood the fonction of the IR camera (helps positionning the wii remote before calibrating).
thanks for any further help
Title: Re: Java Version, developed under Mac OS X
Post by: frdmboss on May 18, 2008, 02:00:09 PM
I did get the program to work under Windows XP at first, but then it stopped working. I don't know why, but it started to only pick up the Wiimote in the middle of my television screen. ( I had my computer hooked up to my television.)I'm going to check to see if it is my ASUS Bluetooth adapter that is causing the problem. I have a AZIO Bluetooth adapter that I know works perfectly with Johnny's program. 
Title: Re: Java Version, developed under Mac OS X
Post by: Tricker on May 18, 2008, 08:15:28 PM
Hi. I am new to the software but I was successful in getting it to work and it works great. I was wondering if there was a way to save the calibration of one monitor and then to calibrate another monitor and overlap the two as to be able to run two monitors that are being mirrored to each other to use the same wiimote yet each user will be able to use his or her mirrored monitor independently but the actions will show up on both monitors.


P.S. The monitors are seperated so there is no way to use one off of the other.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 19, 2008, 05:32:45 AM
I did get the program to work under Windows XP at first, but then it stopped working. I don't know why, but it started to only pick up the Wiimote in the middle of my television screen. ( I had my computer hooked up to my television.)I'm going to check to see if it is my ASUS Bluetooth adapter that is causing the problem. I have a AZIO Bluetooth adapter that I know works perfectly with Johnny's program. 

There are sensitvity issues which occur somewhat randomly. Try using the "Reset" button or restarting the program. While it's not convinient, it may help to get it working again.

Good luck,
Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 19, 2008, 05:45:00 AM
Hi. I am new to the software but I was successful in getting it to work and it works great. I was wondering if there was a way to save the calibration of one monitor and then to calibrate another monitor and overlap the two as to be able to run two monitors that are being mirrored to each other to use the same wiimote yet each user will be able to use his or her mirrored monitor independently but the actions will show up on both monitors.


P.S. The monitors are seperated so there is no way to use one off of the other.

I'm not sure I really understand what you mean.
You have two screens in seperate locations, which display the same content (mirrored). But you only want to use one Wiimote for both?

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Tricker on May 19, 2008, 08:42:03 AM
I may have said only 1 wiimote because my main idea is to have 7 mirrored projections around a conference room table so as to have every person attending the meeting to have their own computer in which to make changes to the project being presented and the changes would be shown on all computers, including the Activision Promethean board in the front of the room. I figured if I could solve this issue with one wiimote and 2 monitors, then I could use 2 wiimotes and use 7 projections.

Thank you in responding so quickly and I look forward to hearing from you again.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 19, 2008, 03:20:37 PM
I may have said only 1 wiimote because my main idea is to have 7 mirrored projections around a conference room table so as to have every person attending the meeting to have their own computer in which to make changes to the project being presented and the changes would be shown on all computers, including the Activision Promethean board in the front of the room. I figured if I could solve this issue with one wiimote and 2 monitors, then I could use 2 wiimotes and use 7 projections.

That seems kinda hard to do. In theory though, it could be possible to start the Wiimote Whiteboard software several times on a computer and calibrate each of them with another Wiimote to a different (mirrored) screen. I guess you'd run into problems with conflicting mouse movements and button presses when used concurrently by multiple users. And the calibration data wouldn't be saved properly to the filesystem (overwrite issues).
My software currently cannot be calibrated over multiple screens at once, thus one Wiimote per screen. It might be possible in a future release...

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Tricker on May 19, 2008, 03:26:43 PM
All right. I will look into working it a different way. Thank you very much for your information though.
Title: Re: Java Version, developed under Mac OS X
Post by: frdmboss on May 20, 2008, 05:36:28 PM
I tried the AZIO Bluetooth dongle with the Java program and it would not work. It gave me an error saying there was something wrong with it or that it was incompatible. If anyone has got the program to work on Windows, please let me know what dongle you are using, which version of Java you are using, and which version of Windows you are using. :'(
Title: Re: Java Version, developed under Mac OS X
Post by: RiXtEr on May 20, 2008, 10:03:16 PM
Hi,
Great job. I installed the "mac only" version on a powerbook G4 : i didn't have to do anything, and it worked well. Besides, the right click is available, without needing another IR pen, and that's terrific.
So I tried to use the java version under WinXP : no success :(
It seems not to work with bluesoleil (especially installed in order to use johnny's prog), nor with the default Win driver. Btw, I'm talking about a driver, but I think BlueSoleil is no driver : I don't understand why Johnny's prog only works with blue soleil.
Could anyone tell me more ? I'm especially interested in making Java version work under Windows (without Bluesoleil would be great)
Thanks

Keep in mind that you don't need the wiimote connected prior to running the program. You might try to kill off all the bluesolie processes before you run the program and see if that works.
Title: Re: Java Version, developed under Mac OS X
Post by: Descalzo on May 20, 2008, 11:56:36 PM
Is there someone who has tried this version with the Toshiba stack?
Title: Re: Java Version, developed under Mac OS X
Post by: frdmboss on May 21, 2008, 09:34:18 AM
Is there someone who has tried this version with the Toshiba stack?


I have and it did not work for me.
Title: Re: Java Version, developed under Mac OS X
Post by: bkleber on May 21, 2008, 03:06:53 PM
New user...

I've been flipping out about the whiteboard since I saw the video a couple of months ago. I just found the forum today - which is convenient, since I also bought the parts to make an IR pen this week (940nm LED, momentary switch, AA battery - no wires! - all in a few inches of 3/4" copper pipe).

I'm running an older iBook G4 at OS X v.10.3.9, with its built-in bluetooth. I can't ever keep track of which feline each OS X version is... will this work on 10.3.9? I still have to buy myself a WiiMote and I'll be all set to check it out - I might get around to that today.

Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 21, 2008, 04:28:46 PM
I'm running an older iBook G4 at OS X v.10.3.9, with its built-in bluetooth. I can't ever keep track of which feline each OS X version is... will this work on 10.3.9? I still have to buy myself a WiiMote and I'll be all set to check it out - I might get around to that today.

I'm sorry to tell you that the Java Whiteboard won't work on Panther because it requires Java 1.5+ (available in Tiger and onwards). See this post (http://www.uweschmidt.org/node/48/70#comment-70) and my reply (http://www.uweschmidt.org/node/48/71#comment-71) for details.

Uwe

Title: Re: Java Version, developed under Mac OS X
Post by: bkleber on May 21, 2008, 08:45:19 PM
ujs,

Looks like I'm in the clear. The laptop is on 10.4.11, it's the older desktop iMac G4 (one of the hemisphere-with-screen-on-neck ones) that is stuck at 10.3.9. And i jsut got my IR pen working, and got a wiimote today... time to rev this puppy up and see what kind of damage I can do!
Title: Re: Java Version, developed under Mac OS X
Post by: kurizuto on May 25, 2008, 07:28:57 PM
where is the archive to traslate the buttons and all to spanish?? its an emergency  :'( (sorry for the bad english)
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 26, 2008, 02:15:18 PM
where is the archive to traslate the buttons and all to spanish?? its an emergency  :'( (sorry for the bad english)

Sorry, but the software isn't ready yet to be translated easily. Localizations will probably be available in a future release...

To change the application quickly if you know how to do it:

You can change a lot of the strings by editing the files ending with .properties in the resources folder in each Java package. Some strings are still in the source code though.
In order to do all that, you better download the source code, change the properties-files and the strings in the source code. Then compile and package the application.

Uwe


Title: Re: Java Version, developed under Mac OS X
Post by: RiXtEr on May 28, 2008, 07:41:32 PM
Here is an idea, how about when you close or minimize the application it goes to the system tray, when you click on it it does right click/left click toggle (or it changes if you use the 3 second light toggle). I am not a good programmer, but I did find this page off of google

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/

Just a thought.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 29, 2008, 12:13:48 PM
Here is an idea, how about when you close or minimize the application it goes to the system tray, when you click on it it does right click/left click toggle (or it changes if you use the 3 second light toggle). I am not a good programmer, but I did find this page off of google

http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/

Just a thought.

Easy ways of setting the system tray on Windows or the Dock menu on Mac OS X were introduced with Java 6, but my application is still using Java 5.
Most Macs still run Java 5...

Are you really interested in a Dock/Tray menu or do you just want to toggle "right click/left click"?
What exactly do you mean with "right click/left click toggle"?

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: RiXtEr on May 29, 2008, 02:31:55 PM
If you have to change a bunch of code, or if it breaks compatibility, I wouldn't worry about it. What I was meaning about the toggle, is if you click the tray icon once its a right click if you click it again its back to normal. Seriously you have an awesome program and that would be more of an enhancement than anything else.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 29, 2008, 03:00:14 PM
What I was meaning about the toggle, is if you click the tray icon once its a right click if you click it again its back to normal.

I still don't get it. Do you want the right and left mouse buttons to be switched? So that the mouse is moved and the right mouse button is pressed all the time?
Or do you just want to do a single right click and then get back to "normal" operation?

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: osvaldoasn on May 29, 2008, 03:39:47 PM
Your mouse smoothing can be used in windows version (C# - J. Lee)?

I use your App for Mac is very smooth!

Thanks!
Title: Re: Java Version, developed under Mac OS X
Post by: takai on May 30, 2008, 12:04:50 AM
Its a pity that this version depends on BlueCove, which doesnt support BlueSoleil 5.05 which is the only version of Bluesoleil to run on Vista x64.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on May 30, 2008, 01:36:32 PM
Your mouse smoothing can be used in windows version (C# - J. Lee)?

My mouse smoothing is very simple. It's just averaging the last 7 measurements.
Someone could easily add this feature to the C# app.

Its a pity that this version depends on BlueCove, which doesnt support BlueSoleil 5.05 which is the only version of Bluesoleil to run on Vista x64.

The Bluetooth compatibilities could be better,  I know. But BlueCove is the best library that I currently see.
Do let me know if you know of a better JSR-82 library that works with Mac OS X, Windows, and Linux...

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on September 30, 2008, 10:18:05 AM
Hello ujs,

Your program is very good. But I'd like one more feature to be perfect. Is it possible after the calibration a window showing the Wiimote's view like on BoonJin's program? This windows makes the calibraton too easy.

And Jason's program (wiimote presenter) intend to join in yours?

Sorry my bad English.
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 01, 2008, 10:38:40 AM
Hello ujs,

Your program is very good. But I'd like one more feature to be perfect. Is it possible after the calibration a window showing the Wiimote's view like on BoonJin's program? This windows makes the calibraton too easy.

I haven't used Boon Jin's program at all, just saw his screenshots.
I hope to have some time soon to try his program.

And Jason's program (wiimote presenter) intend to join in yours?

It's not possible to integrate Jason's program into mine for technical reasons.
And I also don't plan right now to add those features on my own.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on October 01, 2008, 06:27:12 PM
Thanks for the answers. But I saw one problem. I don't know why, but it seems that your program doesn't use the hole view area of the Wiimote. I know that because I used BoonJin's program first and with it I normally calibrated. With the Wiimote on the same position, the calibration failed with your program (I had to put the Wiimote a little far for a good calibration).

PS.: I use Windows XP Professional SP3, Widcomm 5.1.0.1100 Bluetooh Stack and last Java version (6 update 7).
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 02, 2008, 05:31:56 AM
Thanks for the answers. But I saw one problem. I don't know why, but it seems that your program doesn't use the hole view area of the Wiimote.

My program uses the Wiimote's whole field of view.

I know that because I used BoonJin's program first and with it I normally calibrated. With the Wiimote on the same position, the calibration failed with your program (I had to put the Wiimote a little far for a good calibration).

I can't tell you why this happened.


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: benpaddlejones on October 02, 2008, 06:24:34 AM
ujs
This is the problem most Windows users find with the Java version. I thought it was related to the sensitivity settings, ujs as you advised me the setting of your application is to maximum.

vbrayon you will find works fine on a small scale (laptop/small projection etc).

What would be interesting is if it could be tested in bootcamp. I wounder if its a Windows bluetooth/java thing, maybe related to the connecting through the OS rather than the stack. If Bootcamp works on the large scale it would narrow it to windows bluetooth.

That said, given Boonjin has focused on Windows and you on Mac. I think that you shouldn't need to spend excess time on testing and problem solving for windows, for the same reason Boonjin doesn't spend any time testing in Mac OS.

Thats why I sticky the post: http://www.wiimoteproject.com/wiimote-whiteboard/which-is-the-best-wiimote-interactive-whiteboard-application-for-you/ (http://www.wiimoteproject.com/wiimote-whiteboard/which-is-the-best-wiimote-interactive-whiteboard-application-for-you/) so users can select the best application for their OS.

Benpaddlejones :)

p.s. When you try Boonin's app in Mac OS can you let me know the results so I can update the above post :)

Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 02, 2008, 07:47:43 AM
This is the problem most Windows users find with the Java version. I thought it was related to the sensitivity settings, ujs as you advised me the setting of your application is to maximum.

But in this case, vbrayon had to put the Wiimote further away to make it work.
This sounds not like a sensitivity problem...

p.s. When you try Boonin's app in Mac OS can you let me know the results so I can update the above post :)

I can't try it on my Mac since I don't use Bootcamp or a VM like Parallels.


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 07, 2008, 05:10:18 AM
The next version of the application will be available in other languages if people are willing to volunteer. There are about 500 words to be translated.
So please contact me if you want to help to translate the program to the language(s) of your choice.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on October 10, 2008, 08:43:03 PM
But in this case, vbrayon had to put the Wiimote further away to make it work.
This sounds not like a sensitivity problem...
I believe it's really a sensitivity problem. Boonjin's program has a sensitivity adjust that is on level 5 for default (i put it on maximum and works well). Is not this the problem with your Java version? What's the level of sensitivity of your program?

Thanks!

PS.: I'm interested in help on a translation to portuguese-brazil.
PS.2: Visual calibration in BoonJin's program (Very interesting and necessary).
(http://i291.photobucket.com/albums/ll317/vbcrayon/Calibration.jpg)
Title: Re: Java Version, developed under Mac OS X
Post by: benpaddlejones on October 11, 2008, 03:25:22 AM
vbcrayon
I have already asked all these questions of ujs (he uses the max sensitivity).

The Java connects to the wiimote, through the API (read: http://en.wikipedia.org/wiki/API (http://en.wikipedia.org/wiki/API)). It is essentially an entirely different program method than Boonjin's & JCL's C++ that relies on an existing connection.

This process in the windows environment doesn't produce the same results as in a Mac environment. Java & BT are both individually more stable in the Mac environment also, so bringing them together produces the problems we experience.

The only advantage the Java version has over Boonjin's is a tiny bit more stable (through maturity more than anything, something that will come to Smoothboard over the next few months as it also matures and is debugged) and the main characteristic is the connection utility. Thex did an awesome job with his Wiimoteconnect if you are using the Windows BT stack. I'm hoping some programmers in the next few months take the challenge on to further Thex's work to incorporate Bluesoleil & Widcomm providing an all inclusive Wiimote connection utility for windows.

Benpaddlejones
p.s. You don't know any programmers interested do you?
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 11, 2008, 05:25:17 PM
I believe it's really a sensitivity problem. Boonjin's program has a sensitivity adjust that is on level 5 for default (i put it on maximum and works well). Is not this the problem with your Java version? What's the level of sensitivity of your program?

Benpaddlejones already answered this.

PS.: I'm interested in help on a translation to portuguese-brazil.

You're more than welcome to help. I might add that Francisco (http://www.wiimoteproject.com/index.php?action=profile;u=3356) already translated many parts to (European) Portuguese. I don't know how different the two languages are, but there must be some similarities :)
I can give you a translation account for both European and Brazilian Portuguese if you want.


PS.2: Visual calibration in BoonJin's program (Very interesting and necessary).

I actually tried Boon Jin's program for the first time today.
The "Visual calibration" (what you circled red in your image) is indeed interesting and useful, but not "necessary" in my opinion.
Nevertheless, I actually coded my own version of this today and it'll be included in the next release of my software.

Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on October 25, 2008, 02:35:46 PM
Quote from: benpaddlejones
...and the main characteristic is the connection utility...
Yes, I agree. Especially because on ujs programs, you just have to press the button 1 and 2 to work. I don't need to do any wiimote configuration in Widcomm

Bluetooth Stack. It seems it detects, connects and make pairing by itself automaticlly.
Quote from: benpaddlejones
...You don't know any programmers interested do you?
I have already programmed but in VB. I don't know if I can help somehow. And unfortunately I don't know anybody who can help.
Quote from: ujs
The "Visual calibration" (what you circled red in your image) is indeed interesting and useful, but not "necessary" in my opinion.
As I can see, without a view of the calibration area it becomes very hard to use de wiimote specially for simple people. It happends because depainding on

the screen size, in some points, the signal turns week or ends and only after many tryes and adjusts the wiimote can finally be used.
But your last version (0.98) almost correct this problem. I said "almost" because I have installed the last version in a Windows Vista with the Widcomm

Software and the "calibrated screen area" didn't show the real calibration view (as you can see in the image below).
(http://i291.photobucket.com/albums/ll317/vbcrayon/th_mouse.jpg) (http://s291.photobucket.com/albums/ll317/vbcrayon/?action=view&current=mouse.jpg)
The point 1 is the preview of the mouse position in the "calibration details". The point 2 is the same preview, but outside the screen in agreement with

"Calibrated Screen Area". And the point 3 is the really mouse position.
PS.: Everything works well but when the program starts everything is slow temporarily. This problem desappers when I minimize the program.
PS.2: if this function of preview calibration is working on mac (I belive it is) it explain the sensitivity problems on Windows told by me and

benpaddlejones.
Quote from: ujs
I can give you a translation account for both European and Brazilian Portuguese if you want.
Yes, I would be honored. But there would be few modifications in Francisco's translation. :D

Some soggestions:
- System tray fuction. For now a can fix this using a program named ACTUAL WINDOWS MANAGER
(http://www.actualtools.com/windowmanager/). Otherwise it showld be interesting if you program could do it for itself.
- I liked the 'right click' function. But I can't move objects in some programs. Explanation: On ArtRage program (freeware in

http://www2.ambientdesign.com/files/artrage2.5starteredition_win.msi), for example, you can only move the "stencil" by clicking with the right button + drag

(drag with right click). I thought in something like this: after "X" seconds stopped at the same point, instead of a simple right click, just change the

fuction (maybe make a circle line around the mouse as an alert). If stay in the same point and you stop pressing the button, than you have a simple right

click. With this we could have both, simple right click and drag with right click. For now I can do it using another program named DMOUSE

(http://www.swapmousebuttons.com/)
- Can you do something as I told in the topic http://www.wiimoteproject.com/project-ideas/real-tablet-pc-on-windows-vista/?
Title: Re: Java Version, developed under Mac OS X
Post by: ujs on October 25, 2008, 05:20:07 PM
... the "calibrated screen area" didn't show the real calibration view (as you can see in the image below).
(http://i291.photobucket.com/albums/ll317/vbcrayon/th_mouse.jpg) (http://s291.photobucket.com/albums/ll317/vbcrayon/?action=view&current=mouse.jpg)
The point 1 is the preview of the mouse position in the "calibration details". The point 2 is the same preview, but outside the screen in agreement with "Calibrated Screen Area". And the point 3 is the really mouse position.
[...]
PS.2: if this function of preview calibration is working on mac (I belive it is) it explain the sensitivity problems on Windows told by me and benpaddlejones.

The "Calibrated Screen Area" shows the area bounded by the 4 calibration points, not the corners of the actual screen.
It's works the same on all platforms, and doesn't explain the sensitivity problems on Windows.

Btw, I can't read anything in your image, it's too small.

PS.: Everything works well but when the program starts everything is slow temporarily. This problem desappers when I minimize the program.

What do you exactly mean by "slow"?
I didn't notice this when I tested the app on Windows XP.

Quote from: ujs
I can give you a translation account for both European and Brazilian Portuguese if you want.
Yes, I would be honored. But there would be few modifications in Francisco's translation. :D

I was just suggesting that you could take a look at Francisco's translation, since some of it could also be used for Brazilian Portuguese.
I'll send you a message with your translation account in a while.

Some soggestions:
- System tray fuction. For now a can fix this using a program named ACTUAL WINDOWS MANAGER
(http://www.actualtools.com/windowmanager/). Otherwise it showld be interesting if you program could do it for itself.

See my previous reply (http://www.wiimoteproject.com/wiimote-whiteboard/java-version-developed-under-mac-os-x/msg3860/#msg3860) about that.

- I liked the 'right click' function. But I can't move objects in some programs. Explanation: On ArtRage program (freeware in

http://www2.ambientdesign.com/files/artrage2.5starteredition_win.msi), for example, you can only move the "stencil" by clicking with the right button + drag

(drag with right click). I thought in something like this: after "X" seconds stopped at the same point, instead of a simple right click, just change the

fuction (maybe make a circle line around the mouse as an alert). If stay in the same point and you stop pressing the button, than you have a simple right

click. With this we could have both, simple right click and drag with right click. For now I can do it using another program named DMOUSE

(http://www.swapmousebuttons.com/)

I changed the right click function a while back, before that it worked like right button drag.
What you suggested (better control for drawing applications) will probably be possible in a future version.

- Can you do something as I told in the topic http://www.wiimoteproject.com/project-ideas/real-tablet-pc-on-windows-vista/?

I don't understand what you want. But I can tell you that I don't use Windows and won't develop specifically for it.


Uwe
Title: Re: Java Version, developed under Mac OS X
Post by: Francisco on October 26, 2008, 05:00:56 AM
Hi vbcrayon,

Please let me know your notes for Wiimote Whiteboard Brasilian translation.
It could help me to improve my Portuguese version.

Obrigado
Francisco
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on October 27, 2008, 04:36:52 PM
Quote from: ujs
The "Calibrated Screen Area" shows the area bounded by the 4 calibration points, not the corners of the actual screen.
It's works the same on all platforms, and doesn't explain the sensitivity problems on Windows.

Btw, I can't read anything in your image, it's too small.

Sorry. The correct image is:(http://i291.photobucket.com/albums/ll317/vbcrayon/th_mouse-1.jpg) (http://s291.photobucket.com/albums/ll317/vbcrayon/?action=view&current=mouse-1.jpg)
Anyway you have already explained, but why not corners of the actual screen? It would be VERY easier.. (boonjin's program is like that)

Quote from: ujs
What do you exactly mean by "slow"?
I didn't notice this when I tested the app on Windows XP.
After the windows starts and for the first time I open your program, all the mouse operations goes slow. I've tried Java's version 5 but didn't help (Clean Vista instalation).
Quote from: ujs
I was just suggesting that you could take a look at Francisco's translation, since some of it could also be used for Brazilian Portuguese.
I'll send you a message with your translation account in a while.
Yes, It will help a lot.
Quote from: ujs
I changed the right click function a while back, before that it worked like right button drag.
What you suggested (better control for drawing applications) will probably be possible in a future version.
But now, the "right click event" happends even when I drag something and stop. Should not be correct when I drag the function "right click" dosen't happend even if I stop?

Thanks
Title: Re: Java Version, developed under Mac OS X
Post by: vbcrayon on October 27, 2008, 04:42:58 PM
Hi vbcrayon,

Please let me know your notes for Wiimote Whiteboard Brasilian translation.
It could help me to improve my Portuguese version.

Obrigado
Francisco

Ok. No problem. But my translation start only next week. Ujs gave me the link of the server yesterday.
Title: Re: Java Version, developed under Mac OS X
Post by: Francisco on October 27, 2008, 05:02:44 PM
vbcrayon,

I will be waiting!

Estou curioso com a tua tradução para alguns termos que me deixaram algumas dúvidas... por exemplo:  "static" ou "adaptive".
Fico à espera da versão BR para me ajudar a melhorar a versão PT.

Um abraço e bom trabalho.

To admins:
When I reply to posts, all content window (and text area too) works like an hiperlynked to the pub link. In this case, clicking anywhere, makes Safari open a new window to penteractives.us.
Using: Mac OSX with Safari 3.1.2

Cheers
Francisco
Title: Re: Java Version, developed under Mac OS X
Post by: benpaddlejones on October 27, 2008, 09:20:12 PM
Francisco
I will pass to Dice.

Sorry, I stupidly hit edit instead of reply & over wrote some of your message, saving it before realising my stupidity!  >:(

Ben :)
Title: Re: Java Version, developed under Mac OS X
Post by: dice on October 28, 2008, 06:14:56 AM
I have already contacted Francisco by email but just letting everyone know that this problem has been fixed.  The problem was a simple </a> that firefox does not care about but safari does care.

Anyway sorry to all the safari users!

Dice :)