Commit 98086a3d authored by Sebastian Riebeling's avatar Sebastian Riebeling
Browse files

explicit function for building of rot matrix

parent 57f6cf07
......@@ -75,7 +75,7 @@ CVAAmbisonicsBinauralMixdownReproduction::CVAAmbisonicsBinauralMixdownReproducti
conf.ReqInteger("TruncationOrder", m_iAmbisonicsTruncationOrder); // Sollte aus der Zahl der Eingangskanle berechnet werden
conf.OptInteger("HRIRFilterLength", m_iHRIRFilterLength, 512);
conf.OptInteger("TrackedListenerID", m_iListenerID, 1);
conf.OptString("RotationMode", m_sRotationMode, "Quaternion"); //Set calculation of rotations to "ViewUp" or "Quaternion" or "BFormat"
conf.OptString("RotationMode", m_sRotationMode, "BFormat"); //Set calculation of rotations to "ViewUp" or "Quaternion" or "BFormat"
std::string sDefaultHRIRPathRAW;
......@@ -556,13 +556,17 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
calcRotationMatrix(m_orderMatrices, m_iAmbisonicsTruncationOrder, dYaw, dPitch, dRoll);
//calcRotationMatrix(m_orderMatrices, m_iAmbisonicsTruncationOrder, 0, 0, ITAConstants::PI_D);
//Eigen::MatrixXd R0 = m_orderMatrices[0];
//To be delted: display of matrices for every order
/*
Eigen::MatrixXd R0 = m_orderMatrices[0];
Eigen::MatrixXd R1 = m_orderMatrices[1];
Eigen::MatrixXd R2 = m_orderMatrices[2];
Eigen::MatrixXd R3 = m_orderMatrices[3];
Eigen::MatrixXd R4 = m_orderMatrices[4];
*/
/*
const int order1 = 3;
double matrix1[order1][order1];
for (int i = 0; i < order1; i++) {
......@@ -578,8 +582,8 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix2[i][j] = R2(i, j);
}
}
*/
/*
const int order3 = 7;
double matrix3[order3][order3];
for (int i = 0; i <= order3; i++) {
......@@ -587,6 +591,7 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix3[i][j] = R3(i, j);
}
}
const int order4 = 9;
double matrix4[order4][order4];
for (int i = 0; i < order4; i++) {
......@@ -594,10 +599,11 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix4[i][j] = R4(i, j);
}
}
*/
Eigen::MatrixXd matRotation = buildRotationMatrix(m_orderMatrices, m_iAmbisonicsTruncationOrder);
//To be deleted: only for testing purposes. Better display of 25x25 matrix (possible to see ind. values)
double matrix[25][25];
for (int i = 0; i < 25; i++) {
for (int j = 0; j < 25; j++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment