MCPcopy Create free account
hub / github.com/city-super/Octree-GS / setIntialView

Method setIntialView

SIBR_viewers/src/core/view/MultiMeshManager.cpp:400–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

readFromFileMethod · 0.80
fromTransformMethod · 0.80
transformMethod · 0.80

Tested by

no test coverage detected