Author Topic: Smoothing for Wiimote Whiteboard 0.2  (Read 63080 times)

Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #15 on: June 06, 2008, 05:57:05 AM
Hm, just realised its a problem with 0.2, i thought i was using 0.2 but i was using 0.1

Maybe we should try comparing the changes of the code from 0.1 to 0.2?
As a temporary measure for vista users, maybe we can just place the mouse emulation code from Johnny's 0.1 into the 0.2 with smoothing.

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline takai

  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Reply #16 on: June 06, 2008, 05:59:34 AM
The problem is within the mouse down code for 0.2, and all of the new editions display it.

The reason not everyone is having the issue with 0.2 is that its x64 specific. Basically the offset in the INPUT struct is offset by the size of the pointer, which in x64 is 8bits rather than 4bit.

Ill start a new thread regarding it.



Offline thex

  • *
  • Posts: 83
  • Karma: +8/-0
    • View Profile
Reply #17 on: June 06, 2008, 06:47:31 AM
[youtube]http://de.youtube.com/watch?v=A2EeArfPhW4[/youtube]

works here with vista and 0.2 with smoothing
stack is ms vista std stack
connection established with my wiimote connect software

thex

Please donate via paypal to the WiimoteConnect project

project thread!


Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #18 on: June 07, 2008, 04:53:33 AM
I have just followed takai's method in solving the issue for vista 64bit users.
It works well with my system (win xp 32bit). I'm not sure about the rest, but if anyone have issues or successfully run this version, please post here.

Many thanks to takai!

Source code and executable here:
http://www.boonjin.com/wp/2008/06/02/mouse-smoothing-for-wiimote-whiteboard

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #19 on: June 08, 2008, 02:59:56 AM
Is there a possibility to have an IR Pen which has a bigger range as the regular ones?

I'd love to just point with my pen on the whiteboard from 5-6 meters away.
Do you think thats possible?

Ask your question in Tech Chat or Project Ideas as a NEW topic you will get more responses from the Hardware experts.

Benpaddlejones :-)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline thex

  • *
  • Posts: 83
  • Karma: +8/-0
    • View Profile
Reply #20 on: June 08, 2008, 06:39:48 AM
yes this is possible but it is off topic

you can use an ir laser to point at the screen. you can find these in optical laser mouses.

thex

Please donate via paypal to the WiimoteConnect project

project thread!


Offline Omri

  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Reply #21 on: June 14, 2008, 05:58:52 PM
Thanks a lot!
at last I managed to actually use the WiiMote I bought.
Tomorrow I will use it in class.

Thanks again, and I don't want to bother you more, but is there any chance you can make the VR Display work as well in the same method?



Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #22 on: June 14, 2008, 06:20:02 PM
Thanks a lot!
at last I managed to actually use the WiiMote I bought.
Tomorrow I will use it in class.

Thanks again, and I don't want to bother you more, but is there any chance you can make the VR Display work as well in the same method?

Do you mean the smoothing effect? I have not used the VR display thing before but I might try it soon.
Thanks for your feedback. :)

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline jeremy9983

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Reply #23 on: June 17, 2008, 06:18:55 PM
Hey boonjin, great job on implementing the smoothing in Johnny Lee's app.  It makes a really significant difference. I've got a request of a feature that I think would be pretty useful.

I know you've already developed the stand alone app to handle right clicking, where you can toggle which click you would like to use, but how about integrating a right clicker into the whiteboard app?

I remember reading about the Java version that someone else was working on and they said they implemented right clicking by using a timer.  So basically, if someone holds down the left click for one second at the same position, it would perform a right click instead. 

I guess you would have to use the previous few points and take an average to make sure they weren't clicking and dragging (a little movement is to be expected, so there may be some threshold values to play around with). 

I can't think of too many times where you need to perform a left click and hold it down without moving the cursors position, so it seems like it should work pretty well.  This way you wouldn't have to have a separate app, and you wouldn't have to constantly toggle between left and right clicks. 

I was playing starcraft on my projected whiteboard the other day, and I really wish I had an easy right click  :D  If I could code better I would definitely try it myself. 

It would be nice if you got to toggle on/off the right click functionality as well like you do the cursor control, and maybe have a drop down box to select the wait time to perform the right click (.5 seconds, 1 second, 2 seconds.)

If you don't have the time or such it's understandable, but I think this would be a neat little addition that would greatly increase the functionality without making any changes to the hardware.



Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #24 on: June 17, 2008, 08:14:06 PM
Actually I have been developing a hardware based solution but its a bit difficult to set up. By using a microcontroller which blinks the IR diode at a certain pattern depending on which button was pressed, I have managed to use the software to differentiate the clicks.

For example, I can now right click and left click with two different buttons. However, it is still very messy and too huge for a pen. :)

For your suggestion, I think it will be an easier solution. Furthermore, benpaddlejones has already suggested to me to integrate the right clicking function into Johnny Lee's app.

A problem with the click and hold solution will be, should the software wait for a delay before left clicking every time? Cause currently, when an light source is found, the software will left mouse down immediately. As long as the light source is present, the left click will be held down.

If we modified the program to wait for a right click in just say 1second, we have some problems with the left click also.

What do you think?

Maybe another solution is also clicking outside the screen area (where the wiimote still tracks). I saw this method implemented somewhere before.

Thanks for your suggestions!

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #25 on: June 17, 2008, 08:42:30 PM
Boonjin
I think integrating your rightclicker with your whiteboard smoothing is all you need.

Right click is only used occasionally and having to click down on the windows taskbar before right clicking is no big deal.

The clickhold at one location in other apps requires a hold for 5 sec, clicking down on the taskbar then next click is a right click in quicker!

Plus the programming is mostly done, just need to fix Onenote/Powerpoint pen probs then all good.

Benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline baconismidog

  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
    • Wii Whiteboard - the way I did it
Reply #26 on: June 18, 2008, 05:43:35 PM
I think that the "Click off screen" would be a good option - actual use would be similar to clicking on the little pen in the taskbar but you could go to any edge of the screen, not just the bottom right edge and you would not have to be as accurate.

Just my 2 cents - but I do like the right clicker as it is too ;)

B


Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #27 on: June 18, 2008, 08:37:35 PM
I am now trying to port over the rightclicker into the whiteboard.

Since different people might have different choices in the rightclicking option, maybe I will slowly add the various different methods into the WiimoteWhiteboard.

Keep the suggestions coming. :)


Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #28 on: June 18, 2008, 08:46:08 PM
Boonjin
Yes I think choice is the best option. Gives most functionality.

Start with:
a) Taskbar icon
b) Outside screen parameters

Then if poss add the click hold option, I suume will need a lot more programming than the above.

Benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #29 on: June 18, 2008, 08:49:58 PM
Thanks
Will try to work on this as fast as possible :)

Any more quick changes needed?


Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url