Commit 57c12821 by wester

sizes

parent 650619c3
......@@ -498,17 +498,17 @@ int main(int argc, char* argv[]) {
float dx = KinectOriginOffsetX - KinectSizeX/ 2;
float dy = KinectSizeY / 2 + 0.008; // dicke Halterung;
float dz = 0.090f; //TODO - offset nach hinten;
float dz = 0.05f; //TODO - offset nach hinten;
controlerToKinect = glm::translate(glm::mat4x4(), (glm::vec3(0.0f, 0.0f, 0.24f)));
controlerToKinect = glm::translate(glm::mat4x4(), (glm::vec3(0.0f, 0.0f,0.173 /*controller*/+0.03 ))); //TODO -controller gre + halterung
controlerToKinect = glm::rotate(controlerToKinect, degreeToRadioan(135.0f), glm::vec3(1.0f, 0.0f, 0.0f));
controlerToKinect = glm::rotate(controlerToKinect, degreeToRadioan(180-64 /*63,9...*/), glm::vec3(1.0f, 0.0f, 0.0f));
controlerToKinect = glm::rotate(controlerToKinect, degreeToRadioan(180.0f), glm::vec3(0.0f, 0.0f, 1.0f));
controlerToKinect = glm::translate(controlerToKinect, (glm::vec3(dx, -dy, dz)));
std::cout << "Kinect to center: " << dx <<" "<< dy << " " << dz;
std::cout << "Kinect to center: " << dx <<" "<< dy << " " << dz<<std::endl;
// x kinect mitte =
......@@ -523,6 +523,12 @@ int main(int argc, char* argv[]) {
loadAssImp("C:\\Program Files (x86)\\Steam\\steamapps\\common\\SteamVR\\resources\\rendermodels\\vr_controller_vive_1_5\\vr_controller_vive_1_5.obj", indices, out_vertices, out_uvs, out_normals);
float max = 0.0;
for (size_t i = 0; i < out_vertices.size(); i++)
{
max = std::fmax(out_vertices[i].z, max);
}
std::cout << "max " << max << std::endl;
glGenBuffers(1, &controllerData.vboID);
glBindBuffer(GL_ARRAY_BUFFER, controllerData.vboID);
......
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