Closed artoonie closed 9 months ago
The CaptureFromTexture
script is missing a fix-up that was added into the CaptureFromCamera
script, apologies for that.
You just need to add the following to the PrepareCapture method of CaptureFromTexture.cs
at line 313:
#if !UNITY_EDITOR && UNITY_ANDROID
_isTopDown = false;
#endif
It should look something like this:
_pixelFormat = NativePlugin.PixelFormat.RGBA32;
_isSourceTextureChanged = false;
#if !UNITY_EDITOR && UNITY_ANDROID
_isTopDown = false;
#endif
SelectRecordingResolution(/*_sourceTexture.*/width, /*_sourceTexture.*/height);
This fix will make it into the next release.
All good, that patch works on my end. Thanks for everything Morris!
I noticed that CameraFromCamera has the same problem in some cases. I haven't confirmed, but I believe it's only when the output format is ImageSequence? In my case, changing _isTopDown from false to this worked:
_isTopDown = _outputTarget == OutputTarget.ImageSequence
I have not confirmed whether it's the output target or one of my other settings that I always use in tandem with ImageSequence, so check before using.
Fixed in AVPro Movie Capture 5.2.0
I've fixed up image sequence in the plugin so that we don't need to special case the _isTopDown flag in the script. This will make it into the next release.
AVPro Movie Capture 5.2.1 has been released. Please let us know if it has not fixed your issue.
Describe the bug CaptureFromTexture is flipped on Android on v5.1.8 (both X and Y).
I believe this is related to the release note:
Your Setup (please complete the following information):
To reproduce I haven't narrowed this down to a simple reproducible case yet -- still investigating, but when updating 5.1.7 to 5.1.8, suddenly my Android captures are flipped. I don't see anything that would cause this in any of the C# files in the project, so I expect it's in one of the java libraries.
Request A few options:
Additional Info Only happens on Android, not in Editor, not on iOS.