# Allignment question

**URL:** <https://forums.unrealengine.com/t/allignment-question/2051312>\
**Category:** Photogrammetry\
**Tags:** realityscan\
**Created:** [October 3, 2024, 12:49pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312 "2024-10-03T12:49:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 3, 2024, 12:49pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/1 "2024-10-03T12:49:50Z")

</div>

Sorry for opening a new topic, but I have another issue. When I align the laser scans and photos, I set the laser scanner scans to a locked position and use a local reference system. However, when I align them with the photos, everything gets slightly tilted, causing a significant error. Could I get some explanations on how to lock the position of the scans without it being changed During the alignment phase?  
 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/c/aeca798ce43ea08bf5d25cdc4359a938ef7e50fb.png)

 ![2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/2/832e2c37a5decb8acdf778ea63ae26be31b509d1.png)  
 ![3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/2/462c984a39c65e00e8bc54728d131eb7cb0ff255.png)  
 ![4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/5/0f5aec85a21a5a743f03e76e82359feacf4ef949.png)

---

<div class="post-metadata">

**Author:** ![JakubVanko](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jakubvanko/32/1215548_2.png) [@JakubVanko](https://forums.unrealengine.com/u/JakubVanko)\
**Post date:** [October 7, 2024, 9:48am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/2 "2024-10-07T09:48:54Z")

</div>

Hi, during the import of the laser scans, use the following settings:

- “Registration: Exact”, this will lock relative laser scan poses
- “Georeferenced: Yes” and set “Coordinate system: local:1 - Euclidian”, this will ensure that the imported local coordinate system of the laser scans is used

 ![Laser Scan Import](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/2/d02440550f57b0e980727487892d3b8fed287710.png)

To preserve the imported coordinate systems of the laser scans during export from RC, make sure the Project and Output coordinate systems in the Application settings are set to local:1 - Euclidian as well.

Finally, when you export the result from RC, make sure the Coordinate system is set to Project output. This will preserve the laser scans coordinate system throughout the whole RC pipeline.

Are the photos you are trying to align to the laser scans georeferenced? If so, this might be causing issues and big errors. If yes, disable the georeferencing in the Prior pose. Simply select all photos and set the absolute pose to Unknown. Only the laser scans will have a locked prior pose.

I recommend you delete all components and redo the alignment from scratch. RC tries to optimize existing components, and if they are already bad, it’s better to start from scratch.

Let me know if this advice helps.

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 8, 2024, 5:18am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/3 "2024-10-08T05:18:12Z")

</div>

I think the problem was either with or without the georeferencing. Now i choose yes and the model are correct. thanks

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 8, 2024, 5:20am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/4 "2024-10-08T05:20:27Z")

</div>

And what do these parameters refer to  
 ![122](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/6/1/761447557c27ba8f0a8a2b5044cf8b7145601759.png)

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 8, 2024, 3:44pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/5 "2024-10-08T15:44:36Z")

</div>

The problem persists even if I insert the scans as georeferenced in the exact position and lock them. You can see the parameters below. The problem persists when I use the photos… why

 ![laser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/6/426881d0c9209af6c20f4a954ddb032b0d0afd90.png)  
 ![laser_photo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/2/84275241aaf4c44f957db178f02fb9ce80e44940.png)

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 9, 2024, 9:34am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/6 "2024-10-09T09:34:51Z")

</div>

Hi @geoanture86  
_Lock for continue_ option locks only the relative poses of the cameras, not the absolute ones.  
_Locked pose group_ - there you can set the camera groups which relative poses won’t change after alignment.

Don’t lock laser scans. It is not necessary, as you are using the exact option during import.  
Also, keep Yes for Use camera priors for georeferencing and set Unknow just for images in 1Ds view for Prior pose.

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 10, 2024, 8:24pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/7 "2024-10-10T20:24:13Z")

</div>

Thank you, but I didn’t understand why the first time, even though I set the exact position and locked the laser scans, after the alignment, the whole component was tilted. How can you explain this to me

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 11, 2024, 7:31am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/8 "2024-10-11T07:31:47Z")

</div>

Hi, following your settings it is because you have set No under Use camera priors for georeferencing. To keep the laser’s position and orientation you need to set it to Yes.  
For other images you can set the Prior pose to Unknown.

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 11, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/9 "2024-10-11T15:37:25Z")

</div>

Now understand…  
i have another question in the menù con.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/0/570cdd89132bc8b3434e3e13e5279af6c5ae6c7d.png)

can i write a code? if yes, which is the language?

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 11, 2024, 3:38pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/10 "2024-10-11T15:38:15Z")

</div>

I noticed that when the alignment finishes, it performs a color correction. Why is that?

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 14, 2024, 6:13am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/11 "2024-10-14T06:13:05Z")

</div>

