Author Topic: DesktopVR with 3D vs 2D Objects  (Read 3486 times)

Offline Mintz

  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
on: June 03, 2008, 01: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, 03:49:53 PM by Mintz »



Offline tillydevine

  • *
  • Posts: 22
  • Karma: +0/-1
    • View Profile
Reply #1 on: June 03, 2008, 08: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!



Offline Mintz

  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Reply #2 on: June 04, 2008, 10: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, 10:32:53 AM by Mintz »