Rufus31415 / Simple-WebXR-Unity

⭐ Bringing WebXR to Unity 3D ! B-)
https://rufus31415.github.io/webxr/MRTK-HandInteraction/
MIT License
573 stars 82 forks source link

Visualize controller 3D model and animate it #22

Open Rufus31415 opened 3 years ago

Rufus31415 commented 3 years ago

Example : https://immersive-web.github.io/webxr-input-profiles/packages/viewer/dist/index.html

Profile list : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/profilesList.json

Profile : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/oculus-touch/profile.json

GLB model : https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/oculus-touch/right.glb

GLB reader : https://github.com/KhronosGroup/UnityGLTF

De-Panther commented 3 years ago

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

Rufus31415 commented 3 years ago

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.

De-Panther commented 3 years ago

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.