Simple-WebXR-Unity
Simple-WebXR-Unity copied to clipboard
Visualize controller 3D model and animate it
Example : https://immersive-web.github.io/webxr-input-profiles/packages/viewer/dist/index.html
Profile list : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/[email protected]/dist/profiles/profilesList.json
Profile : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/[email protected]/dist/profiles/oculus-touch/profile.json
GLB model : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/[email protected]/dist/profiles/oculus-touch/right.glb
GLB reader : https://github.com/KhronosGroup/UnityGLTF
Made a package that should be able to work also with this exporter. https://github.com/De-Panther/webxr-input-profiles-loader
Nice work, I'll take a closer look. I think I'm going to be interested. What bothers me is the dependency to NewtonSoft Json. But otherwise, it's pretty fast and the rendering is great.
Thanks.
Yes, the profile spec use Dictionary
in some parts, so couldn't use Unity's JsonUtility
.
So had to use another JSON parser. JSON dot net has a package that Unity maintain, so I preferred to use it than other parsers.
It's possible to write a specific parser, but for now it's ok.
You are welcome to contribute there. I want to add there a list of supported WebXR exporters.