RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
238 stars 29 forks source link

Add FishEye Layout Mapping Support #83

Closed busyxiang closed 2 years ago

busyxiang commented 5 years ago

I am developing an application for Oculus GO and using 360Sphere to play my videos. But, I noticed that the current plugin does not support FishEye format and my videos require FishEye format. So I would like to have FishEye format to be considered as one of the new features since not all 360/180 videos are EquiRectangular format. And at the same time, when using FishEye format the user should also be able to control the angle ( or dome angle, not sure what is the actual naming for it ) to control the amount of angle to display the video.

Applet-LLC commented 5 years ago

I'm developing and I'm not perfect yet, but there is a code for Shader that works once. https://appletllc.wordpress.com/2019/06/04/fisheye180-side-by-side%E5%AF%BE%E5%BF%9C/

busyxiang commented 5 years ago

@Applet-LLC Awesome and thank you for sharing your shader! I would also like to know is it possible to control the angle of the FishEye format instead of a fixed 180 degree.

Applet-LLC commented 5 years ago

@busyxiang Thank you for your comment. As for the angle, it is unclear whether the intended original is the same, but the variable Fov (0 to 360) is currently set to 180 by default, but changing this corresponds to different angles. As we did not encounter content other than 180 degrees, we could not confirm whether it was correct. Then there are limitations as it is not perfect. It does not correspond to HIGH_QUALITY and scaleOffset. Also, the format is only Side by Side, not Top and Bottom.

parmaia commented 4 years ago

I also want to support this enhancement, because we stream live 180 videos, both stereoscopic and monoscopic, and we are lacking a robust solution to that.

stale[bot] commented 4 years 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.

stale[bot] commented 4 years ago

This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.

AndrewRH commented 4 years ago

@Applet-LLC yes thanks again, we're still considering how to add this to the next version as a new feature.

Applet-LLC commented 3 years ago

I tried to make it compatible with HIGH_QUALITY. However, since the correspondence of Angle: FOV was skipped, the operation is unconfirmed except for VR180. https://appletllc.wordpress.com/2021/08/17/fisheye180-shader-high_quality%e5%af%be%e5%bf%9c/

Applet-LLC commented 3 years ago

PS. My trial FishEye180 Shader files for AVProVideo 2.1.8, Interfaces.cs, VideoRender.cs. https://appletllc.com/files/Shader.zip

AndrewRH commented 2 years ago

Shader.zip

Here is a copy of the above archive.

I'm closing this issue now as we don't intend to embed this feature and @Applet-LLC has kindly shared their implementation