qywako

Results comments of qywako

hello, when you add the handle controller,did you need to get the rotation,and how to get it?

Matrix4 Chellovr_engineDlg::GetCurrentViewProjectionMatrix( vr::Hmd_Eye nEye ) { Matrix4 matMVP; if( nEye == vr::Eye_Left ) { matMVP = m_mat4ProjectionLeft * m_mat4eyePosLeft * m_mat4HMDPose; } else if( nEye == vr::Eye_Right ) { matMVP...

@Hellgringo83 hei,did you solve this problem?i meet the same question,could you tell me how to solve it. you can email me, [email protected]. thank you.

@Hellgringo83 i try but failed.code like those: float cx[3][3]; double m[4][4]; Matrix4 mat= m_rmat4DevicePose[unTrackedDevice]; //mat.invert(); //when unTrackedDevice==0,invert. const float* pmat = mat.get(); const float matrixTemp[3][4]={ pmat[0],pmat[1],pmat[2], pmat[3], pmat[4],pmat[5],pmat[6], pmat[7], pmat[8],pmat[9],pmat[10],pmat[11]...

See the remark of the method Matrix4& Matrix4::invertAffine() in Matrices.cpp. if so,i neet to get the rotation (Vector4) to set my model in my own engine that not open sourse,how...

like this, /////////////////////////////////////////////////////////////////////////////// // compute the inverse of a 4x4 affine transformation matrix // // Affine transformations are generalizations of Euclidean transformations. // Affine transformation includes translation, rotation, reflection, scaling,...

``` void Chellovr_engineDlg::GetRotation(float mat[3][3],Vector4& rot) { float q[4]; float trace; float s; float t; int i; int j; int k; static int next[ 3 ] = { 1, 2, 0...