RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
48 stars 8 forks source link

360 Stereo Capture when using HDRP #37

Open AndrewRH opened 4 years ago

AndrewRH commented 4 years ago

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/

eshaftel commented 4 years ago

@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?

adriansotov commented 4 years ago

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

AndrewRH commented 4 years ago

@adriansotov Could you explain the issue is?

adriansotov commented 4 years ago

@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 commented 4 years ago

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

AndrewRH commented 4 years ago

@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,

adriansotov commented 4 years ago

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 commented 4 years ago

@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.

AndrewRH commented 4 years ago

@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,

AnriEU commented 2 years ago

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

kahnivore commented 2 years ago

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

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

AnriEU commented 2 years ago

@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

kahnivore commented 2 years ago

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

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

AnriEU commented 2 years ago

"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?

kahnivore commented 2 years ago

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

AnriEU commented 2 years ago

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

Chris-RH commented 2 years ago

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

gradeeterna commented 1 year ago

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

stale[bot] commented 9 months ago

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.