Page 1 of 7 123 ... LastLast
Results 1 to 10 of 67

Thread: Compiz, Head Tracking, and the 3d Interface

  1. #1
    Join Date
    Apr 2007
    Location
    Ohio
    Beans
    354

    Compiz, Head Tracking, and the 3d Interface

    Watch the video on YouTube.

    What it is: The Compiz `headtracking` plugin uses OpenCV to track the three-dimensional location of your head relative to your screen and puts that data into some OpenGL transformations in Compiz to create the illusion that your display has depth.

    What you need: You will need a reasonable webcam that is V4L compatible (or in some other way works with OpenCV). You will also need to obtain OpenCV from CVS, as the Ubuntu package (even in Intrepid) lacks many important features the plugin makes use of (note: the libtool script was broken for me, its $echo wasn't set properly). Then you can get the plugin itself. You'll need a recent version of Compiz, preferably from git, but it should compile with Intrepid (I think).

    Who made this: The original distortion code is mine and was made for use with a Wiimote. The OpenCV tracking code was added by pingouinfarceur, who it would appear joined the C-F forums solely to post the patches.

    How it works: OpenCV is a video processing library that can track objects based on a definition file (which you'll probably want to make for your own face, unless you look like pingouinfarceur). This data is then used with some fancy trig and the OpenGL glFrustrum() function to distort the viewport in which Compiz renders. In order to make the effect visible, windows are also offset based on their z-depth (stacking order).

    Looking forward: If we work out the minor glitches, we may get `headtracking` merged into plugins-extra, and it may come standard with 9.04 - we'll see. Personally, I don't even have a camera that works with OpenCV, so working bugs out and extended testing isn't something I can do myself. At the very least, I'll try and get it packaged for Intrepid and put up a PPA later on.

    Discuss.

  2. #2
    Join Date
    Aug 2007
    Beans
    2,132

    Re: Compiz, Head Tracking, and the 3d Interface

    I think that's very cool, but how would you actually use it in your day-to-day life?

  3. #3
    Join Date
    Apr 2007
    Location
    Ohio
    Beans
    354

    Re: Compiz, Head Tracking, and the 3d Interface

    Quote Originally Posted by cardinals_fan View Post
    I think that's very cool, but how would you actually use it in your day-to-day life?
    To bring something over from the window-style GUI thread, you can use head tracking to literally look behind windows (though not full screen windows in the current set up). The other possibility has already been demonstrated outside of the realm of Compiz (and a long time ago): viewing 3d models (which we can do in Compiz with the `cubemodel` plugin).

  4. #4
    Join Date
    Oct 2006
    Location
    Scotland
    Beans
    1,305
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Compiz, Head Tracking, and the 3d Interface

    anything new is a bonus, look forward to it's further development
    Linux user #435981 / Ubuntu user #9751

    "...when i hear the voices, i ignore them, and do something constructive, like play with my ubuntu..."

  5. #5
    Join Date
    Aug 2007
    Beans
    2,132

    Re: Compiz, Head Tracking, and the 3d Interface

    Quote Originally Posted by WindowsSucks View Post
    To bring something over from the window-style GUI thread, you can use head tracking to literally look behind windows (though not full screen windows in the current set up). The other possibility has already been demonstrated outside of the realm of Compiz (and a long time ago): viewing 3d models (which we can do in Compiz with the `cubemodel` plugin).
    I see. I prefer the tiling approach, but that could be quite useful with a floating window manager.

  6. #6
    Join Date
    Feb 2006
    Beans
    322

    Re: Compiz, Head Tracking, and the 3d Interface

    i think i am going to pick up a webcam for this. i been meaning to get one.

  7. #7
    Join Date
    Oct 2008
    Beans
    10

    Re: Compiz, Head Tracking, and the 3d Interface

    This just makes you sea sick - faux 3D on a 2D screen looks like a bad "hologram" you used to get in 90's comics.

  8. #8
    Join Date
    Feb 2006
    Beans
    322

    Re: Compiz, Head Tracking, and the 3d Interface

    what happens if two people are sitting side by side? or if someone walks in behind you?

  9. #9
    Join Date
    Apr 2007
    Location
    Ohio
    Beans
    354

    Re: Compiz, Head Tracking, and the 3d Interface

    Quote Originally Posted by dracule View Post
    what happens if two people are sitting side by side? or if someone walks in behind you?
    I'm not sure how much leeway OpenCV will give, but assuming they look nothing like you it shouldn't cause problems for you - they'll see a slightly distorted screen, though. If your twin walks into view, that may screw with things.

  10. #10
    Join Date
    Feb 2006
    Beans
    322

    Re: Compiz, Head Tracking, and the 3d Interface

    Quote Originally Posted by WindowsSucks View Post
    I'm not sure how much leeway OpenCV will give, but assuming they look nothing like you it shouldn't cause problems for you - they'll see a slightly distorted screen, though. If your twin walks into view, that may screw with things.
    Sounds pretty cool. is there a way to see a list of supported cams?

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •