bjornblissing / osgoculusviewer

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

Units calibrated using the 0.3.2 SDK will give -90 or -pi/2 off for rotation. #12

Closed benbennett closed 10 years ago

benbennett commented 10 years ago

Don't know if it is configuration issue or what. Starting the example looking strait ahead is looking up. Looking strait down looks at the cow. I have a fix but I am trying to figure out if it is just a configuration issue or if I am missing something.

bjornblissing commented 10 years ago

I guess that you have an Oculus unit connected to your system?

It may be related to initial calibration of the orientation sensor in the HMD. If you have the device positioned on you desk when you start the program it will assume that this is the forward direction. If you then put the device on you head you will get orientations messed up.

Try putting on the HMD before you start the program and see if that helps.

bjornblissing commented 10 years ago

I have just made a commit (30058979fb706999426ae698dd11aa1cdc3f9322) which makes it possible to reset the sensor orientation via pressing R-key on keyboard.

Would you mind pulling the latest code and see if this fixes your problems?

benbennett commented 10 years ago

I had the sensor orientation correct sitting on my desk. I don't know if there is OSG env setting or calibration issue with the oculus. The oculus demos work correctly though. On a side note one should be looking strait at the cow when things start up?

bjornblissing commented 10 years ago

Have you tried the latest commit (30058979fb706999426ae698dd11aa1cdc3f9322) and resetting the sensor with the keyboard command?

If you disconnect the Rift unit and start the program the default view should be visible, i.e. what you see in this view should be the same as the startup view with the Rift.

This is what I see when I start the program: OsgOculusViewerCow

benbennett commented 10 years ago

Thanks but it might be a rift issue . I am on linux and use the 0.32 version to calibrate. https://developer.oculusvr.com/forums/viewtopic.php?f=34&t=6735

I am a sick today. I will get back with you in few days.

bjornblissing commented 10 years ago

Well, I see why this could be a problem. The 0.3.2 SDK is a quite different animal compared to 0.2.5c. So the configuration saved from 0.3.2 will probably work bad with software compiled against 0.2.5c and below.

This is probably not something that I will fix in the current codebase. Instead I will focus on getting full support for the new SDK(#9), which hopefully will solve your problem as will.

bjornblissing commented 10 years ago

@benbennett Have you tried the new interface? Does it work better?

benbennett commented 10 years ago

I haven't yet, I have almost got it completed using the 0.3.2 SDK. Kinda pointless I know but they haven't got SDK for linux out for 0.3.2 . All my current machines are linux :) need to set something up on windows