Forum Discussion

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

Tuscany demo - Unity Build question

I need some help.

When I run the downloaded version of the Tuscany demo:
(1)it runs directly to my Oculus Rift dk2 even in Extended Mode (I have 2x NVIDIA GTX 660 video cards connected to 6 monitors- so I understand that I have to use the EXTENDED rather than DIRECT mode)

2) When I build the Tuscany demo (DX11 off) with Unity Pro (1) it only runs at 20-50 fps (vs 75 fps for the downloaded version) and(2) it won't run directly to my Oculus HMD (like the downloaded version)

I suspect there is a build setting that I am overlooking...but what?

Thanks for your help!

9 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    "DarrinR" wrote:
    2) When I build the Tuscany demo (DX11 off) with Unity Pro (1) it only runs at 20-50 fps (vs 75 fps for the downloaded version) and(2) it won't run directly to my Oculus HMD (like the downloaded version)


    I would try the following:


    • Ensure this is the Oculus Unity integration for SDK 0.4.1.

    • Try building with DX11 on.

    • Ensure you are using Unity 4.5.3f3 or newer.

    • Ensure Quality Settings VsyncCount is set to 1 (i.e. vsync is enabled).

    I'd be curious to know if that solves it for you or not.
  • DarrinR's avatar
    DarrinR
    Honored Guest
    Hi Drash,

    Thanks for your reply!

    Unfortunately my builds open on the desktop - and nothing in the rift...

    I confirmed the following:
    1) using SDK 0.1.1.
    2) building with DX11 on
    3) using Unity 4.60b17
    4) Vsync count is set to 1

    A few things:
    Direct-to-rift mode crashes continually
    I have to alt-tab and then move window to "rift" - but judder and graphic quality are abysmal - and FPS is around 40-60

    When I use "-force-d3d9" FPS is an astounding 180 to 280 - but the judder is still awful in windowed - extended desktop mode...
  • "DarrinR" wrote:
    using Unity 4.60b17

    Actually, I would only recommend using version 4.5.2f1. We are still working on proper support for 4.5.3 and other beta versions. One of the known issues with other versions is that the monitor selection logic has changed. This probably explains at least a couple of the issues you are seeing. You can get 4.5.2 here: http://unity3d.com/unity/download/archive.
  • DarrinR's avatar
    DarrinR
    Honored Guest
    Thanks for the feedback...rolling back to 4.5.2 now...I hope this resolves some of these issues...
  • DarrinR's avatar
    DarrinR
    Honored Guest
    I rolled back to Unity 4.5.2f1 and rebuilt the Tuscany project including Drash's recommendations.

    Unfortunately this didn't fix the problem :(

    DIRECT_TO_RIFT.exe doesn't cause a crash an more...but images are sent to the monitor, not the HMD.

    From the standard executable, I can "force" demo to open in a window with SHIFT-mouse click - drag it into HMD view - but FPS are very low (20-50), even with "-force-d3d9"

    The downloaded "ovr_unity_0.4.1_demo_win\OculusUnityDemo" runs PERFECTLY - directly to the HMD and in 80+ FPS.

    I would really like to know how this was accomplished!
  • Try using extended mode, building for D3D9 and x86, and running DirectToRift.exe.
  • medart's avatar
    medart
    Honored Guest
    Hi,
    i need some help with tuscany demo too..

    the dowloaded demo works fine, but the builded one not.
    When i run the builded one there is no animation, player controller doesn't work, only camera controller is working, what i'm getting wrong?
    i've tryed with dx 11 on and off, x86 and x86_64
    unity 4.5.(0-1-3) sdk 0.4.1 win 7

    thanks for your help
  • medart's avatar
    medart
    Honored Guest
    I think was a problem in the project..
    sdk 0.4.2 a new project, now the player is working well