| 398 | } |
| 399 | |
| 400 | void MultiMeshManager::setIntialView(const std::string& dataset_path) |
| 401 | { |
| 402 | const std::string topViewPath = dataset_path + "/cameras/topview.txt"; |
| 403 | std::ifstream topViewFile(topViewPath); |
| 404 | if (topViewFile.good()) |
| 405 | { |
| 406 | SIBR_LOG << "Loaded saved topview (" << topViewPath << ")." << std::endl; |
| 407 | // Intialize a temp camera (used to load the saved top view pose) with |
| 408 | // the current top view camera to get the resolution/fov right. |
| 409 | InputCamera cam(camera_handler.getCamera()); |
| 410 | cam.readFromFile(topViewFile); |
| 411 | // Apply it to the top view FPS camera. |
| 412 | //camera_handler.fromCamera(cam, false); |
| 413 | camera_handler.fromTransform(cam.transform(), false, true); |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | void MultiMeshManager::initShaders() |
| 418 | { |
nothing calls this directly
no test coverage detected