Sponsors of Wiimoteproject.com
IRGreat.com
Wiimote Project » Forum » Wiimote Projects » Wiimote Desktop VR/Head Tracking » DesktopVR with 3D vs 2D Objects
Pages: [1]
  Print  
Author Topic: DesktopVR with 3D vs 2D Objects  (Read 1044 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 6
Offline Offline
View Profile
« on: June 03, 2008, 02:40:26 PM »

I've created my own project based on this DesktopVR program, and I have a problem/question. My program involves 3D models, and as you move left/right, the model rotates left/right accordingly. When you move back/forward, the model zooms out/in. Now, here's where the problem is; when you move left/right, the model moves smoothly left and right. However, when you step back/forward, the models "jitters", or zooms in/out rapidly back and forth. It gets worse the further you back away from the Wiimote.

I use a simple distance formula between the two IR LEDs to determine how far you are from the Wiimote. Is there a better algorithm that would allow zooming in/out to be smoother? Does the "jittering" problem have anything to do with the matrix math (doubt it)? Does using a 3D model instead of 2D vectors/pics (like in the DesktopVR demo) promote the problem?
« Last Edit: June 03, 2008, 04:49:53 PM by Mintz » Logged
*
Karma: +0/-1
Posts: 22
Offline Offline
View Profile Email
« Reply #1 on: June 03, 2008, 09:35:12 PM »

Some people use the average of the previous six or eight coordinates to get a smooting effect. Are you going to release the code? I would LOVE to play with this!
Logged
*
Karma: +0/-0
Posts: 6
Offline Offline
View Profile
« Reply #2 on: June 04, 2008, 11:25:13 AM »

Thanks, that definitely smoothed it out a lot. However, it's still doing it just a little bit, enough for it to be noticeable. Is there any other way to smooth it out even more? I've tried rounding the distance between the two IR points to four or five decimal points, but that didn't do much of anything at all.

It's still also slightly worse the further you move away from the Wiimote. Does the Wiimote just suck the further you are from it?

I don't think I'll be able to release all the code, but there's a small chance I will.
« Last Edit: June 04, 2008, 11:32:53 AM by Mintz » Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics