VIVE_chengnay Posted August 26, 2021 Share Posted August 26, 2021 @Naukri In SimulatorModule.cs, Change the deviceClass to TrackedHand instead of Controller. BTW, Simulator cannot control via your hand, just like controller cannot control by your controller too. What's your main purpose of using Simulator? Do you just want to run your project with Unity Editor while using Focus 3? Like a PC VR? Link to comment Share on other sites More sharing options...
Naukri Posted August 26, 2021 Share Posted August 26, 2021 (edited) @chengnay Is that means that I have to modify SimulatorModule.cs in the VIU package? I want to map my hand into unity editor, so that I can get hand joint info more easier when I create gesture data. edit. After I modify it, unity won't render anything either trackedhand or controller. Edited August 26, 2021 by Naukri Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted August 27, 2021 Share Posted August 27, 2021 @Naukri Which lines did you edit? I tried below changes and it works. In SimulatorModule.cs line 422 and 441, Change the deviceClass to TrackedHand. Link to comment Share on other sites More sharing options...
percy01 Posted August 27, 2021 Share Posted August 27, 2021 @NaukriCan you reply message now? We check your account and it's normal no any banned. Link to comment Share on other sites More sharing options...
12345467860785678 Posted August 27, 2021 Author Share Posted August 27, 2021 @percy01 Yes. But it seem that my account had a limit of reply and it will reset everyday. So if I submit too many reply, I will get a notify message, and can't reply anymore until tomorrow. Link to comment Share on other sites More sharing options...
12345467860785678 Posted August 27, 2021 Author Share Posted August 27, 2021 @chengnay I edit all of Enum VRModuleDeviceClass.Controller to VRModuleDeviceClass.TrackedHand. And the lines 252, 422, 441, and 811 got change. I just restore the changes of line 252 and 811 be it still not rendering. by the way I got a warning : The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:Packages/com.htc.upm.vive-input-utility/VRModule/Modules/SimulatorModule.cs So maybe I don't have permission to edit this file? Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted August 27, 2021 Share Posted August 27, 2021 @12345678912345678912345678 It seems your path is correct, you should have permission to edit the file. Before you edit the SimulatorModule.cs, did you see any model? From my side, I see Focus's finch controller model when I set it to Vive Hand Tracking Track Hand Right/Left. Link to comment Share on other sites More sharing options...
12345467860785678 Posted August 27, 2021 Author Share Posted August 27, 2021 @chengnay I can edit the file SimulatorModule.cs, but it seem that unityEditor check the files in packages got change or not. If is, it will throw me the warning that I reply. Yes, I can see controller model before, but since I edit the file. It won't display anymore. even if I restore the copy of source code back. Link to comment Share on other sites More sharing options...
VIVE_chengnay Posted August 27, 2021 Share Posted August 27, 2021 @12345678912345678912345678 Could you re-open your Unity project again? Or could you verify on new project with my patch? I tested with VIU's example scene(UGUI). Link to comment Share on other sites More sharing options...
12345467860785678 Posted August 27, 2021 Author Share Posted August 27, 2021 I re-open before, It doesn't worked to me. I will try it now. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now