📜 ⬆️ ⬇️

How to create a 3D panorama of the battle of Borodino


Last year, the victory of Russia in the Patriotic War of 1812 was celebrated. The battle of Borodino is considered its key event. But, unfortunately, there are very few high-quality presentation (graphic and video) materials on this topic on the Internet, and the information in written sources is contradictory. Unlike, for example, the United States, where museum archives and historical data are being actively digitized and laid out for public viewing.

To correct this misunderstanding, as a gift to a memorable date, we in October 2012 created a 3D panorama of the Borodino battle. In fact, we made a photo reproduction of a famous picture-panorama, and also drew the missing fragments, added sounds and tooltips so that the viewer could feel at the epicenter of events.

Specialists in 3D graphics can reasonably point out that this is not 3D at all, since all objects are flat. In this case, the term "3D panorama" is used, as generally accepted in the industry, and, in general, approximately understandable within the meaning of advanced Internet users.

Photographing and gluing



')
At the very beginning, the photographer went to the museum, and made 40 photos in a circle. He was not allowed to photograph with a tripod (and there was very little time to agree on the solemn moment, moreover, the idea was to present the work as a surprise), so he photographed using improvised means, which made the gluing a bit harder at the next stage, but overall the result was worthy.

Then, using the LightRoom editor in batch mode, basic color correction was carried out and photos were converted from digital negatives to a more suitable format for working at the gluing stage.



The PTGUI program was used to glue photos into a single row. The built-in algorithms automatically placed the photos in the right places, but due to the fact that the photos were taken without a tripod and at different unpredictable angles, some of the joints between the glued photos turned out to be of poor quality, and I had to manually set control points for pasting the photos, but the result was still not was perfect. In the end, some of the joints had to be edited in Photoshop (at later stages).



The size of the glued image is impressive. It became noticeable that the computer used at that moment hardly copes with such volumes of calculations.



Earth and sky


The generated image was imported into Photoshop, and the most difficult task was to finish the sky and the earth.

Everything was simple with the sky - since it contains almost no information, the upper half was filled with the background color, after which the clouds, birds and smoke were painted using the stamp tool.

But with the land it was much more complicated. First, the earth represented a huge amount of details and textures that needed to be drawn, which in itself, under the external simplicity of the picture for the viewer, hides a huge amount of work for the artist.

And secondly, it was required that after pasting the panorama into a 3D sphere or square, the fragments on opposite parts of the image were seamlessly glued together.


Green color shows areas that had to be drawn.

At first, the earth, by analogy with the sky, was roughly painted over with the stamp tool, and then objects and textures from various sources were gradually added.



For the convenience of working with objects, the picture was converted into a cubic projection using the Pano2VR program, in which, unlike the equidistant, there are no strong distortions, only six flat squares with which you can work as with ordinary flat photographs.

This is what will happen with clouds, if you draw them without taking into account distortions in an equidistant projection, and then load the image into the 3D viewer and look at the sky:



Therefore, for convenience, the image was transformed into a cubic projection (the illustration below shows the projection with the sky and ground drawn on it):



Some lovers of historical facts reproached us for using our imagination and drawing details that weren't of historical value (debris scattered over the ground, pits, soil, etc.). But nevertheless, it was washed away, because without the painted sky and earth the panorama would not be complete, it would not make the proper impression, and the effect of presence would be lost.

Adding tooltips


When the sky and the earth were drawn, nice looking details were added, and a computer with a grief in half transformed several times from one projection to another file with a capacity of a couple of gigabytes, it seemed that the work was moving towards completion, and the worst was over. It was necessary to make clues, add sounds and upload work to the site.
But at the time of writing and posting hints in space, it turned out that some data on the location of the troops contradicted each other. Moreover, it turned out that the panorama itself is not a historically correct display of the course of the battle, but combines its key points, with sometimes even contradicting details added by the artist.

More information about the mistakes of the artist can be found in the article (magazine "around the world"), the link to the article is given at the end.
Graphic elements - buttons, pointers, as well as the prompts themselves are made in the form of PNG images that are dynamically loaded into a panorama flash file when hovering over the pointer. This is convenient, because if you need, for example, to correct a typo in the text, there is no need to download and edit the entire panorama file.




Voice acting


To voice the battle, it was necessary to find a suitable sound range. It was impossible to voice ourselves - the sounds of horses, hundreds of shouts, gun shots were needed. Searches on sound drains were delayed, as historically suitable recording was hidden among thousands of records of modern battles with machine guns and screams in English. However, after some time, it was possible to find a sound recording from the reconstruction of the battle of the 19th century, which was perfectly suited for the soundtrack of the panorama of the Borodino battle.

In addition to the main sound of the substrate for greater realism were added sounds tied to a particular point in space.



Export panorama and launch the project


Using the standard tools of the Pano2VR editor, the panorama was exported to a SWF file for viewing on ordinary computers, as well as HTML5 (xml, html and javascript) for viewing on tablet computers and mobile phones. Unfortunately, due to lack of time and incorrect operation on some devices, it was not possible to implement the support of the gyroscope for navigating through the panorama and it was decided to refuse this function.

When exporting, the panorama was automatically broken into a huge number of small square fragments, therefore during loading the panorama is loaded with “squares”. This solution allows to reduce the waiting time for loading the panorama.

After launching the site with a 3D panorama posted on it, the news about the project quickly spread through the Internet, began to appear on various news and educational portals, and, which is especially nice, on entertainment portals (where young people sit, and quite often spend time without a purpose). Thus, it was possible to attract the attention of the younger generation to the theme of the Patriotic War of 1812. An important role in the development of the project was performed by our partners - the educational portal Dnevnik.ru. Thanks to their support, on the very first day several thousand schoolchildren learned about the project and visited the site of the panorama.

Conclusion


We have created the opportunity to see the panorama of the battle of Borodino to any resident of Russia via the Internet using our own means and resources, and for this you no longer need to go to Moscow. It will be great if after reading this article there will be enthusiasts who want to continue the work.

What famous panoramas in our country are not yet digitized:




(not all are listed here)

Related Links:


Source: https://habr.com/ru/post/167043/


All Articles