Set the FOV with respect to the image's zoom level

This commit is contained in:
Ylva Selling
2021-04-13 15:54:38 +02:00
parent 7e81a05bf0
commit f6e4c33db3

View File

@@ -57,7 +57,7 @@ namespace openspace::skybrowser::luascriptfunctions {
browser->getSkyTarget()->lookAtGalacticCoord(imageCoordsGalactic);
// In WWT, VFOV = ZoomLevel * 6
//browser->setFieldOfView(resultImage.zoomLevel * 6);
browser->setFieldOfView(resultImage.zoomLevel / 6);
}
browser->sendMessageToWWT(browser->createMessageForSettingForegroundOpacityWWT(100));
return 1;