1
0
mirror of https://github.com/AcChosen/VR-Stage-Lighting.git synced 2024-12-18 02:16:06 +01:00
VR-Stage-Lighting/Packages/com.acchosen.vr-stage-lighting
MrTomato 20ffe1f63a
fix audiolink laser handling in VRSL_ManagerWindow.cs
If there is an audiolink laser in the scene and the user either:
- Tries to `Update Fixtures` in the VRSL
- Tries to open an audiolink band
The console will print and error or spam errors respectively.

This change prevents the errors without functionality.
2024-10-18 02:18:38 +02:00
..
Editor fix audiolink laser handling in VRSL_ManagerWindow.cs 2024-10-18 02:18:38 +02:00
Runtime Updated Amplify Functions to be linear VRSL compatible-2 2024-06-26 18:26:56 -04:00
CHANGELOG.md - Packaged important add-ons such as video players, gpu readback, and screen space shaders into unitypackages along with main VR Stage Light package to reduce confusion and keep things organized. 2024-06-02 13:24:07 -04:00
CHANGELOG.md.meta VPM Repository Update 2022-11-30 08:14:52 -05:00
Editor.meta VPM Repository Update 2022-11-30 08:14:52 -05:00
LICENSE VPM Repository Update 2022-11-30 08:14:52 -05:00
LICENSE.meta VPM Repository Update 2022-11-30 08:14:52 -05:00
package.json Updated Amplify Functions to be linear compatible. 2024-06-26 18:23:11 -04:00
package.json.meta VPM Repository Update 2022-11-30 08:14:52 -05:00
README.md VPM Repository Update 2022-11-30 08:14:52 -05:00
README.md.meta VPM Repository Update 2022-11-30 08:14:52 -05:00
Runtime.meta VPM Repository Update 2022-11-30 08:14:52 -05:00

vrsl-compact

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.

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.

This performance is provided through a standardized set of custom shaders that avoid things such as real-time unity lights and using cost saving measures such as GPU-instancing and batching.

SEE ALL THESE SYSTEMS LIVE IN VRCHAT @ CLUB ORION

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

Setup

Requirements

  • Unity 2019.4
  • VRChat SDK3 for Worlds
  • UdonSharp
  • 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.

Installation

See the Project Setup page on the wiki.

About VRSL

DMX Via Video Artnet Gridnode

artnet-gridnode

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:

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

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.

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.

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.

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.

Get the Artnet Gridnode

While VRSL's lights and shaders are open source, Artnet Grid Node is not.

Purchasing a copy of the VR Stage Lighting Grid Node will help in the development of both the node grid and the VRSL framework!

OSC and MIDI output is also included with this grid system for when VRChat officially supports it via Udon.

You can purchase a copy here, and your support will be greatly appreciated! <3

It is not required for use with AudioLink.

Local UI Panel

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.

A varation of these shaders support AudioLink by llealloo.

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.

An example scene is included that show the different light types reacting to the different frequency bands of audio.

You can get Audiolink as well as learn more about it here!

Limitations

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

Wiki

More information about VRSL and many helpful tutorials can be found on this repo's wiki.

Support

If you'd like to support the project, you can do so via patreon, where you can also get some VRSL exclusives!~

You can also join the official VRSL discord!