How to make tile from publish sphere - fran6t/ExhibMyDrone GitHub Wiki
Step-by-step explanation for publishing a sphere made up of many tiles, thus allowing progressive display and lower instantaneous bandwidth requirements.
To do this we will start from the high resolution sphere of the tutorial [Tutorial assembly Dji Mini Air 2 raw to Sphere with Rawtherapee and Hugin stepby step](https://github.com/fran6t/ExhibMyDrone/wiki/Tutorial-assembly-Dji -Mini-Air-2-raw-to-Sphere-with-Rawtherapee-and-Hugin-step-by-step)
The manipulations can easily be done with gimp, except the final cut.
The easiest way is to use ImageMagick which allows you to do all the operations in an automated way.
First the principle:
The tile display needs a starting image with a 1/2 format such as 16384x8192 pixels.
In the tutorial we saw that we get a sphere that measures 17054x6029 pixels.
We will therefore proceed in 4 steps.
- Decrease the image in 16384 pixels without deformation (there will therefore be a lot of pixels missing vertically)
- Add a white band on the upper part of the image in order to obtain 8192 pixels in height
- Creation of a low resolution background image which, as the display progresses, will be covered with high definition tiles
- Creation of the 128 tiles by cutting the 16384x8192 image into a 1024x1024 square
3 small shells (without net because no parameter control or other can do the job automatically)
They are available here these are the commands that appear there that we will execute step by step.
French
Explication pas à pas pour publier une sphère constituée de nombreuses tuiles permettant ainsi un affichage progressif et un moindre besoins en bande passante instantanée.
Pour ce faire nous allons partir de la sphère haute résolution du tutoriel Tutorial assembly Dji Mini Air 2 raw to Sphere with Rawtherapee and Hugin stepby step
Les manipulations peuvent aisément se faire avec gimp, sauf le découpage finale.
Le plus simple c'est d'utiliser ImageMagick qui permet de faire toutes les opérations de façon automatisées.
D'abord le principe :
L'affichage par tuile à besoins d'une image de départ ayant un format 1/2 comme par exemple 16384x8192 pixels.
Dans le tutoriel nous avons vu que nous obtenons une sphère qui mesure 17054x6029 pixels.
Nous allons donc procéder en 4 étapes.
- Diminuer l'image en 16384 pixels sans déformation (il manquera donc beaucoup de pixels en vertical)
- Ajouter un bandeau blanc sur la partie haute de l'image afin d'obtenir 8192 pixels en hauteur
- Création d'une image de fond de basse résolution qui au fur et à mesure de l'affichage va se couvrir des tuiles hautes définition
- Création des 128 tuiles en découpant l'image 16384x8192 en carré de 1024x1024
3 petits shell (sans filet car pas de contrôle de paramètre ou autre peuvent faire le travail en automatique)
Ils sont disponible ici ce sont les commandes qui y figurent que l'on va exécuter pas à pas.