Skip to content

Instantly share code, notes, and snippets.

@ChristophHaag
ChristophHaag / VapourSynth-RIFE-ncnn-Vulkan_script.py
Created July 13, 2024 23:08
VapourSynth-RIFE-ncnn-Vulkan_script.py
import sys
import os
import vapoursynth as vs
core = vs.core
core.num_threads = 32 # can influence ram usage
clip = video_in
clip = vs.core.resize.Bicubic(clip, format=vs.RGBS, matrix_in_s="709")
@ChristophHaag
ChristophHaag / nolo_everything_still.txt
Created March 19, 2022 22:51
nolo cv1 pro message bytes
OpenHMD version: 0.3.0
num devices: 7
device 0
vendor: GigaDevice
product: NOLO CV1 Pro
path: 3-6.4.4.3:1.0
class: HMD
flags: 06
null device: no
{
"device_class" : "controller",
"device_pid" : 8192,
"device_serial_number" : "LHR-48A54FB6",
"device_vid" : 10462,
"firmware_config" : {
"fsr_grip_A" : -0.254999995,
"fsr_grip_B" : 0.920000017,
"fsr_grip_C" : 0.277200013,
"fsr_grip_D" : 0.877609491,
@ChristophHaag
ChristophHaag / config.json
Created April 7, 2021 20:58
Valve Index config
{
"device" : {
"eye_target_height_in_pixels" : 1600,
"eye_target_width_in_pixels" : 1440,
"first_eye" : "eEYE_LEFT",
"hidden_area_mesh" : 5,
"last_eye" : "eEYE_RIGHT",
"num_windows" : 1
},
"device_class" : "hmd",
{
"device" : {
"eye_target_height_in_pixels" : 2,
"eye_target_width_in_pixels" : 1,
"first_eye" : "eEYE_LEFT",
"last_eye" : "eEYE_RIGHT",
"num_windows" : 1
},
"device_class" : "hmd",
"device_pid" : 8192,
@ChristophHaag
ChristophHaag / overlay.cpp
Created July 13, 2020 02:14
openvr sdl opengl overlay example
// g++ overlay.cpp -o overlay $(pkg-config --cflags --libs gl sdl2) -lopenvr_api
#define GL_GLEXT_PROTOTYPES 1
#define GL3_PROTOTYPES 1
#include <GL/gl.h>
#include <iostream>
#include <SDL2/SDL.h>
#include <openvr/openvr.h>
@ChristophHaag
ChristophHaag / actions.cpp
Last active March 20, 2020 12:43
openvr actions test snippet
// g++ actions.cpp -o actions -lopenvr_api
#include <openvr/openvr.h>
#include <stdio.h>
#include <chrono>
#include <thread>
bool showTrigger = false;
bool showActionSet = true;
@ChristophHaag
ChristophHaag / actions.json
Created November 8, 2019 02:29
openvr overlay, dashboard pointer, actions
{
"default_bindings":[
{
"controller_type":"vive_controller",
"binding_url":"bindings_vive_controller.json"
},
{
"controller_type": "knuckles",
"binding_url": "bindings_vive_controller.json"
}
@ChristophHaag
ChristophHaag / actions.cpp
Created September 25, 2019 17:04
ShowActionOrigins and ShowBindingsForActionSet test
// g++ actions.cpp -o actions -lopenvr_api
#include <openvr/openvr.h>
#include <stdio.h>
#include <chrono>
#include <thread>
bool showTrigger = false;
bool showActionSet = true;
@ChristophHaag
ChristophHaag / actions.cpp
Created August 22, 2019 12:31
minimal example for bChanged issue since SteamVR 1.7.7
// g++ actions.cpp -o actions -lopenvr_api
#include <stdio.h>
#include <openvr/openvr.h>
#include <chrono>
#include <thread>
using namespace vr;