bjornblissing / osgoculusviewer

An OsgViewer with support for the Oculus Rift
Other
106 stars 67 forks source link

Unable to use only the tracker (ie. with no display) #10

Closed mungewell closed 10 years ago

mungewell commented 10 years ago

Maybe I'm missing something but the viewer does not seem to pick up and use the tracker for orienting the items on the display.

Disclaimer is that I don't have a real Rift instead I am using this project, which works with the official Oculus SDK.... https://github.com/yetifrisstlama/Foculus_Rift_Tracker_STM32F3DISCOVERY

Is it possible to enable the tracker, even when the (proper) display device is not found? Terminal reports following $ bin/OsgOculusViewer_deprecated cone_down.ac OVR::DeviceManagerThread - running (ThreadId=0x7f08cb14d700). OVR::DeviceManager - initialized. Warning: Unable to find HMD Device, will use default renderpath instead. Error: can't open file "" Error: can't open file "" glLinkProgram "" FAILED Program "" infolog: Vertex info

mungewell commented 10 years ago

Figured it out... Patch: https://dl.dropboxusercontent.com/u/34518077/tracker_only.patch

run as root and it works. :-) $ sudo bin/OsgOculusViewer_deprecated cone_down.ac

bjornblissing commented 10 years ago

Ok, I have looked at your patch. And what seems to be your problem is the call to the function getSensor(). For some reason this function is not working through the SDK with an emulated device. Maybe a bug report to the _Foculus_Rift_TrackerSTM32F3DISCOVERY project is in order?

But I will try to merge your suggested patch into this project as well since I believe it can be added without any side effects.