Forum Discussion

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

SDK: "Unity" vs. "Mobile"

I haven't been able to find the answer to this anywhere (correct me if it's out there). I noticed that on the Oculus SDK page ( https://developer.oculus.com/downloads/#sdk=any ), there is 1. an SDK for Unity (i.e. Rift), and 2. an SDK for mobile (Gear VR) which also contains a Unity package.

It looks like the files for each SDK differ considerably, but I'm not sure if that is because the version numbers differ (0.4.4-beta vs 0.4.1), or because the SDKs are incompatible.

Are they compatible? If not, then it kind of defeats the purpose of using a multi-platform engine (I am trying to build to Rift and to Gear VR with the same project).

3 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    They are not compatible yet, although perhaps it is possible to treat the Mobile 0.4.1 SDK as if it had the same API and inner workings as the Rift 0.4.1 SDK (which is pretty ancient at this point). As far as I know, for now the main point of the PC code that comes with the Mobile SDK is so that you can use a DK1 or DK2 to test stuff without deploying to a mobile device.

    Also, consider what happens if you want to develop for other HMDs not from Oculus -- you'll need a way to swap SDKs in and out of your project, or you'll be stuck hoping they all play nicely together. So even if/when Oculus merges the mobile and PC SDKs, you'll still have the same issue if you want to bring support beyond Oculus/Samsung products.
  • Yes, right now they are two separate SDKs. Eventually we'd like a unified code-base.
  • I see. Thanks.

    "drash" wrote:
    Also, consider what happens if you want to develop for other HMDs not from Oculus


    I actually got the Oculus (PC) SDK to work fine with Cardboard, just by using a different scene for each (due to camera rigs and "manager" scripts). Haven't tried it with the Gear.