Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

unity 4.5 airplay SetTargetBuffers

Discussion in 'Editor & General Support' started by Dosetsu, Jun 5, 2014.

  1. Dosetsu

    Dosetsu

    Joined:
    Dec 22, 2011
    Posts:
    39
    unity 4.5 airplay SetTargetBuffers has introduced a new bug that complete ruins airplay.

    Calling

    mainCamera.SetTargetBuffers(secondDisplay.colorBuffer, secondDisplay.depthBuffer);

    displays only a screen Rect width 0.5 height 0.5 even though it reports a rect of 1x1
    Pleas fix this latest build, its a show stopper for anyone trying to do airplay that isn't mirrored

    I'm forced to run 4.3 which still works mostly aside from the resolution stretching problem.
     
  2. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Please submit a bugreport.
    Thanks!
     
  3. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    519
    I can't get AirPlay to work using Unity 4.5.0 or 4.5.1 either, and older Unity has various problems with iOS devices using lightning connectors. The app crashes when connecting/disconnecting lightning or hdmi cables most of the time, and displays a black screen or very occasionally other content in a strange viewport while also blacking out the primary iOS display (iPhone 5s, iPad Air, iOS 7.x with lightning connectors or remote AirPlay renderer like Reflector). Other times the display isn't detected and just shows black (yes, we're using Unity Pro).

    I've tried code from the official docs, AngryAnt's code on github, and some other forks that try to start the display using dll calls to Unity's displaymanager code... so it appears to be broken. We had stuff built in Unity 4.3 that worked ok using the same test code using older hdmi connections (iPhone 4s via hdmi, etc). It's pretty much a showstopper in Unity 4.5.x for our current projects targeting any iOS device with a lightning connector/AirPlay.

    edit: Bug report submitted.
     
    Last edited: Jun 17, 2014
  4. jxxxxst

    jxxxxst

    Joined:
    Nov 3, 2012
    Posts:
    50
    Any news on this ?
    Best Regards.
     
  5. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    519
    No, unfortunately. We had to abandon using it for our current project because we couldn't get any versions of Unity up to the latest v4.5.1 working correctly. We have submitted a bug report describing the various issues we ran into.
     
  6. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,600
    >>We have submitted a bug report describing the various issues we ran into.
    And bug report number is?
     
  7. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    519
    Last edited: Aug 25, 2014
  8. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,600
  9. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    519
    Hi Alexey, sorry I didn't submit a sample project at the time. I just suggested trying the simplest setup with sample code from the Unity documentation. It didn't work for us at all with OS X Unity 4.x - 4.5.1 and had a variety of different results and problems running on devices (iPhone 4S, 5S, iPad Air, iPad Mini Retina using iOS 7.x) with builds generated from the half a dozen versions of Unity we tried. I think the iPhone 4S was mostly fine, but the other hardware never worked right. It might be related to the lightning connector and whatever changes Apple made to output video via hdmi from the device.

    If you need a bug report project I can rebuild one from the testing we did, but it failed with the basic sample code to set up the second screen from your earlier posts (http://forum.unity3d.com/threads/unity-4-1-airplay-missing-docs.175336/) and docs (http://docs.unity3d.com/ScriptReference/Display.html). Issues included cropped screen output in various forms (sometimes vertically, other times only the left side of the screen showed anything), aspect ratio problems with squashed output, and black output even though the second Airplay screen was detected and the cameras were adjusting to show different content.

    Thanks for taking the time to follow up on this. We would have loved to have used the feature in the project we just finished and released a few days ago. We might be able to update it if newer versions of Unity are behaving - as mentioned, we haven't had a chance to check v4.5.2 or v4.6beta17 yet.
     
  10. gateway69

    gateway69

    Joined:
    Feb 18, 2010
    Posts:
    94
    Any updates to this guys? We just ran into this as well and looking at the various upcoming patches or releases im not seeing a fix
     
  11. greg-harding

    greg-harding

    Joined:
    Apr 11, 2013
    Posts:
    519
    No, we never got it working. I haven't seen any updates from Alexey or anything noted in the patch or new releases either.