


34 yo dude creating and exploring worlds on VRChat. I am mostly posting about WIP stuff, Unity and world recommendations.


I forgot to add : To actually override player animations, you need to use the "Animator Tracking Control" component, which is not included in the world SDK, only in the avatar SDK! So basically, you also need to include the avatar SDK's main .dll file into the world project! It feels illegal, but it works. Just to say that, it feels like something we aren't really supposed to be able to do, since it requires cursed hacks and isn't documented in the VRChat documentation😅

This is VRChat btw. I've seen a bunch of worlds that override player locomotion, but never to this extent or with animations this fluid and dynamic.
VRChatでPvPワールド『Switch Rush』を開発中! 自分のアバターでさまざまな武器のスキルを組み合わせて戦うアクションゲームです。 ショップでスキルを購入・強化し、ラウンドごとの報酬カードで戦い方が変化します。 個人戦・チーム戦に加え、AI対戦もあるので一人でも楽しめます! 日本語・English・한국어 に対応しています! 今後はPvEボス戦やローグライクコンテンツ、VRユーザーとデスクトップユーザーが対戦するコンテンツも計画中です。 まだ開発途中ですが、近日公開を目指して制作しています! #VRChat #VRChat_world紹介



(6/6) Remains the issue with avatar lighting. I decided to use Light Volumes instead of traditional Light Probes, since they give us more flexibility to modify lighting at runtime. I use three Light Volumes, one for each RGB light group. The green and blue volumes are set to Additive, so their lighting is added on top of the existing light volumes. The red volume is not additive, to replace the environment lighting and act as the base. Each volume's lighting can then be adjusted at runtime using its Color property. Setting it to black effectively disables that light volume. The reflection probe in the scene gets rebaked at runtime whenever lighting conditions changed.

(5/6) I did some more research, and it turns out the issue comes from the .hdr format Bakery exports, which seems to use a shared exponent (intensity value) for all three color channels. This causes the issue I mentioned above Normally, this isn't noticeable. But in my case, each channel is used as an independent mask, making the banding much more obvious. Bakery isn't open source, but its source code is included with the asset and can be modified. I modified Bakery's code to export .exr lightmaps instead (Bakery only supports .hdr or .asset natively). .exr can store each color channel as an independent floating-point value, so a bright green channel no longer affects the precision of the red or blue channels. The screenshot on the left shows the .hdr version, the one on the right shows the .exr version.

(4/6) It worked, but I noticed some pretty ugly banding in the lighting (first screenshot). I initially suspected lightmap compression, but that wasn't the issue. After checking the baked lightmaps, I noticed that whenever one color channel was much brighter than the others, the darker channels lost precision. You can see it below: When one channel is really bright (G), the other channels loose in quality (R and B)

(3/6) Then, using Amplify Shader Editor, I created a custom shader that lets me change the color and intensity of each light group independently, or turn it off entirely. I could have baked a separate lightmap for each light group and combined them myself, but that would have required some additional scripting. Using RGB lights directly was much simpler, with one limitation: I can only control up to three groups of lights. The first screenshot shows how I decode the lightmap, the second screenshot shows the setup to change the color of each light source. The math is basically : finalLightmapColor = lightmap.r * lightColor1 + lightmap.g * lightColor2 + lightmap.b * lightColor3

(2/6) To implement togglable baked lighting, I decided to use a lightmap as an RGB mask. I baked my scene using pure red, green, and blue lights, with each color representing a different group of light sources. In my case, I use the red channel for the directional light, the green channel for the lights next to the bed, and the blue channel for the overall room lighting.



My Furality panel about Unity lighting has been published on Furality's YouTube channel! Feel free to check it out if you're interested into VRChat world creation or want to learn more about the techniques I use. youtu.be/md8EJUn72u8

Setting this up is a bit more cumbersome, Basically: - You need to bake each Light Volume separately to ensure that each volume is only affected by a specific group of light sources. The "Bakery Lightmap Group Selector" component cannot be used here. Personally, I chose to bake each light volume in a separate scene. - Set each Light Volume as "Additive Volume" to ensure they don't override each other. I could have used Point/Spotlight volumes instead, but I felt like using regular volumes would give better results since they also support bounced lighting. Personally, I also implemented a separate system to change the color of the lightmaps at runtime, this is done entirely in the shader.


If your baked specular light looks weird or unatural: Orels1 standard shader has a "Specular Roughness Mod" setting that lets you make them look rougher without making the actual surface roughter (pretty nice for larger area lights). Default (1) ↔ Slightly lower (0.8) ↔ No baked specular