DomNomNomVR / cvr-audio-link

Linking audio to effects on ChilloutVR avatars and worlds
Other
19 stars 1 forks source link

ChilloutVR AudioLink

Linking audio to effects on ChilloutVR avatars and worlds

AudioLink is a system that analyzes and processes in-world audio into many different highly reactive data streams and exposes the data to ChilloutVR world shaders, and avatar shaders.

Technical overview: The audio amplitude data is read into shader parameters via the CVRAudioMaterialParser component. It is then sent to the GPU for signal processing and buffered into a CustomRenderTexture. Then, the CustomRenderTexture is broadcast globally (called _AudioTexture) which can be picked up by shaders both in-world and across all avatars.

For the original VRChat version see llealloo/vrc-udon-audio-link.

Documentation for shader creators

0.2.8 - May 14th, 2022

New features

First time setup

Requirements

Installation

  1. Install the requirements above
  2. Have a look at the example scene, "AudioLink_ExampleScene". It contains a lot of visual documentation of what is going on and includes several example setups. Or cut to the chase:

Getting started

  1. Drag AudioLinkController into scene
  2. Link audio source by dragging the AudioSource gameobject into the audio source parameter of the CVRAudioMaterialParser component on the controller.

Installing to test Avatar projects

TODO. Currently you will need to test in-game.

Compatible tools / assets

Thank you

Developer Notes

reup.bat for auto syncing a developer branch

First, fork this repo into your personal github account using the github GUI, then make a new unity project called AudioLinkWork then, check out your copy of of this repo, and move its contents, .git included into the Assets folder of the project you made. Once done, place the following .bat file in that Assets folder.

I recommend executing this following reup.bat from the command line to address merge conflicts and other errors.

rem be sure you're on the `dev` branch!
git remote set-url origin https://github.com/DomNomNom/cvr-audio-link
git pull
git remote set-url origin https://github.com/YOUR_GITHUB_USERNAME_HERE/cvr-audio-link

Version update processes