bodleian / archiox-mirador-plugin

An experimental plugin to display depth information captured with Lucida or Selene scanners from FactumARTE. However, the plug-in can present any normal map/albedo map combination produced from any technique.
MIT License
1 stars 0 forks source link

Optimise tile loading #47

Closed BeebBenjamin closed 1 year ago

BeebBenjamin commented 1 year ago

To reduce the load on our tiles server for a potential public exposure of the plug-in we need to refactor the ThreeCanvas to only load in tiles that have been loaded into Mirador i.e. that are visible on screen for that zoom level and then load them in as they are also added to Mirador.

I would need to grab the following:

  1. the current size of the picture
  2. what tiles are present on screen, their positions etc
  3. the intersection of the whole image on screen

Then from the ThreeCanvas

  1. offest camera based on the size and zoom of picture
  2. change the textures and mesh tiles (their sizes, numbers, and positions) depending on the zoom level and pan
BeebBenjamin commented 1 year ago

Notes

BeebBenjamin commented 1 year ago

First draft of the implementation of this is ready, but has some bugs to iron out. One issue is when the renderer is activated at the max tileLevel, the previous tileLevel has not loaded in yet and the layer is completely transparent to the default Mirador image below.

BeebBenjamin commented 1 year ago

On QA for testing

BeebBenjamin commented 1 year ago

Looks like it works for now, so closing.