Giter Club home page Giter Club logo

Comments (3)

thaytan avatar thaytan commented on August 29, 2024

The short frame warnings happen when the image analysis takes too long - because it all happens in a single thread at the moment. I plan at some point to split the capture and analysis into several threads. Frames will still occasionally get dropped then, if things are too slow, but it'll be clean entire frames and not random USB packets.

The 2nd error happens because when the sensors are plugged into a USB2 port, they only offer JPEG compressed video frames, and I haven't written any code to support capture+decode of JPEG yet.

The "drifting away" happens when the tracking finds the headset in the cameras for a short moment and then loses it again - without the feedback from the cameras, the IMU interpolation loses position really rapidly. The filtering that I'm working on at the moment will help with that a little, by extracting better bias values and by tracking the variance in the position to know when the position is so uncertain that it should not be reported any more.

from openhmd.

LameMonster82 avatar LameMonster82 commented on August 29, 2024

Thank you for the explanation. I read your blog post about OpenHMD and the Oculus rift which gave me a basic idea of how the IMU implementation works and what is used for. However since it only provides orientation data isn't it better to "lock" the headset/controllers in one place (until detected by the sensors) rather than allowing them to "drift away"? It may help with ghosting in the future and prevent further motion sickness.

Also another question. Is it possible to get a view of the rift sensor and what the driver recognizes as the LEDs? Like the OpenHMD-RiftPlayground demo but with updated code. The one in the demo seems to be very old and funky with challenging environments.

from openhmd.

thaytan avatar thaytan commented on August 29, 2024

What's happening is that initially the IMU is only used for 3DOF orientation - until the computer vision that's looking for the devices in the sensor data detects a solid lock. At that point, it starts trying to interpolate position using the IMU to help with the tracking. However, because it's all still under development, there's logic missing to limit how much position interpolation is allowed before requiring another good detection lock.

It's possible to use pipewire to look at the sensor feed if you build with that available. OpenHMD will then produce a pipewire video source that shares a debug view.

from openhmd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.