Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
rellissc's avatar
rellissc
Honored Guest
11 years ago

Oculus Headtracking Emulation

I was wondering if there is a way to simulate the types of input given by the oculus using mouse/keyboard.

The reason why I am asking is that I have 2 computers that I use regularly, one my desktop and one my laptop. I do a lot of development on my laptop since most of my free time is in between classes at school. For the moment, the majority of what I am doing doesnt require me to wear the rift itself to test, merely see the rendered result and any changes that motion of the camera might cause. (Im trying to get some HUD display things working properly) If there was a way to emulate the input of the oculus, I would be able to leave the rift at home, decreasing the chance of damaging/losing it.

I develop in Unity, if it makes a difference, but I figured something that emulated rift input would be useable no matter the development environment, since it is being run as a compiled executable.

Thanks!

6 Replies

  • kwaver's avatar
    kwaver
    Honored Guest
    Yeh i wanted an alternative for easy debugging rather than having to look through the rift all the time. I just wrote a simple camera manager which has references to the ovr camera as well as a standard first person camera. Hitting a designated key toggles between the two cameras and sets up the correct position and rotation.
    You can do this by calling enabled=true etc on the actual cameras for the ovr cam.
  • EmuZero's avatar
    EmuZero
    Honored Guest
    Yeah, I'm looking for something like this too, as I'm not always with my DK2.
    It'd be awesome if you could track a wiimote or PS3 controller orientation too!
    I'll try your idea for Unity. Does anyone have any idea for UE4 too?
  • I used this board in leiu of having a DK1 (or DK2... I wish, but too poor :( ) in order to get some development code working with Speed-Dreams (open source driving sim).
    https://www.youtube.com/watch?feature=player_detailpage&v=ffoFpm5pfEM#t=154

    The Dev board contains the ST-Link circuit which lets you program it via a standard USB cable.

    I should state that it emulates the DK1 tracker, which may (or not) be similar to the DK2. Also the newer SDK also looks for the presence of the display part of the Rift, so you probably have to make an EEPROM dongle to fake the screen as well.


    Simon
  • "mungewell" wrote:
    so you probably have to make an EEPROM dongle to fake the screen as well.


    I can help with that: For the annual CCC conference I made a bunch of these: https://events.ccc.de/congress/2013/wiki/Projects:VGA_EDID_Injector their purpose is to pretend to be some display device you've cloned beforehand. The project is open source, the schematics, board and firmware source code can be found here: https://github.com/datenwolf/vgaedidinjector

    For this year conference I'm designing version 2, which will have DVI-I connectors on either side; however no conversion between analogue and digital; maybe I'll include that in version 3.