Author Topic: Align/snap model and region to axes  (Read 310 times)


  • Newbie
  • *
  • Posts: 2
    • View Profile
Align/snap model and region to axes
« on: March 03, 2021, 02:03:45 PM »
Hello all!

I've done some reasearch on this issue before, and it seems to have been a problem for some users for quite some time, but wasn't really addressed or fixed until now. I'm also not sure if there is a Phython solution to this problem. If so, please let me know. A user-friendly integration to the ui would then of course very good!

In my experience processing hundreds of scans in Photoscan/Metashape, there is not a single model that I remember that was correctly aligned.
It is frustrating and time consuming as well as unprecise to do this by hand. I've seen Meshlab and Cura be able to do this by selecting a bunch of faces and automatically aligning them to the axes. Capturing Reality seems to have had this process built in for years (but I don't use their software for various reasons).

Right now, I'm manually using a method similar to this older forum post:
Use the below technique to orient your scans upright. To set a real world scale and/or specific location (such as 0,0,0) within photoscan you will need the pro version so that you can set markers/scalebars, otherwise you will have to do it externally.

You can use Rotate Object tool for unrefrenced chunks to change their orientation in the coordinate system.

My preferred method of using it is:

1. hit numpad 7 to go to top view
2. then invoke the rotate object tool to rotate the model to a top view.
3. hit space bar to return to 'normal' navigation mode
4. hit numpad 1 to go to front view
5. hit space again to return to rotate object mode and fine tune the rotation in front view
6. hit space to return to normal nav mode again
7. hit numpad 3 to get a side view
8. hit space to get back to rotate object mode and further fine tune the rotation if required
9. hit space to get back to normal navigation mode
10. hit numpad 7, 1 and 3 in sequence to check the model is aligned and repeat the above if necessary.

I would therefore like to see a semi-automatic or automatic process for aligning the model and region on the axes.

I understand that sometimes it can be difficult to guess the alignment of images taken upside down or rotated 90°.
But in my case, I often use the turntable where the orientation is very clear based on the images. Even using the images as a reference (rather than the sparse point cloud) for orientation would be sufficient for me. But a sophisticated solution that can be applied to the mesh or dense point would be greatly appreciated!

Also a function to rotate the model in e.g. 90° steps while holding down e.g. the ALT key would be great!

Thanks a lot in advance!
Metashape 1.7.1, Ryzen 3950x, Vega VII + Vega 64, MacOS 10.14.6 (Hackintosh/Ryzentosh), 64 GB DDR4 3200 MHz RAM