IT

Photogrammetry and drones · 1 December 2026

Metashape: when alignment goes wrong, use chunks

When façades look alike, Metashape can align photos to the wrong one with no warning from the error. Four chunks, markers and Merge Chunks fixed it.

Clicking loads the video from YouTube: Google will receive your IP address and may store data on your device. Privacy · Watch it on YouTube

You have photographed three façades of a building and you run the alignment in Metashape.
When it finishes, only two façades have been reconstructed.
Many photos of the missing façade have been placed on top of another one, which they have nothing to do with.

A photo dataset does not always align in a single block.
When it doesn’t, chunks can get you out of trouble.
Here I show you how I handled a real case: four chunks, markers taken from a total station and a laser scanner, and a final merge with Merge Chunks.
I use Metashape Professional 2.3.2: markers, which are at the heart of this workflow, are not available in the Standard edition.

This article comes from a video I published on my YouTube channel, in the Metashape Facile series.
The video is in Italian, with English audio track and subtitles.

The dataset

The survey covers three façades of a building.
I used a full-frame camera with a 16 mm lens on a pole that extends up to 8 metres, walking around the three façades.
Then I made two more rounds with a 35 mm lens from the ground: one with portrait shots up to the eaves, and one with landscape shots aimed only at the upper part, to capture the second, third and fourth floors.

I was also able to get onto the roof of the building opposite the long side.
From there I shot with the 16 mm and then with the 35 mm, as a sort of close-up of the roof, to reconstruct at least the roof pitch.
The upper part is still poorly covered: I say it now because it shows in the final result.

Alongside the photos I had laser scans along the three façades, taken with a Trimble SX10, an instrument that combines a laser scanner and a total station.
Since the scans are tied to a traverse, the laser data is solid.
That is where I took the Ground Control Points and Check Points for the photogrammetric processing.

Laser point cloud of the building in Metashape with the Trimble SX10 scan positions around the façades
The Trimble SX10 scans along the three façades: the reference data for the whole job.

The wrong alignment

I usually tell you not to be afraid of loading every photo of a dataset into a single chunk, even when they come from different cameras, lenses and sensors.
Metashape handles that quite well.
Not this time.

After the alignment, the sparse cloud shows two façades.
If you didn’t know the site, you might even think it was fine.
But there were three façades, and one of them is missing entirely.

Sparse cloud in Metashape with camera positions: only two façades of the building are visible
After aligning everything in one chunk: two façades, the third is missing.

The photos of the missing façade were not left out.
They aligned onto the photos of the other short façade, corner shots included, which ended up on the wrong corner.
The very similar geometry gave Metashape no way to tell what it was looking at.
It is worth saying that the cameras had no position data: no GPS attached.

The only photos left unaligned were the ones taken from the roof, looking down.
Metashape warns you about those.
The others did align, but in the wrong place, and nothing warns you about that.

Selected photos highlighted in pink in the sparse cloud, overlapping the wrong short façade
In pink, the photos of the first façade: Metashape placed them on the other short façade.

An error the numbers don’t show

This is a sneaky error.
If you check the reprojection error in the photo table, the values look reasonable: 1.5, 1.7, around 2 pixels.
The number of projections behind each alignment is high too.
Numerically, everything looks fine.

Metashape Reference panel with the Projections and Error (pix) columns next to the wrong sparse cloud
The Error (pix) column: values around 2 pixels, no sign of the problem.

I tried changing the alignment parameters.
For example, by unticking Generic preselection, so that Metashape searches the photo pairs that may share points more thoroughly.
The result does not change.

Align Photos dialog with Accuracy set to High and Generic preselection unticked
Align Photos without Generic preselection: the same wrong alignment.

At that point the only option was to split the processing into several chunks.

What a chunk is

A Metashape project can contain several chunks.
A chunk is a container: what happens inside it is kept separate from the other containers in the same project.
You can align with different parameters and at different quality settings, and build products in one chunk that do not exist in the others.

The images are not duplicated.
They stay in their folder and every chunk reads them from there.
Loading the same photos into several chunks does not make the project heavier.

Four chunks

At first I split the project into three parts, one per façade.
In the long-side chunk, however, the photos taken from the street and those taken from the roof did not have enough overlap and geometric difference: once again, the roof photos would not align.
The only way out was a fourth chunk, just for the long-side photos taken from above.

So there are four chunks.
V1 is the first short side, L1D the long side from the ground, L2U the long side from the roof, V2 the second short side.
Each chunk holds only the photos of its own portion.

Metashape Workspace panel with the V1, L1D, L2U and V2 chunks
The four chunks in the Workspace, each with its own photos, markers and tie points.

I aligned each chunk on its own.
At the end of each alignment the sparse clouds were there, and the alignments were consistent and robust inside each container.
Even the roof photos, on their own, aligned correctly.

L2U chunk in Metashape: sparse cloud of the long side with the cameras above the roof of the building opposite
The L2U chunk: the photos taken from the roof opposite, finally aligned with each other.

Why not Align Chunks

With four sparse clouds ready, you might be tempted to align them with each other straight away.
Metashape has an Align Chunks command in the Workflow menu: you pick the chunks and a method, Tie point based, Marker based or Camera based.

Align Chunks dialog with the four chunks ticked and the Method menu open on the three methods
Align Chunks and its three methods: here none of them gives a solid result.

In this case none of the three would have produced a meaningful result.
The tie points of one façade are too disconnected from those of the others: there is nothing to join them.
Markers don’t help either, because on three long façades practically no marker appears in more than one chunk.
Cameras are even worse: with no GPS position, each group of cameras is oriented only relative to its own façade and has no idea where it sits relative to the others.

