Open INF800 opened 2 years ago
can we expose level
I was planning to display using network calls. But it cannot be a best practice.
No, there isn't, and I don't see any compelling reason to exposure it. If you have a good reason for it to be exposed, please share it. However, there's a change I'm working on that would use different levels for different parts of the view, to make things more efficient, which would negate the potentially utility of such a value.
You could also figure out the target level (but it may not have loaded yet) by replicating the internal calculation: https://github.com/mpetroff/pannellum/blob/fa11a998a4a0c393933c753d0d7b48243937ca05/src/js/libpannellum.js#L1517-L1523
The main reason why I need to see the level was to understand the loss/improvement in picture quality. If we cannot grab the current level of our viewer can we do something like viewer.gotoLevel(3)
which would take us to that level in current field of view.
I'm still not really sure what you're trying to accomplish.
Hi, is there any way to get current level in multires realtime?
for example something like
viewer.getCurrentMultiresLevel()