Skip to content

Instantly share code, notes, and snippets.

@Rectus
Rectus / openvr_trackingtest_main.cpp
Created September 20, 2021 09:41
Hack of the SteamVR hello_vr example with camera passthrough added. This version calculates a screenspace to screenspace transform.
//========= Copyright Valve Corporation ============//
// From https://github.com/ValveSoftware/openvr
// Modified by Rectus
#include <windows.h>
#include "d3dx12.h"
#include <d3d12.h>
#include <dxgi1_4.h>
#include <wrl.h>
#include <D3Dcompiler.h>
@Rectus
Rectus / openvr_trackingtest_main.cpp
Created September 10, 2021 17:59
Hack of the SteamVR hello_vr example with camera passthrough added
//========= Copyright Valve Corporation ============//
// From https://github.com/ValveSoftware/openvr
// Modified by Rectus
#include <windows.h>
#include "d3dx12.h"
#include <d3d12.h>
#include <dxgi1_4.h>
#include <wrl.h>
#include <D3Dcompiler.h>
#include "SteamVRUtils.h"
#define INPUT_PATH_CONTROLLER_LEFT "/user/hand/left"
#define INPUT_PATH_CONTROLLER_RIGHT "/user/hand/right"
#define INPUT_PATH_HMD "/user/head"
using namespace vr;
<!-- dmx encoding keyvalues2 4 format model 22 -->
"DmElement"
{
"id" "elementid" "d2cf1451-8fb9-3988-82a0-3feb8bcae2ab"
"name" "string" "Scene"
"skeleton" "element" "094e4572-7f24-34fc-b2f9-a2abd8adfcaf"
"model" "element" "094e4572-7f24-34fc-b2f9-a2abd8adfcaf"
}
"DmeModel"
// Dump of all classes for "left4dead2" as at 2019/08/02
//
CFireSmoke - _firesmoke
CPlasma - _plasma
CCharge - ability_charge
CLeap - ability_leap
CLunge - ability_lunge
CSelfDestruct - ability_selfdestruct
CSpitAbility - ability_spit