vuer-ai / vuer

Vuer is a 3D visualization tool for robotics and VR applications.
https://docs.vuer.ai
MIT License
81 stars 1 forks source link

URDF Visualization in VR #13

Open hu-po opened 2 months ago

hu-po commented 2 months ago

Thanks for the great repo! I am running into issues when trying to visualize a URDF file in a VR headset. I can run the mars rover example fine and see it in the headset with textures/materials. My URDF file also works fine on the browser (though it has the white default material even though material is defined in the urdf). When I try my URDF file on the VR headset (QuestPro via ngrok) I cannot see anything (meshes or textures). I have tried various formats (obj, gltf, glb) and different materials, but still no luck. Any ideas around what might be happening? Or how I could set a default material of some sort for the URDF?

RogerQi commented 2 months ago

Hello Hugo,

Thanks for your interest! For URDF files that I have in my hands - they work in both the VR headset and the browser. I don't know if it is possible, but if you could share the URDF file that reproduces this issue, it would help locate the issue.

hu-po commented 2 months ago

Thanks so much for the help. Here is the URDF file I am using, it uses .obj files. It has materials defined in the .urdf file, but I have tried removing them and also converting the files to .glb, .gltf, and .stl with no luck.

I saw you are using the three.js urdf loader that I also used in a previous project. In that previous project I had to manually set the material color for the object3d, I saw you are doing something similar in vuer-ts but I don't know enough about three.js to have a good intuition around what could be going wrong.

Anyways, hope that gives you more context. Thanks again for the help and for providing this awesome library to the community.