1
0
mirror of https://github.com/AcChosen/VR-Stage-Lighting.git synced 2024-11-24 07:30:22 +01:00
VR-Stage-Lighting/README.md

110 lines
6.5 KiB
Markdown
Raw Normal View History

2022-10-05 15:52:01 +02:00
![vrsl-compact](https://user-images.githubusercontent.com/107726700/194073524-eb74f90e-2d40-440c-adea-38a5e0d4ec19.png)
2022-06-24 02:55:49 +02:00
2022-10-05 15:54:00 +02:00
<h2 align="center"> VR Stage Lighting is a collection of shaders, scripts, and models designed to emulate professional stage lighting into VRChat in as many ways as possible.</h2>
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
VR Stage Lighting is a year-long project that started out as a means to research and develop a performant/reliable way to send lighting data (including DMX512) to VRChat. It has evolved into creating a package of assets that can bring quality lighting effects in all manner of ways performantly.
2022-06-24 02:55:49 +02:00
2022-12-01 15:46:25 +01:00
This performance is provided through a standardized set of custom shaders that aim to avoid things such as real-time unity lights and using cost saving measures such as GPU-instancing and batching.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
### SEE ALL THESE SYSTEMS LIVE IN VRCHAT [@ CLUB ORION](https://vrchat.com/home/launch?worldId=wrld_b2d9f284-3a77-4a8a-a58e-f8427f87ba79)
2022-06-24 02:55:49 +02:00
2022-12-29 16:09:02 +01:00
### JOIN THE GROWING VRSL COMMUNITY ON OUR DISCORD [@ VRSL.DEV](https://vrsl.dev)
2022-12-29 19:27:23 +01:00
### CHECK OUT AN EXAMPLE ORION MUSIC FESTIVAL'S IMPLEMENTATION OF VRSL (Click the image below)!:
2022-12-29 19:26:23 +01:00
[![VRSL EXample Video](https://imgur.com/RsnNnML.png)](https://youtu.be/b6SjQHFF6Qo "Defreeze at Orion Music Festival 2022")
2022-06-24 02:55:49 +02:00
## IMPORTANT
- These systems are designed for world building on VRChat for PC. While some of the shaders in theory could be used on avatars, they are primarily designed to be placed in a PC world.
2022-10-05 15:33:53 +02:00
- This system is still a work in progress and is planned for long-term support as more VRChat features are released. Planned features include OSC support and Quest-Ready alternatives.
- For proper documentation, please refer to the [github wiki](https://github.com/AcChosen/VR-Stage-Lighting/wiki).
2022-06-24 02:55:49 +02:00
## Setup
### Requirements
- Unity 2019.4
2022-10-05 15:33:53 +02:00
- VRChat SDK3 for Worlds
2022-06-24 02:55:49 +02:00
- UdonSharp
2022-10-05 15:33:53 +02:00
- USharp Video Player
- PostProcessing Stack V2 (Unity Package Manager)
- AudioLink v2.7+ (Full)
- Recommended: Open Broadcast Software (or streaming software of your choice)
- Recommended: VRSL Grid Node (For DMX control)
- Recommended: At least one extra screen that can support 16:9 resolutions.
2022-06-24 02:55:49 +02:00
### Installation
2022-10-05 15:33:53 +02:00
See the [Project Setup](https://github.com/AcChosen/VR-Stage-Lighting/wiki/Getting-Started:-Project-Setup) page on the wiki.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
## About VRSL
2022-06-24 02:55:49 +02:00
<p align="center">
2022-10-05 15:52:01 +02:00
<img src="https://user-images.githubusercontent.com/107726700/194073714-4685c990-a23b-474d-b2a5-beff83d9e8c8.gif">
2022-06-24 02:55:49 +02:00
</p>
2022-10-05 15:33:53 +02:00
### DMX Via Video Artnet Gridnode
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
![artnet-gridnode](https://user-images.githubusercontent.com/107726700/193886336-c6df8417-d0b3-464d-b5e3-c5d0df023c6c.png)
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
What powers VRSL is the ability to transmit DMX data contained within a video stream. It is done this way as it is the best way to achieve the following goals:
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
- Having all players within their own instances of a world be synced.
- Allowing a given world to display data that any given user wishes.
- Allowing for live performances.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
This is the main system this project was based on. Once in unity, VRSL can convert data it reads from a VRChat Player video into DMX data that the lighting system can read.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
This system is powered 95% by shaders, including the actual method of reading the pixels from the screen. The other 5% is to enable GPU instancing for the shaders and certain properties. There is also basic "RAW" Udon support for when DMX Support is disabled for these shaders.
2022-06-24 02:55:49 +02:00
#### The appeal of this system is that it allows any software or hardware that supports Artnet to control VRSL lights in real time with entirely hardware-accelerated computation with nearly unrivaled performance for the end user.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
This repository comes with an example recorded video in an example scene of the lights in action as well as the grid system they're reacting to. The video is placed in an example scene where the same lights are set-up to re-react to the video in real time, mimicing the actions of the lights shown in the example video.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
### Get the Artnet Gridnode
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
#### While VRSL's lights and shaders are open source, Artnet Grid Node is not.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
[Purchasing a copy](https://gumroad.com/l/xYaPu) of the VR Stage Lighting Grid Node will help in the development of both the node grid and the VRSL framework!
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
OSC and MIDI output is also included with this grid system for when VRChat officially supports it via Udon.
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
You can purchase a copy [here](https://gumroad.com/l/xYaPu), and your support will be greatly appreciated! <3
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
It is not required for use with AudioLink.
2022-06-24 02:55:49 +02:00
2022-10-05 15:52:01 +02:00
### Local UI Panel
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
A UI panel that can control the intensity of the different lighting shaders is also included. Plop this panel in your world to allow users to locally control the brightness of each aspect of the lights, or all lights at once. It also includes a slider for bloom intensity and a pre-made post processing volume for it.
2022-06-24 02:55:49 +02:00
2022-10-05 15:52:01 +02:00
### Audio Reaction via AudioLink
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
A varation of these shaders support [AudioLink by llealloo](https://github.com/llealloo/vrc-udon-audio-link).
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
These shaders will have their intensity's react to the audio at different frequencies. They use the shader implementation of AudioLink for minimal overhead. There is also basic "RAW" Udon support that is enabled alongside AudioLink which inclues GPU Instanced properties and mover target following.
2022-06-24 02:55:49 +02:00
An example scene is included that show the different light types reacting to the different frequency bands of audio.
2022-10-05 15:33:53 +02:00
You can get Audiolink as well as learn more about it [here](https://github.com/llealloo/vrc-udon-audio-link)!
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
### Limitations
2022-06-24 02:55:49 +02:00
2022-10-05 15:33:53 +02:00
- This system requires using a livestream, meaning there will be some unavoidable latency for realtime setups.
- Compression artifacting can cause movement data to be scrambled a bit. VRSL works to compensate for the scrambling somewhat, but does make the movement much slower.
- Light fixtures have the ability to set to control the smoothing intensity, but it is recommended to keep the smoothing at maximum (which is 0) for most situations.
- If quicker movement is needed, it is recommended to do it in small bursts, quickly returning the smoothing back to maximum when you can.
2022-06-24 02:55:49 +02:00
2022-10-05 15:52:01 +02:00
<p align="center">
<img src="https://user-images.githubusercontent.com/107726700/194075483-c4eb51fb-40da-4974-9820-bfb1ede75ab4.gif">
</p>
## Wiki
More information about VRSL and many helpful tutorials can be found on this [repo's wiki](https://github.com/AcChosen/VR-Stage-Lighting/wiki).
2022-06-24 02:55:49 +02:00
## Support
2022-10-05 15:55:54 +02:00
If you'd like to support the project, you can do so via [patreon](https://www.patreon.com/ac_chosen), where you can also get some VRSL exclusives!~
2022-10-05 15:56:30 +02:00
You can also join the official [VRSL discord](https://discord.gg/zPktZAe48r)!