UnityPlugin-AVProMovieCapture icon indicating copy to clipboard operation
UnityPlugin-AVProMovieCapture copied to clipboard

360 Stereo Capture when using HDRP

Open AndrewRH opened this issue 5 years ago • 19 comments

Unity seem to have left out 360 Stereo capture support in HDRP.....We'll wait for them to add support for it....Unity 2019.3.4 still missing support for it....

https://forum.unity.com/threads/stereoscopic-capture-value-not-working.766526/

AndrewRH avatar Mar 06 '20 19:03 AndrewRH

@AndrewRH -- Has anything changed here in the last two months on the Unity side? Trying to get 360 Stereo capture using URP and having the same issue of Top and Bottom being identical regardless of the inter-eye setting. (except for particles appear to show depth, oddly). Thinking about trying the Unity Recorder instead of AVPro Movie Capture, but the link suggests that it will run into the same fundamental problem, right?

eshaftel avatar Jun 02 '20 18:06 eshaftel

Im having issues capturing monoscopic 360 video in URPL, anyone has managed to do it?

adriansotov avatar Jul 07 '20 20:07 adriansotov

@adriansotov Could you explain the issue is?

AndrewRH avatar Jul 07 '20 22:07 AndrewRH

@AndrewRH When using the AVPro Capture plugin, even the demo scene on Unity 2019.4.0f1 URPL this is how 360 video is being captured:

Annotation 2020-07-07 010946

If I follow the same procedure but without the URPL version of Unity everything works fine.

The video being captured is Monoscopic 360 video

adriansotov avatar Jul 07 '20 23:07 adriansotov

@AndrewRH This is how the capture looks in Unity without URLP, same exact process: Annotation2

adriansotov avatar Jul 07 '20 23:07 adriansotov

@adriansotov i've tried but I can't replicate the issue you're having. Can you replicate it using the demo scene "Demo04-360Capture.unity"?

Could you tell us exactly how you're doing the capture - show us the settings etc.

Have you changed any settings in URP?

Thanks,

AndrewRH avatar Jul 08 '20 16:07 AndrewRH

Ok @AndrewRH , I found the source of the issue. If you capture with the headset connected to Unity you get the error, look: The difference between the two captures is that in the bad one the Oculus Quest is connected to Unity.

good

Bad

adriansotov avatar Jul 08 '20 19:07 adriansotov

@AndrewRH Im using Unity 2019.4.0f1 with the Universal Render Pipeline template and installing through Unity's package manager the XR Plugin Management tool and adding the Oculus plugging. Target platform PC. PLEASE NOTE, this only happens with the Universal Render Pipeline template, I have no issues with the 3D template.

adriansotov avatar Jul 08 '20 19:07 adriansotov

@AndrewRH Im using Unity 2019.4.0f1 with the Universal Render Pipeline template and installing through Unity's package manager the XR Plugin Management tool and adding the Oculus plugging. Target platform PC. PLEASE NOTE, this only happens with the Universal Render Pipeline template, I have no issues with the 3D template.

It sounds like a bug in Unity. Perhaps you could try upgrading to the latest version of Unity 2019.4.3 and see if there are any further updates for those packages you're using. I don't have a Oculus Quest headset that I can plug in for testing, so if you can find a way to replicate this that doesn't require hardware please let me know.

Thanks,

AndrewRH avatar Jul 10 '20 10:07 AndrewRH

Unity 2020.3.22f1 HDRP Empty project only with "AVPro Movie Capture (Windows)" 4.7.4 Capture From Camera 360 (VR) It wont work. Video is blurred

https://user-images.githubusercontent.com/37102945/142373342-2b1412a3-b38e-4450-9407-6ad6d57bee03.mp4

AnriEU avatar Nov 18 '21 07:11 AnriEU

@AnriEU could you try turning off motion blur in the HDRP default settings?

(Project Settings -> HDRP Default Settings -> Rendering)

kahnivore avatar Nov 19 '21 09:11 kahnivore

@kahnivore Test with

  1. motion blur is ON
  2. motion blur is OFF = better
  3. motion blur is ON but used script "Capture from camera" = perfect So, turn OFF did not help

https://www.youtube.com/watch?v=AbQyiH5DhGU

AnriEU avatar Nov 19 '21 12:11 AnriEU

Right, but you've found a solution via using Capture from Camera?

The post-processing in HDRP seems to interfere with the screen capture.

kahnivore avatar Nov 22 '21 12:11 kahnivore

"Capture from Camera" works out of the box. "Capture from Screen" works out of the box too.

"Capture From Camera 360" no. Turn off "post-processing in HDRP" did not help.

I need "Capture From Camera 360" Can you fix it?

AnriEU avatar Nov 23 '21 06:11 AnriEU

Oh I see, you mean the demo, sorry.

How did you turn off post-processing? Did you change any other settings?

Attaching two videos below (see Captures.zip), captures of the Demo04-360Capture. The first looks similar to yours - very blurry. This is out of the box. The second looks clear, and all I've changed is that I've turned off motion blur as in the screenshot below.

Could you try this in a fresh HDRP project with AVPro Movie Capture imported?

image Captures.zip

kahnivore avatar Nov 24 '21 16:11 kahnivore

There was a different problem. I had to change a little bit your code and made a lot of small tweaks in different places. And spend huge amount of time for testing. And, wow! It is working now! Thanks!

https://www.youtube.com/watch?v=s_2IvXaIiwc

AnriEU avatar Nov 25 '21 14:11 AnriEU

Hi @AnriEU, I know its been a while since you posted this, but I'd be very interested to know what changes you made to get it to work, if you can remember? Kind regards, Chris

Chris-RH avatar Jul 20 '22 10:07 Chris-RH

Hey, is it possible to render stereoscopic 360 video in HDRP/URP yet, or still waiting for Unity to support it? Thanks

gradeeterna avatar Aug 06 '23 17:08 gradeeterna

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 15 '23 06:12 stale[bot]