Simple-WebXR-Unity icon indicating copy to clipboard operation
Simple-WebXR-Unity copied to clipboard

Visualize controller 3D model and animate it

Open Rufus31415 opened this issue 3 years ago • 3 comments

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

Rufus31415 avatar Nov 15 '20 15:11 Rufus31415

Made a package that should be able to work also with this exporter. https://github.com/De-Panther/webxr-input-profiles-loader

De-Panther avatar Nov 21 '20 21:11 De-Panther

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.

Rufus31415 avatar Nov 25 '20 05:11 Rufus31415

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.

De-Panther avatar Nov 25 '20 19:11 De-Panther