Mathias DIDIER
Mathias DIDIER
Hi, sorry for the delay, I just retrieve some code related to this usage, but it's old code, maybe there were breaking changes since.. ~~~py import os import time import...
TLDR: The part you interessed of is probably just: ~~~py matrixTransformation = openvr.HmdMatrix34_t() rotmat = vrutils.rotationXMatrix(math.radians(-90)) matrixTransformation = vrutils.numpyToMatrix34(vrutils.appliRotationMatrixToAxis(matrixTransformation, rotmat)) openvr.VROverlay().setOverlayTransformTrackedDeviceRelative(ov, r, matrixTransformation) ~~~
Oups, didn't saw my vrutils dependencies.. here it is: ~~~py # vrutils import openvr import math import time import numpy as np import transformations def get_controller_ids(vrsys=None): # return the ids...
My deconstruct CPP algorythm from [the original example](https://github.com/ValveSoftware/openvr/blob/master/samples/helloworldoverlay/openvroverlaycontroller.cpp): Create the opengl context : ~~~cpp m_pOpenGLContext = new QOpenGLContext(); m_pOpenGLContext->setFormat( format ); bSuccess = m_pOpenGLContext->create(); ~~~ Create an offscreen surface to...
I have the exact same problem here. And I have to specify that I was correctly working few days ago (I used it for only for generating image file, and...