mayakraft / SimpleOculus

Oculus Rift for native Mac OS X
28 stars 5 forks source link

How to get it working? #3

Open sixunone opened 10 years ago

sixunone commented 10 years ago

Hi robbykraft,

Thank you for posting such an useful example code. For some reason, I can't get your code working on my xcode. Could you show me how to set it up please?

  1. I can compile the project with no error. But nothing displays...
  2. Then I modify the MainManu.xib file. (I mapped the OculusView.mm to a custom View in a window).
  3. Rebuild, then the program starting up and the Oculus console start showing something then it suck. Looks like it stuck at "Yaw: 0.000000, Pitch: -0.000000, Roll: 0.000000".

Please see below Oculus console log: DeviceManager - HMD Found 3ed2:1 DeviceManager - HMD Found 3ed2:1 ----- Oculus Console -----

[x] HMD Found [x] Sensor Found


DisplayDeviceName: OVR0001 ProductName: Oculus Rift DK1 Manufacturer: Oculus VR Version: 0 HResolution: 1280 VResolution: 800 HScreenSize: 0.149760 VScreenSize: 0.093600 VScreenCenter: 0.046800 EyeToScreenDistance: 0.041000 LensSeparationDistance: 0.063500 InterpupillaryDistance: 0.062200 DistortionK[0]: 1.000000 DistortionK[1]: 0.220000

DistortionK[2]: 0.240000

Yaw: 0.000000, Pitch: -0.000000, Roll: 0.000000

Kind regards,

Matt

sixunone commented 10 years ago

Managed to get it working now. Thanks.

mayakraft commented 10 years ago

good to hear! feel free to share details if it's preventable in the code. thanks!

cskonopka commented 9 years ago

sixunone, is it possible you could share the solution? I'm at the same point but can't figure it out.