The way forward is something else: the measurements taken on site.
Here they were essential to complete the project.

Targets and markers on the elevations

At the bottom of each façade I placed targets printed to the Metashape standard, 12 bit.
Metashape recognises them well and gives each one the name it was printed with.
The command is in Tools, Markers, Detect Markers: as the target type choose Circular 12 bit.

Detect Markers dialog with the Target type menu open on Circular 12 bit and a detected target in a photo
1. The target type, Circular 12 bit; 2. a detected target, with its green flag.

When detection is finished, Metashape puts a green flag on the targets it is confident about.
Every façade has these low targets, measured with the total station.
But markers placed this low do little to constrain the model.

That is why there is a second group of markers, taken afterwards along the elevations.
Having laser data tied to the traverse made all the difference here.
In Trimble Business Center, the software that handles that data, I took the coordinates of points that are also recognisable in the photos, and created markers on those points in Metashape.

Façade photo in Metashape with a marker placed on the edge of a patch of damaged plaster
A marker on the elevation, at the edge of damaged plaster: coordinates taken from the laser point cloud.

The flag effect

With markers only at the bottom, you often (not always) get the flag effect.
The model is held at the bottom, but the upper part has more freedom: it can lean out towards the street or tilt back towards the building.
That is what happened on the long façade and on one of the short ones.

To spot it I needed the fieldwork once again.
For each chunk, after adding the low targets, I exported the dense cloud at medium quality and compared it with the laser point cloud in CloudCompare.
That showed me how far the upper part drifted, away from the targets.

The comparison showed that every façade needed markers on the elevations, the roof photos included.
Without them, you can end up with errors of almost ten centimetres at the top.
The taller the building, the larger the error.
And on site you need to know from the start that you have to collect the data to fix these problems later.

Optimisation and accuracies

With the markers and their coordinates in place, I optimised the alignment of each chunk.
I unticked some markers to use them as check points.
The two groups get different accuracies: 5 mm for the low targets, measured directly with the total station, and 1 cm for the markers taken from the laser point cloud, measured passively.

Metashape Reference table with the Accuracy column at 0.005 m and the total errors on control and check points
1. Accuracy of 5 mm for the targets measured with the total station; 2. total error on control points and check points.

On the long façade I got an error below one centimetre on the Control points and of one and a half centimetres on the Check points.
That is fine for the purpose of this job.
On the other short façade, with fewer markers, one centimetre on the control points and less than one centimetre on the check points.
I did the same for the first short façade and for the chunk of roof photos.

Merge Chunks, not Align Chunks

At this point I have four solid chunks, still independent, but all in the same reference system.
The images are positioned relative to the markers, and the markers come from the laser scans tied to the total station.
The chunks are already aligned with each other: you must not align them again.
With Align Chunks you would lose all the work done so far.

The right command is Merge Chunks, in the Workflow menu.
Select the four chunks to merge and tick Merge tie points and Merge markers, so that both the tie points and the markers are merged.

Merge Chunks dialog with the four chunks ticked and the Merge tie points and Merge markers options enabled
Merge Chunks: 1. the four chunks to merge, 2. Merge tie points and Merge markers.

The result is a new chunk, which I called Unione (Italian for “merge”).
It holds the three façades, part of the roof slope and all the markers.
The photos, both lower and upper, are all in the right place.

Unione chunk in Metashape: sparse cloud with the three façades, the roof slope and all the markers
The Unione chunk: three façades, the roof slope and every marker in a single block.

One more optimisation

Even after merging, it is worth optimising again.
The same container now holds four datasets that share information, not just the reference system.
The optimisation works on the whole block, the bundle block adjustment: the cameras adjust a little more relative to each other and to the sparse cloud, and the interior orientation parameters are refined too.

In my case, checking the dense cloud against the laser data showed that the first short façade was leaning slightly forward.
The flag effect, absent in its own chunk, appeared with the global optimisation.
I added three points along the vertical part, DA61, DA62 and DA63, with coordinates taken from the scans, and optimised again.

Merged chunk in Metashape with markers DA61, DA62 and DA63 along the upper part of the short façade
The three markers added on the first short façade, which were not in its separate chunk.

The merged chunk has a lot of markers, and that is a good thing: plenty of information as Ground Control Points and as Check Points.
The final report shows precision and accuracy in the order of one centimetre, with accuracy slightly below one centimetre on the check points.

Which points to take from the laser cloud

When you take coordinates from the laser point cloud for a façade, avoid projecting elements, especially edges.
On an edge you never know whether the laser beam really hit the edge or slipped onto the point behind it.
That measurement is weak.

Façade photo with the edge of a cornice above a window highlighted
The edge of a cornice: a point to avoid.

Flat features work better, such as patches of damaged plaster.
You can identify the point clearly in the photo and find it again in the laser scanner point cloud.

Façade photo with marker DM31 on the edge of a patch of damaged plaster
The edge of damaged plaster, on a flat surface: a reliable point.

The model and the façade orthomosaic

With the merged chunk you have a solid sparse cloud, checked and measured.
From here you can carry on with the rest of the processing.
In my case the result is a textured triangular mesh of the three façades.

Textured model of the building in Metashape, with two façades visible
The textured model, built from the photos of the four merged chunks.

From the model you can also produce façade orthomosaics.
There are gaps on the top two floors, because a solid photo capture of the upper part is missing.
But the result matches what the job required.

Façade orthomosaic of the main elevation in the Ortho view of Metashape
The façade orthomosaic of the main elevation.

Without chunks I would not have got this project done.
Aligning all the photos together, in a single container, would have been very hard.
Alignment is the core of photogrammetry: if it is not solid, nothing you build on top of it is.

← All articles