> [@OndrejTrhan](#):
>
> Hi, following your settings it is because you have set No under Use camera priors for georeferencing. To keep the laser’s position and orientation you need to set it to Yes.  
> For other images you can set the Prior pose to Unknown.

I have three sets: the first set is a nadir drone mission georeferenced using GCPs, a set of photos taken with a drone and therefore with GPS position, and a laser scanner set georeferenced in another program using the same GCP coordinates. Now, I want to merge them into one set. What do you recommend I do?

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 14, 2024, 7:42am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/12 "2024-10-14T07:42:42Z")

</div>

_can i write a code? if yes, which is the language?_  
You can use batch scripting or sequencer: [RealityCapture Help](https://rchelp.capturingreality.com/en-US/appbasics/allcommands.htm), [https://www.youtube.com/watch?v=cZv\_DKQMSVg](https://www.youtube.com/watch?v=cZv_DKQMSVg)

_I noticed that when the alignment finishes, it performs a color correction. Why is that?_  
You need to have set that in the Color and Texture settings:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/9/899c11386ae15cbfa51f2b2693310510c28dad92.png)

_I have three sets: the first set is a nadir drone mission georeferenced using GCPs, a set of photos taken with a drone and therefore with GPS position, and a laser scanner set georeferenced in another program using the same GCP coordinates. Now, I want to merge them into one set. What do you recommend I do?_  
I suppose you asked this more times before. Jakub described the process above, the process was also described here: [georeferencing and registration a component - #6 by OndrejTrhan](https://forums.unrealengine.com/t/georeferencing-and-registration-a-component/1944963/6).

If all your datasets are georeferenced, you can import the components into new project and then use the option Merge georeferenced components in the Alignment settings.  
Just drone images could have not so precise GPS, so I would use the GCPs also there.

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 14, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/13 "2024-10-14T17:51:42Z")

</div>

Thanks  
Hi, I aligned my first set of photos with the GCPs in one project.  
I aligned the second set of photos in another project using some of the same GCPs as before.  
I exported the components and reimported them into a new project, I did a merge, but it didn’t give me any result

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 14, 2024, 6:44pm UTC](https://forums.unrealengine.com/t/allignment-question/2051312/14 "2024-10-14T18:44:33Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/9/59970a9d0651aadc187313ccd975ad2ed2ee77eb.jpeg)

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 15, 2024, 7:01am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/15 "2024-10-15T07:01:28Z")

</div>

Hi, just to be sure, do you still describing the same project?  
As you wrote that you used the GCPs to georeference your components, why they are not in the project? After exporting the component and then importing it into a new project, the control points are imported, too.  
According to your image it looks just like imported components into a new project.  
By merge, do you mean a tool Merge Components?  
Have you tried a new alignment in this project?  
Also, as not of your components are georeferenced and if the alignment wont’ work, you can set Merge georeferenced component to Yes in the Alignment settings and then align again.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/6/8/d6890a98c4b60e71bb1a9618124c1df1ea934870.png)

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 15, 2024, 7:11am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/16 "2024-10-15T07:11:48Z")

</div>

"I georeferenced the two components in two different projects. When I imported them into the new project, I deleted the GCPs and redid the alignment, also using the merge component function in the alignment section.

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 15, 2024, 7:20am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/17 "2024-10-15T07:20:08Z")

</div>

Why you didn’t keep those GCPs? It will help you to merge the datasets and also keep scale and position.  
It is strange that for such overlap between components you are getting two of them using the alignment…  
Can you try also that Merge georeferenced components setting?

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 15, 2024, 7:29am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/18 "2024-10-15T07:29:55Z")

</div>

Which GCPs should I use, from the first project, the second project, or both?  
I tried with the ‘Merge georeferenced component’ option, but nothing worked.  
Now, for the two components, I used some GCPs and tried to align them, but there’s a significant error in altitude.

Can you explain the best way to align these components?  
Consider that the second mission has detailed images of the object, so it didn’t capture all the GCPs present in the nadir mission.

This is what I’m doing now: using the first georeferenced nadir project, I import all the detailed photos from the second mission and start the alignment. If it doesn’t work, I’ll also add the GCPs I can find in the photos from the second mission

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [October 15, 2024, 7:47am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/19 "2024-10-15T07:47:27Z")

</div>

You wrote that the GCPs were the same for both project, so it doesn’t matter…  
As the components are already georeferenced, that option should work.

As you used the GCPs again, have you turned off the prior pose for the images?

You don’t need to capture all of the GCPs, for a basic alignment you need to have at least three. How many GCPs do you have in your project? How are they placed?

If GCPs doesn’t work, I would use also control point to merge the components.

---

<div class="post-metadata">

**Author:** ![geoanture86](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geoanture86](https://forums.unrealengine.com/u/geoanture86)\
**Post date:** [October 15, 2024, 10:32am UTC](https://forums.unrealengine.com/t/allignment-question/2051312/20 "2024-10-15T10:32:26Z")

</div>

I used 14 GCPs for the first project and 5 GCPs for the second one. I didn’t deactivate the prior pose.  
Can you explain what the prior pose is used for and when to activate it? I still don’t fully understand.

[Next page](https://forums.unrealengine.com/t/allignment-question/2051312.md?page=2)
