Battery Indicator [PC / Mobile] (v1.4)
- Battery Prefab (Latest)Digital0 JPY
- All VersionsDigital0 JPY
![Battery Indicator [PC / Mobile] (v1.4)](https://booth.pximg.net/72c6640f-c164-4858-91e0-e7595abd5ba5/i/6093346/d6832596-fb84-4c74-bafb-b6eaedc749e2_base_resized.jpg)
A little wobbly headset battery level indicator that interfaces with certain overlay programs to stealthily inform everyone around you that you are soon going to poof out of existence! It also has AudioLink and can be stolen off your head by other users. Features - Prefabs for both PC and Android/Quest* - Grabbable and posable, with a VRCHeadChop component to keep it visible in first person. - You can check your battery by grabbing it off your head and pulling it down! - Option to display Average Tracker Battery or Lowest Battery instead of Headset Battery. - Can be set to appear only when your battery is low inside the Toggles menu. The bar turns red at 25% and starts flashing at 5%. - Emissive level bar so you can see it in the dark, and a rim light and outline that pulse in worlds with AudioLink. (PC prefab) Avatars in the pictures are my personal avatar, my edit of Ukon Sode, and in the car one of my friends as a TF2 Sniper Taidum.
Stats
- 1 Skinned Mesh Renderer, 130 triangles. - 1 Material slot - 1 PhysBone component, 2 Transforms - 11 Synced Parameter bytes. (8 for battery level, 3 for toggles, charging state)
Installation and Notes
- This prefab requires OVR Toolkit, XSOverlay, WlxOverlay, or the OpenVR Statistics module in VRCOSC* to function! Make sure your chosen program is installed and sending properly in VRChat's OSC debug panel before trying to work with this prefab. - To install on your avatar, make sure you have VRCFury imported (1.1002.0 at time of writing) and place the prefab on your avatar's root, then position it around where you'd like it to be. By default it'll attach to your avatar's head. - If you'd like it to attach to a different part of your avatar such as your arm or hand, you can do so by changing the "Link To" option in the Armature Link section on the battery prefab. You may orient it in any way you like afterwards. - For Android/Quest/Standalone, use the "android-quest" prefab instead, or swap out the shader on the regular prefab manually. - The PC prefab uses Poiyomi Toon 9.0. If you'd like to edit the material make sure you have that imported, or you may change to a different shader instead.
Compatibility
You can view the compatibility chart here: https://docs.google.com/spreadsheets/d/1NDhLXiacPa93BRQuai8taDqL692XRhQ-fUQVK441quM/edit?usp=sharing Summary: - Steam Link and ALVR are known to work in most cases. - Virtual Desktop and Quest Link won't work as they don't send the battery level to SteamVR. - XSOverlay will only work when the battery is set to Tracker mode. - If you run on Linux, WlxOverlay's latest commit supports all features on both SteamVR and Monado/WiVRn.
Terms of Service
You may use this asset on any avatar you like, public or private, translate it to any platform, and use for personal use or in a commission. Credit is optional when used as above, but appreciated. Do not claim to have made this asset or redistribute its package unmodified. If distributing a modification, give credit, make significant changes (i.e. a palette swap is not enough, but you may change the model entirely), and do not sell it. Poiyomi Shader: https://booth.pm/en/items/4841309 This model uses Poiyomi Toon 9.0. The package is not included, only the compiled "optimised" shaders. The Poiyomi MIT license text is included in the download.
Update information
When updating, please delete the old files in "battery" before importing the new package. v1.4 - Updated HMD parameter to work with OVR Toolkit's new changes. - Added "Lowest Battery" mode. - Use Toon Standard shader on mobile, adding emission. - Fix potential bug with charging state not being set in Tracker Mode. v1.3 - Added partial support for XSOverlay. See next. - Added menu toggles to display Average Tracker Battery (XSOverlay, OVR Toolkit) and disable showing the charging state. - Battery will show "Connecting" if a mode that hasn't sent a battery is selected. v1.2 - Added support for WlxOverlay's parameters. (unreleased at time of writing, will be in future versions or build it yourself) - Added charging indicator that can appear when used with compatible providers. (VRCOSC and WlxOverlay) - Added connecting animation for when a provider is detected but hasn't sent a battery level yet. - XSOverlay will also cause this animation to play, but XSOverlay does not provide a headset battery level at time of writing. - When nothing is connected, the battery will now show an icon instead of being full. - Made the battery texture look more shiny. - Fixed warnings that would appear on the VRCFury components due to weird animation paths. - You should now be able to put the battery prefab anywhere on the avatar instead of just on its root. - Battery now responds to "disabled" battery levels -1 and 255, and enters disconnect animation accordingly. - Updated terms. Summary: Credit is optional when used, but required when redistributed. Clarify modification. v1.1 - Added support for OVR Toolkit's hmdBattery parameter. - Added an icon to the battery toggle in the menu.
Technical Notes and Alternatives
By default, the battery will only function with PCVR using the software outlined in the Compatibility section. - Alternative solutions can control the battery's level using the following addresses: == (Float 0-1) to "battery/level" == (bool) to "battery/charging" == You could set up a radial puppet controlling the "battery/level" parameter if you'd like to control it manually. - I think it should be possible to create a background Android app so Quest users can run that and have the battery work. I'm not skilled enough to create that myself yet though. :D