gamenew09 / vrmod-module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To install or update the module, open the "install" folder and read "INSTALLATION.txt"

--

This is the module used by the VRMod addon for Garry's Mod (https://steamcommunity.com/sharedfiles/filedetails/?id=1678408548).
It adds some basic lua functions for interfacing with OpenVR, and a way to mirror a texture from the game to the VR compositor.

If you want to compile the module yourself using visual studio:
-add the source files to your project and make sure the project is configured to produce a .dll
-link openvr_api.lib and get the OpenVR headers, both available at https://github.com/ValveSoftware/openvr
-get the gmod lua headers https://github.com/Facepunch/gmod-module-base/tree/development
-get MinHook (header and lib, which you can build yourself) https://github.com/TsudaKageyu/minhook

SPECIAL THANKS TO:

UselessGhost (https://steamcommunity.com/id/UselessGhost)
who shared tips and their proof of concept gmod vr module source on the VRMod Workshop Discussions,
where the current directx hooking and texture sharing code is borrowed from.
https://bitbucket.org/uselessghost/gmcl_openvr

About

License:zlib License


Languages

Language:C++ 98.3%Language:Batchfile 1.7%