banner
幻梦晓寒

幻梦晓寒HACK-FOX

醉后不知天在水,满船清梦压星河
x
github
bilibili
vrchat

audiolink使用教程

前言#

终于填了这个坑,之前写 ltcgi 文章的时候就一直想把 audiolink 一起写了,结果拖到现在

介绍#

GitHub 简介已经解释的很清楚了

AudioLink is a system that analyzes and processes in-world audio into many different highly reactive data streams and exposes the data to Scripts and Shaders.

The per-frequency audio amplitude data is first read briefly into Udon using Unity's GetOutputData. 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.

看不懂?省流:一个用于处理音频信息的并转换为 CustomRenderTexture 的预制件.

你可以拿他做一些好玩的东西,比如:让你 avatar 身上的物件跟着音乐变化,让你的地图部分摆件跟着音乐做出不同的动画效果等等

安装#

前往 https://github.com/llealloo/audiolink/releases 获取 unitypackage

使用 vcc#

https://llealloo.github.io/audiolink/index.json

兼容的着色器列表#

目前据我所知主流的着色器基本都能够使用 audiolink,不过我还是列个标表罢(水文章嫌疑)

如果有更多的着色器,欢迎评论区补充

使用#

等待撰写

此文由 Mix Space 同步更新至 xLog
原始链接为 https://blog.xiaohan-kaka.me/posts/unity/audiolink


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.