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

Swapping tile levels #70

Closed BeebBenjamin closed 10 months ago

BeebBenjamin commented 1 year ago

After a deep dive into the workings of the tile layer loading. I would like to toggle visibility of layers when zooming in and out.

I need to set in componentDidUpdate the prevProps.tileLevel to visible = false and see if this does the job.

BeebBenjamin commented 1 year ago

Loading is smoother without this. I have fixed tile loading in the custom-shaders branch, tiles without images yet are now hidden. I was not using uniforms properly. In order to test logic on them you need to evaluate the value of a uniform. The tile loading is now hidden better than before.

BeebBenjamin commented 11 months ago

Going to cherry pick the optimisations from custom-shaders

BeebBenjamin commented 11 months ago

Needs testing, not sure with the current implementation if this works in the best way. Maybe this is only specific when using a custom shader that don't have transparency!

BeebBenjamin commented 10 months ago

Closing for now.