Skip to content

A prefab that can record 360° monocular 2D/binocular 3D panoramic videos in real time in VRChat!

License

Notifications You must be signed in to change notification settings

TheBug233/VRChat360Camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

This is a very useful prefab, it can capture 360° panorama video of any scene in VRChat, yes now it also supports binocular 3D360°!

How does it work?

This prefab captures 6 viewports up, down, left, right, front and back with a common camera, and uses a shader to synthesize the final image, and finally outputs it to another camera. Of course, 3D requires two viewing angles and 12 viewports, so your computer needs to have a powerful graphics card (such as NVIDIA 4090...

How can I use?

First of all, you need an avatar, you can model it yourself, or buy it from BOOTH, in short, this prefab cannot work without the avatar, or you can make it a meaningless avatar that can only be used for video recording ( To be precise, VRChat is not just a game, but a social software, no one likes to play around the camera)

Preconditions

This prefab will only convert the PC screen into a panoramic screen when using VR, so it will not affect the normal game of the player.

  • If you need to record monocular 2D360° video, it is recommended to create a 7680x3840 virtual display with the virtual display program, and then set VRChat to start on the virtual display.
    If your computer configuration is not capable of this resolution, you can change the resolution to 5.7k (5760x2880), 4k (4096x2048), 2k (2160x1080), etc.
    according to the actual situation, and you need to keep the ratio of vertical and horizontal pixels at 2:1
  • If you need to record binocular 3D 360° video, it is recommended to create a 7680x7680 virtual display with a virtual display program, and then set VRChat to start on the virtual display.
    If your computer configuration is not capable of this resolution, you can change the resolution to 5.1k (5120x5120), 4k (4096x4096), 2k (2160x2160), etc.
    according to the actual situation, and you need to keep the ratio of vertical and horizontal pixels at 1:1.
    For binocular 3D, I don't recommend using a resolution lower than 5120, the picture will be very bad.
  • To save performance, you can record with NVIDIA Geforce experience, recording with it takes almost no additional resources. Other graphics cards can use the programs that come with the graphics card. In addition, you can also use OBS, but please note that if you need to record video with a resolution exceeding 4096x4096, please do not use H.264, you can use P2 or P1 preset HEVC or AV1, and the bit rate is directly set to 99999Kbps.
  • Limited by the rtmp protocol, in most cases you will not be able to live broadcast HEVC-encoded video streams, but there are still a few manufacturers that use self-developed and modified rtmp live programs and bind them to the platform.

Tips for modification in Unity

After downloading from release you will get these two folders:
image
Drag and drop the camera prefab you want to add to the avatar into the avatar
image
Create a new empty GameObject, add the native camera component of unity, change the depth to 100, modify the projection to orthographic, the size is 0.1, clipping planes near is 0, far is 0.3
image
(In VRChat, setting the depth of the camera to 100 will cover the PC screen)
After that, you need to adjust the distance between the GameObject and the PanoramaCore prefab to ensure that the camera in the GameObject is fully covered by the panorama
image

Now, a basic VRChat panorama recording tool has been created. Next, let your imagination run free and bind this panorama core to anything that can follow you or be easily controlled!

I have two good examples here:


All of the above are prohibited for commercial use, and secondary sales are prohibited, enjoy!

About

A prefab that can record 360° monocular 2D/binocular 3D panoramic videos in real time in VRChat!

Resources

License

Stars

Watchers

Forks

Packages

No packages published