
Today is 42 years since the first successful landing of a spacecraft from Mars to Mars - Mars-3. It is known that he successfully sat down because the radio broadcasting began - he began to transmit the first photo-panorama from the surface. Antennas could open only in the case of a successful primarseniya.
As you probably know, this year he was again remembered when it became known that
Zelenyikot and the subscribers of his Vkontakte group
Curiosity - Mars Rover discovered Mars-3 on Mars.
A few days after the discovery of "Mars-3", I began to see how terrible it was, which species had not been transmitted to Earth by the apparatus. By that time, I had the experience of creating volumetric objects in Blender 3D based on Curiosity images and height maps attached to them. Therefore, I thought, “But would it be possible to do the same, but with the model of the landing site Mars-3, placing the camera on behalf of the device?”.
In theory, everything is simple. It was necessary to take the data of the Mars Reconnaissance Orbiter satellite, on the basis of which NASA experts created an
anaglyph surface . Googling, I did not find a way to convert anaglyph into a height map.
In the group of Curiosity was cry for help. He found a response, for what I express my deep gratitude to
Daniel Tolkachev , who responded and made a height map based on satellite data.
')
Here is his description of the process:
“Toolkit: Python + OpenCV. The algorithm is personally written, albeit standard:
1. Characteristic features are searched for in the images (SIFT algorithm)
2. A comparison of point features from two images is made. As a result, we obtain a matrix linking a point on one image and a line on another (the fundamental matrix)
3. Based on the fundamental matrix, the images are aligned, thus it turns out that the same object in two images lies on the horizontal. Anaglyph is based on rectified images. Stereo comparison is also based on them.
4. Using the Semiglobal Stereo Matching algorithm, a disparity map is generated. There are some subtleties with setting up the algorithm and processing a large image.
It is worth noting that the method used for constructing a height map does not allow for obtaining absolute values, and indeed there may be some distortions associated with the feature of satellite imaging. ”(It seems to be absent on Habré, but if the process is interesting, then I will try to invite him for a detailed description).
By that time, a
competition for the creation of a
Mars-3 3D model was
held in
the "Mars- rover" group, and it could be added to the panorama.

Next, the case of technology. In short: I cut a square piece of the desired area in the picture for the texture and the same on the height map. In Blender 3D, he created the surface, superimposed a height map on it, slightly corrected proportionality, superimposed the texture, adjusted the Sun, the color of the sky, the atmosphere and put the model of the device in its place in the satellite image (which is the texture).
I would like to dwell on proportionality. Any normal person will ask: "And where is the guarantee that the view in this image more or less corresponds to reality?". Everything is very simple. Firstly, the map is based on satellite data. Secondly, there is such an interesting thing - the objects in the program are scaled proportionally. Each side of the model is increased by the same number of times. Therefore, stretching the model exactly to the diameter of the device in satellite photography, we automatically make it proportional to the whole landscape.
As a result, it turned out:




Here are the pictures that were taken by placing the camera on behalf of the Mars-3 cameras themselves (the length and height of the image corresponds to the format of the camera of the device):





In the pictures, the most remarkable detail is the mountains in the background - this is the shaft of the 18-kilometer crater Reutov, which was so
named in August 2013.
I emphasize that they do not claim to be accurate, but I’m sure that 60% corresponds to what we would see if the device did transmit images from the surface (and the quality of its cameras would exceed what was set there in 70- e yr).
Unfortunately, we do not have 3D models of the brake motor connected with chains to the lower part of the torus container, and there is no model of the foam casing with which the probe defended itself when it hit the surface. Therefore, we can not establish a complete picture of the landing site. There are no drawings either; even the model of the Mars-3 itself was created “by eye”, on the basis of photographs.

As you can see, in the simulation and the surface is not enough stones, all sorts of small details that can be seen in the satellite image. Therefore, if there are people among the habrayusers who can suggest how to do it more intelligently, or do it themselves, I will be very happy and ready to provide all possible assistance.