ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.02k stars 1.27k forks source link

Driver - HMD position on floor in vrchat #1811

Closed MasonSakai closed 5 months ago

MasonSakai commented 5 months ago

There's nothing special about the driver, it's taking almost directly from the sample tutorial. For some reason, in VRChat the hmd's pose is... basically ignored. No position, no rotation, nothing. From the tutorial, the controller's are tied to the position of the headset and they still are in vrchat; wherever I set the headset position the controllers follow, just not the camera and character. And in steamvr home, the headset is clearly where it's supposed to be and following the pose.

Wizapply commented 5 months ago

I think you are missing "vr::VRProperties()->Set*Property" I haven't tried it with simple_driver, but for my project it was Prop_ManufacturerName_String.

//Activate(uint32_t object_id) method
vr::VRProperties()->SetBoolProperty(m_ulPropertyContainer, Prop_ManufacturerName_String, "HMD TEST");
MasonSakai commented 5 months ago

Ok yeah, that worked I wonder why that's needed...

Anything else I should be sure to include so I don't potentially run into issues later?

MasonSakai commented 5 months ago

Huh, can't close it without a comment