HVR NPS
NPS is a prototype for a mesh deformation control system designed without using shaders, intended to be used in native environments.
Originally, (D)PS shaders were used as a hack to overcome environmental limitations imposed by UGC platforms, in order to exfiltrate positional information through unusual means, and process it despite having no means of scripting on the CPU.
However, in native environments that give the user a greater amount of control, I believe that we should question using shaders at all for this purpose.
Install
Names used in this documentation
In this documentation, we will use the following words:
- Plug to represent to giver side.
- Socket to represent the receiver side.
However, in the internal code of NPS, you may notice those are called Chain and Beacon instead. For the purposes of this documentation, this won't matter.
Add to the plug mesh
To install NPS on the plug side:
- Find the MeshRenderer or the SkinnedMeshRenderer component that represents the plug.
- Add a HVR NPS Autorig component to that GameObject.
- Make sure the materials of that mesh use the same shader as the rest of your body, see warning below.
If your avatar was imported from another project and your original avatar uses a special material shader that has DPS or TPS built-in, either disable DPS or TPS, or replace it with the regular shader that the rest of your body uses.
If you previously used SPS, you shouldn't have to change anything.
NPS does not use shaders, therefore no shader modification is needed.