Home

Awesome

_pi_'s random collection of VRChat assets

Stuff that I make sometimes. Might be useful, might not. If it blows up your computer, please send me a picture; I like fire.

For licensing see the bottom of this file. TL;DR: use in public worlds or avatars for free (but credit me somewhere plz), for commercial use (i.e. included in private commissions) contact me first.

You can see most/all of the prefabs shown here in this example world:
https://vrchat.com/home/launch?worldId=wrld_52236eb8-d97b-4e6b-939f-ec3b7de350f8
(no guarantees that I'll keep it up to date though)

General Usage

The various things are provided as Unity packages. To use them, download the '.unitypackage' file, drag it into the Unity editor window and import all parts. This will create a folder under 'Assets/_pi_/' named after the package. In there you will find all necessary components, as well as usually a prefab titled '_PREFAB' which is ready to be dragged into your scene.

Dependencies

AudioLink

AudioLink is a system for providing audio data to world and avatar shaders. Some of my things here are compatible with it:

Udon Stuff

Avatar Light

Lights up player avatars based on a video input. Does not require custom avatar shaders, so it should work on most avatars, even ones with custom shaders, as long as they apply Unity lighting. Does not use real-time lighting, only performance bottleneck is Udon shader readback.

Usage:

  1. drag prefab into scene (somewhere invisible, default is really high up)
  2. in the Unity Lighting tab, set Environment Lighting / Source to Gradient
  3. put your video's render texture into Unlit_LoopRTBlit (use lox9973's VideoRT for AVPro)
  4. make sure your render texture has "Enable Mip Maps" and "Auto generate Mip Maps" checked
  5. profit

Download

AvatarLight

Player List

Shows all players in the world, as well as their local time and how long they've been in the instance. Uses a manually allocated object pool for syncing - you should adjust the size to how many people fit in your world as follows:

Download

PlayerList

Music Player

A fully synchronized music player. Features:

Note on AudioLink: I originally made this with AudioLink support, but decided against putting it in the package. It's quite a hassle to set up and requires you to patch the AudioLink Udon script yourself (since the player uses two AudioSources in an alternating fashion for instant-skip), but if you think you know what you're doing: there is some commented out code in MusicPlayerVideo.cs that you can use as a base for your AudioLink adventures.

NOTE: If you get a warning in the VRChat SDK window about "automatic resync" being disabled, this is safe to ignore as only audio is used anyway.

Download

MusicPlayer

Dial

Dial in all the things. Supports smooth grab-turn in VR, and "click-to-advance" fallback for desktop. Not synced (for now).

Usage:

Download

Dial

CamRig

Udon based 'dolly'-style camera rig, allows setting a spline-based camera path and have the camera follow it smoothly. Put your in-game stream camera into the rainbow box and set it to world space so you can record the camera's perspective from the VRChat desktop window. Will be slightly laggy for anyone that is not the current owner (can be changed by grabbing the red controller handle), so whoever is recording should be owner.

Licensing note: The DSLR camera model is provided by John Dinwiddie @ https://skfb.ly/6rBHA and might require seperate crediting when in use (or can be replaced with whatever model you want)

Download

CamRig

Audio Link Blend

AudioLink as easy as pi(e)! Makes regular blend shapes react to AudioLink channels, perfect for speakers and such. Performance optimized with baked meshes, so almost no overhead (no skinned meshes!).

To use, put your object as a regular skinned mesh in your scene, drag the "ALBlendGenerator" script onto it in the Inspector, optionally configure your settings, and click "Generate". You can click generate multiple times, with different AudioLink bands, and it will create multiple children, all reacting the the band you selected (detected via the object's name). The original skinned mesh renderer will be disabled, as to not waste performance. Adjust the "AudioLinkBlend_mat" material to change the look of your object (i.e. put textures on etc.), make as many copies as you like for different material styles (just place your copy into the slot under "Internal Settings" before hitting "Generate").

Download

AudioLinkBlend

Shader Stuff

Aurora

Aurora Borealis? At this time of the year? Localized entirely within this GitHub repository? Yes, and it supports AudioLink! Place in your world, scale it so it fits across your entire map, and play around with the settings on the "Aurora_Mat" to get a feel for it! (note: has to be placed high above your world, does not look good from too close)

Licensing note: Uses the simplex noise library from here, which does not state a license, but it sounds like the original poster in the Unity forums intended to share it for use anywhere - if anyone finds offense in my inclusion here, please contact me.

Debugging note: I found that in some instances quite extreme color banding can occur when testing with the "Build & Test" option - I don't know why it happens, but it works fine in the editor and also goes away once uploaded and viewed from a regular instance of VRChat.

Download

Aurora

Procedural Night Skybox

A somewhat "low-poly" style nighttime skybox. Comes in two variants:

You can create a "SkyboxStatic" of your own configured variant easily (useful for PC & Quest maps, where PC can use the regular one and for Quest you capture it to look somewhat the same). To do so, place the "CapturePrefab" in your scene somewhere, check the "Dump" checkbox at the bottom, then go into play mode (click play at the top of the editor). This will update the "capture-N" images in the folder which will get applied to "SkyboxStatic" (you might need to click out and back in to the editor for changes to take effect after you leave play mode). You should remove the prefab from your scene afterwards.

Download

Skybox

ALInstrument

Little AudioLink visualizer thingy to drop into your world here and there. Very customizeable, you can edit all colors, stroke widths, borders, etc. on the material. Simple to use.

Download

ALInstruments

Manga Shader

Real-time shadows in manga style. Somewhat anyway. I don't really read manga, okay?

The "MangaMaterial" is an example, play around with the settings yourself. I feel they're all quite self-explanatory (or at least I'm too lazy to explain them right now...).

Note about the "Fake Shadow" settings: You can use these to create fake spherical shadows on your materials for static objects that don't get lit by a dynamic light. To ease usage, the package comes with a script called "FakeShadowSphere.cs" which you can put on an empty game object and hit "Update" to set the object's position as a "Fake Shadow" entry for all instances of the manga shader in the scene.

Download

MangaShader

Fishy

Raymarched fish for your avatar. Sometimes they drift. Exhibit at ShaderFes 2021.

Download

Fishy

License

All assets in this repository are licensed under the terms of 'CC BY-NC-SA 2.0' unless explicitly otherwise marked. For exceptions contact me directly (see https://pimaker.at or Discord pi#4219). You can view a full copy of the license here: https://creativecommons.org/licenses/by-nc-sa/2.0/