1. Help us improve the editor usability and artist workflows. Join our discussion to provide your feedback.
    Dismiss Notice
  2. We're looking for feedback on Unity Starter Kits! Let us know what you’d like.
    Dismiss Notice
  3. We’re giving 2017.1 beta testers a chance to win t-shirts and a Nintendo Switch. Read more on the blog.
    Dismiss Notice
  4. We want to know how you learned Unity! Help us by taking this quick survey and have a chance at a $25 gift card
    Dismiss Notice
  5. Are you an artist or level designer going to Unite Europe? Join our roundtables there to discuss artist features.
    Dismiss Notice
  6. Unity 5.6 is now released.
    Dismiss Notice
  7. Check out all the fixes for 5.6 on the patch releases page.
    Dismiss Notice

VR on macOS preview build

Discussion in 'VR on macOS' started by aetfi, Jun 5, 2017.

  1. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
    Hello!

    To get started with the VR on macOS preview build, you can start by downloading the preview build #2 from http://beta.unity3d.com/download/f196ae3d2614/public_download.html

    - Based on Unity 5.6.1p1, with additional Metal performance optimizations for VR
    - Initial support for eGPUs (External graphics)
    - Support for SteamVR Beta
    - Supports Multi-Pass and Single-Pass rendering, with Metal 2 specific optimizations planned for later release
    - Preview build #2 fixes an APFS compatibility issue

    Please make sure you've enabled "Metal Editor Support (Experimental)" from your
    standalone player settings and for Virtual Reality SDKs, added "OpenVR" to your list

    EDIT: Link updated for preview build #2
     
    Last edited: Jun 7, 2017
    God-at-play, Dad and ManjitSBedi like this.
  2. Atrixx

    Atrixx

    Joined:
    Feb 8, 2012
    Posts:
    11
    Oh whoops! This build (and Unity in general) doesn't support APFS!
    So upgrading to High Sierra (as per https://blogs.unity3d.com/2017/06/05/xr-on-ios-and-macos/) and using this build for a VR project isn't at all what you'd want to do like to do!

    I've created a bug report #918182 for this.
    If however, you work from an external drive, you can open your VR project, however Unity struggles being installed on the boot drive :~(

    Good luck!
     
  3. micsun-al

    micsun-al

    Joined:
    Apr 19, 2016
    Posts:
    3
    Boo.
     
  4. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
  5. micsun-al

    micsun-al

    Joined:
    Apr 19, 2016
    Posts:
    3
    I'm in the middle of reinstalling everything on to a FAT32 usb stick to avoid having to wipe the computer and reinstall everything.

    I don't suppose APFS support is in a potentially a soon to be released patch?
     
  6. machenmusik

    machenmusik

    Joined:
    Jul 22, 2015
    Posts:
    3
    easier workaround if you are on 10.13:
    - shrink your APFS partition and make a HFS+ partition big enough to hold Unity as well as your Unity projects
    - move Unity and your projects to the new partition
    - run Unity from the new partition and open your project from the new partition
    - notice that things work again :)
     
    Last edited: Jun 7, 2017
  7. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    I had a very quick go and got it working on Sierra but my mac is a bit long in the tooth for this stuff. At least I now know Apple are supporting the whole eGPU thing via thunderbolt 3 so I can go ahead and buy a new mac without having to wait for some possible future mac pro tower that might take graphics cards.
     
  8. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    84
    Does this build and SteamVR beta work with the Oculus DK2?
     
  9. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    The SteamVR page only mentioned the Vive when I looked yesterday.
     
  10. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
    God-at-play, Dad and Atrixx like this.
  11. seon

    seon

    Joined:
    Jan 10, 2007
    Posts:
    1,440
    I know this thread is specific to macOS, VR and Metal2, but I have. question regarding Metal2 and older Metal support going forward. Will Unity automatically detect if a device/platform/OS supports Metal2 or just Metal and use the appropriate API? Will Metal2 be a different rendering option in the playerSettings picker for iOS/macOS?

    It seems the are some core improvements and API changes in Metal2 but I am unsure how it's going to be handled down the line in Unity when we publish and want to support older hardware/OS's. Will we just pick Auto and Unity will do he correct thing?

    Can anyone shed light on this?

    Thanks :)
     
  12. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
    No worries, Metal 2 is just marketing/version number made public. On a Mac itself, there's no Metal2.framework for example, just evolution over existing API calls that each year adds new features to Metal.framework

    Unity will use these new features based on which OS version it is running, coupled with other feature capability checks.
     
  13. seon

    seon

    Joined:
    Jan 10, 2007
    Posts:
    1,440
    Awesome, good to know, thanks!
     
  14. God-at-play

    God-at-play

    Joined:
    Nov 3, 2006
    Posts:
    293
    This is confusing, because the blog post that led me here suggests High Sierra is required, yet the conversation here makes it sound like using Sierra also works. Please advise, do we specifically need to use High Sierra or not?

    Am I right in assuming that Nvidia is currently not at all supported in High Sierra? Basically to get started with desktop VR development in OS X, we need both High Sierra and AMD hardware?

    I currently have a Node & 1080, and was able to get that working in Sierra using the automate script. I would love the extra performance plus lower energy usage Nvidia gives me, but it seems like at least the near future of OS X VR development is AMD-only.
     
  15. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    84
    Also, it's not clear if using older hardware (not iMac Pro or external GPU) VR will not work at all, or we just won't have full desired performance.
    I mean... can I at least build and test with an older macbook pro?
     
  16. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    Sierra works. It lacks metal 2 (which I don't think Unity uses yet anyway) and a direct VR display access mode that High Sierra brings. But steamVR does support Sierra, at least at this stage anyway.

    There are no High Sierra Nvidia drivers yet and whilst it might be possible to mess with the Sierra drivers to get them to install on High Sierra, its just adding another layer of unsupported mess to the mix to even try this at the moment. I would recommend going ahead and trying SteamVR on your current Sierra setup, and if it works for you then try Unity VR.
     
    God-at-play likes this.
  17. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    Not many mac's have built in graphics capabilities to run VR without having such poor performance that the VR experience will suck too much - framerate is hugely important with VR because as soon as you move your head without a sufficient framerate, it feels quite terrible, much worse than poor performance with traditional displays that people can more easily live with when testing. And the GPU's in mac laptops to date are way too poor to come anywhere close to acceptable with VR - perhaps you'll get away with trying it with very basic scenes but even then I have my doubts. There is a reason they have chosen to promote external gpu enclosures for their laptops and VR in future.

    Aside from really bad performance issues there is nothing to stop you trying, but you are hugely less likely to have a good enough experience compared with people that are trying to take a peek at this stuff using their old Mac Pro towers with more modern GPU added, or other options that I'm about to go on about in the next paragraph.

    The very top model of non-pro iMac 27" that was released the other day will support VR because it has Radeon 580 GPU which is just about good enough for some VR joy as far as I can tell. Still a very expensive option though, but much less than the not-released till December iMac pro. Likewise in the past people have been able to get external GPUs working on machines that don't have thunderbolt 3, i.e. ones with thunderbolt 2 using an adaptor cable to one of the thunderbolt 3 external enclosures that are popping up these days - Apples own external GPU dev kit uses an enclosure that isn't made by them but rather Sonnet, and it is likely that several other manufacturers enclosures will work so long as they use the right thunderbolt 3 controller. Exactly what will be properly officially supported by Apple longer term, both in terms of which Macs, enclosures and graphics cards is unknown but I'm sure it will all be pretty high-end stuff. In the meantime lots of stuff is described as unsupported in apple documentation but that doesn't necessarily mean it won't work, just that people are on their own in terms of support for all the possible alternatives at the moment.
     
    Last edited: Jun 9, 2017
    God-at-play likes this.
  18. God-at-play

    God-at-play

    Joined:
    Nov 3, 2006
    Posts:
    293
    Thanks! I can still return my 1080, so I'm trying to decide if I should. Apple's dev kit uses a Radeon RX 580 like you can get in the iMac, which is very close to the recommended specs for VR of a 480. The min spec is a 470.
     
  19. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    I would be loathe to give up the performance of the 1080 if I you have any other use for it beyond the mac VR stuff, especially as steamVR on the mac is clearly at an early stage. If I knew how well VR was working with High Sierra compared to Sierra then it might be easier for me to judge but I've only tried it on Sierra so far, using a mac that is out of date when it comes to CPU etc but with beefy nvidia GPU. I think I will stick with windows VR until I get a new mac, and am currently working out whether I want to go down the imac road or laptop with external graphics card. Since I already have a good windows desktop machine, dont like the UK price of the top 27" imac with 580 GPU, could do with a portable machine and am fascinated by the external gpu stuff, I guess one of the new macbook pro's will be the best option for me.
     
  20. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    1,157
    If AMD Vega stuff was already available then its quite possible I'd tell you to return the 1080 and get one of those instead, but timing not quite right for that at the moment - could be soon though?
     
  21. jm999

    jm999

    Joined:
    Feb 10, 2014
    Posts:
    4
    I got my eGPU devkit from Apple today. It was pretty easy to set up the hardware eGPU box, cables, etc. I got High Sierra (beta) + SteamVR (beta) + Unity (MacVR beta) all set up and it does work with the Vive. In the Steam VR white room, the frame rate is fine, however in Unity's run mode, the frame rate was very bad - like 20 fps in a nearly empty scene. I'm hoping that I just have something set up incorrectly. I have a recent MacBook Pro with touchbar, but not the very latest and I have a slightly older Vive headset. I will try to A/B test with other configurations to narrow down the problem. Did anyone else get their eGPU devkit yet?
     
    mizkun and elbows like this.
  22. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
    I've only got about a day worth of eGPU experience so far but at this point it's pretty much expected that there's work in progress all over the place, not just Unity :)

    20fps on simple scene sounds weird, but I've seen an issue with SteamVR beta where sometimes the framerate just dropped to 10fps for me, until I made sure all SteamVR background processes were killed and restarted SteamVR.
    This was unrelated to eGPUs.

    As for eGPU itself, it's currently meant to be used against external monitors, ie. there's no acceleration support for internal monitors. If an app window using eGPU ends up to internal monitors, that might be the cause for performance issues atm.

    The changes in Unity at the moment are related to selecting the proper GPU based on the display where the app was launched from (eGPU/external monitor combo) or with VR, use the GPU that SteamVR has HMD attached to.
     
    ManjitSBedi and elbows like this.
  23. samskivert

    samskivert

    Joined:
    Mar 11, 2016
    Posts:
    1
    I just set up my eGPU (the Radeon RX 580 kit Apple sells) and am seeing similar poor performance. I thought maybe it was because I had Unity running on a display connected directly to my MBP, but I set up another monitor and connected it to the eGPU (and disconnected the original; so just eGPU monitor and the laptop display, and the Vive also plugged into the eGPU). The eGPU connected monitor is the main display and Unity starts up on that display, but the framerate when presenting to the Vive is unusably low. The missed frames display on the Vive settings is a blood bath (see attached).

    I've restarted SteamVR (and the entire laptop) and tried prodding it in numerous ways, but nothing seems to improve the situation. Any useful debugging info we can provide?
     

    Attached Files:

    mizkun likes this.
  24. jm999

    jm999

    Joined:
    Feb 10, 2014
    Posts:
    4
    I had a chance to play with the eGPU + Unity a bit more, but just briefly. The performance is considerably better as long as the chaperone fences are not active. When I'm in the middle of the room it is much better (still not great) and when I approach any edge, the frame rate drops considerably. Clearly that is some sort of bug, but might be an interesting data point.

    I couldn't find any other Mac VR content to try for comparison. The WebVR demos in Firefox Nightly don't seem to recognize the headset and none of the VR stuff on Steam runs on the Mac yet. Is anyone aware of any demo content that can be used for comparison, or maybe OpenVR sample code that runs on macOS?
     
  25. rsodre

    rsodre

    Joined:
    May 9, 2012
    Posts:
    84
  26. firefoxNX

    firefoxNX

    Joined:
    Jun 17, 2017
    Posts:
    1
    Last edited: Jun 17, 2017
  27. God-at-play

    God-at-play

    Joined:
    Nov 3, 2006
    Posts:
    293
    The link is still for preview #1, can we get the preview #2 link? By the way, is there a page we can navigate to from the website? Like there was for the Daydream Technical Preview.
     
  28. aetfi

    aetfi

    Unity Technologies

    Joined:
    Jun 5, 2014
    Posts:
    14
    The link was updated from c92f68c59a22 to f196ae3d2614, the version remains the same (5.6.1xMacVR-p1)
     
  29. dpentecost

    dpentecost

    Joined:
    Apr 3, 2009
    Posts:
    116
    Thanks, this seems to work around the APFS issue. But I am still hoping for a video or step by step tutorial from someone who is having some success with this. Guess I'll keep trying the versions and scouring this forum!
     
  30. God-at-play

    God-at-play

    Joined:
    Nov 3, 2006
    Posts:
    293
    Gotcha, thanks, so I'm assuming by "the version remains the same" you just mean the name of it, but otherwise this second link is actually a different version and that someone forgot to increment it to p2?
     
    Last edited: Jun 21, 2017 at 9:01 AM
  31. mizkun

    mizkun

    Joined:
    Jul 18, 2016
    Posts:
    1
    I have same issue. Miss over half frames even with very simple Unity project... How can I debug into this issue?
     

    Attached Files: