mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-05 19:39:21 +00:00
HMD mode
Head attachment Head offsets Model visibility VR compatibility
This commit is contained in:
parent
eb3f09fffd
commit
4c85c92203
8 changed files with 436 additions and 147 deletions
|
@ -6,56 +6,16 @@ This mod allows you to use your Leap Motion controller for hands and fingers vis
|
|||
* Install [latest MelonLoader](https://github.com/LavaGang/MelonLoader)
|
||||
* Get [latest release DLL](../../../releases/latest):
|
||||
* Put `ml_lme_cvr.dll` in `Mods` folder of game
|
||||
* Add code section below in `<GameFolder>\ChilloutVR_Data\StreamingAssets\Cohtml\UIResources\CVRTest\index.html` after div for `InteractionViveFaceTrackingStrength` menu item:
|
||||
```html
|
||||
<!--Leap Motion start-->
|
||||
<h2>Leap Motion tracking</h2>
|
||||
<div class="row-wrapper">
|
||||
<div class="option-caption">Enable tracking:</div>
|
||||
<div class="option-input">
|
||||
<div id="InteractionLeapMotionTracking" class="inp_toggle" data-current="false" data-saveOnChange="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-wrapper">
|
||||
<div class="option-caption">Desktop offset X:</div>
|
||||
<div class="option-input">
|
||||
<div id="InteractionLeapMotionTrackingDesktopX" class="inp_slider" data-min="-100" data-max="100" data-current="0" data-saveOnChange="true" data-continuousUpdate="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-wrapper">
|
||||
<div class="option-caption">Desktop offset Y:</div>
|
||||
<div class="option-input">
|
||||
<div id="InteractionLeapMotionTrackingDesktopY" class="inp_slider" data-min="-100" data-max="100" data-current="-45" data-saveOnChange="true" data-continuousUpdate="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-wrapper">
|
||||
<div class="option-caption">Desktop offset Z:</div>
|
||||
<div class="option-input">
|
||||
<div id="InteractionLeapMotionTrackingDesktopZ" class="inp_slider" data-min="-100" data-max="100" data-current="30" data-saveOnChange="true" data-continuousUpdate="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-wrapper">
|
||||
<div class="option-caption">Fingers tracking only:</div>
|
||||
<div class="option-input">
|
||||
<div id="InteractionLeapMotionTrackingFingersOnly" class="inp_toggle" data-current="false" data-saveOnChange="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!--Leap Motion end-->
|
||||
```
|
||||
* Add code from [this gist](https://gist.github.com/SDraw/543825b39cdabc3bc4fda358bc70247a) to `<GameFolder>\ChilloutVR_Data\StreamingAssets\Cohtml\UIResources\CVRTest\index.html` after div for `InteractionViveFaceTrackingStrength` menu item (near line 1188)
|
||||
|
||||
# Usage
|
||||
## Settings
|
||||
Available mod's settings in `Settings - Implementation - Leap Motion Tracking`:
|
||||
* **Enable tracking:** enable hands tracking from Leap Motion data, disabled by default.
|
||||
* **HMD mode:** force Leap Motion to use head-mounted orientation mode, disabled by default.
|
||||
* **Desktop offset X/Y/Z:** offset position for body attachment, (0, -45, 30) by default.
|
||||
* **Attach to head:** attach hands transformation to head instead of body, disabled by default.
|
||||
* **Head offset X/Y/Z:** offset position for head attachment (`Attach to head` is **`true`**), (0, -30, 15) by default.
|
||||
* **Offset angle:** rotation around X axis, useful for neck mounts, 0 by default.
|
||||
* **Fingers tracking only:** apply only fingers tracking, disabled by default.
|
||||
|
||||
# Notes
|
||||
* Only desktop mode is implemented, VR mode is in development.
|
||||
* Head attachment isn't implemented, in development.
|
||||
* Root rotation isn't implemented, in development.
|
||||
* Model visibility isn't implemented, in development.
|
||||
* **Model visibility:** show Leap Motion controller model, useful for tracking visualizing, disabled by default.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue