openvr icon indicating copy to clipboard operation
openvr copied to clipboard

Driver-supplied models

Open godbyk opened this issue 10 years ago • 4 comments

Can a driver supply models for its own base station, controllers, etc.? Where should the files be installed?

godbyk avatar Jun 11 '16 05:06 godbyk

Have you tried to return a render model name for vr::Prop_RenderModelName_String? those models are located in "C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\rendermodels", looks like we can put our own models in there and specify its name in driver with that property, it's on my plan to implement such a customized model, but not now. Maybe you can have a try? don't forget to give some feedback here.

shenyu0403 avatar Jun 12 '16 05:06 shenyu0403

@yushen0403 Currently, I'm using the Oculus camera as a standin until I make my own model. I assume dropping my models into that directory would work, but I haven't tried it yet. Generally, though, since I don't like installing files into directories that aren't under my control, I wondered if the driver-supplied models could live in the driver's config directory or similar.

godbyk avatar Jun 12 '16 05:06 godbyk

@godbyk Yes they can.The razer hydra drivers have an example of this (in the drivers rendermodels/hydra_controller folder).

See https://github.com/ValveSoftware/driver_hydra

SecondReality avatar Jun 12 '16 08:06 SecondReality

Yes. Put the render model in //resources/rendermodels//.obj. Then return "{}" for the Prop_RenderModelName_String property.

JoeLudwig avatar Jun 12 '16 16:06 JoeLudwig