Using RealityScan 2.0. I need to export the alignment in COLMAP text format without tie points, which are included in ‘images.txt’ by default. Following the suggestions in your help page, I found ‘calibration.xml’ which appears to contain the relevant format specification, and modified it in a way that I thought would have the desired effect. But when I restarted RS and exported, the original file format was reproduced. The same happened even after a reboot.
There is no other copy of ‘calibration.xml’ anywhere on my system.
What am I missing?
Hello @TKSharpless
Is it possible that you have installed more versions on your computer?
Can you check in C:\Program Files\Epic Games folder if you have only one RealityScan folder there? Also, is it possible that you have older version (like 1.5.1)?
I was testing this, I removed
$WriteFile("Images.txt",
$[a]# Image list with two lines of data per image:
# IMAGE_ID, QW, QX, QY, QZ, TX, TY, TZ, CAMERA_ID, NAME
# POINTS2D[] as (X, Y, POINT3D_ID)
# Number of images: $(cameraCount)
$[b]
$ExportCameras(
$[a]$(index+1) $QuaternionFromMatrix(R00,-R02,R01,R10,-R12,R11,R20,-R22,R21,$(qw:g) $(qx:g) $(qy:g) $(qz:g)) $(tx:g) $(ty:g) $(tz:g) $(cameraIndex+1) $(imageName)$(imageExt)$[b]$[n]
$ExportTiePoints("",0,999999,
$[a]$(x*scale+width*0.5) $(y*scale+height*0.5) $(pointIndex+1) $[b]
)$Strip(1)
$[n]
))
from the calibration.xml file and the Images.txt
file wasn’t exported:
I did have RealityCapture 1.4 still installed and have removed it. But that was not the problem.
It turns out that my changes have taken effect, but did not work as expected due to an editing mistake, now resolved.
The orignal calibration.xml:
$WriteFile(“Images.txt”,
$[a]# Image list with two lines of data per image:
IMAGE_ID, QW, QX, QY, QZ, TX, TY, TZ, CAMERA_ID, NAME
POINTS2D as (X, Y, POINT3D_ID)
Number of images: $(cameraCount)
$[b]
$ExportCameras(
$[a]$(index+1) $QuaternionFromMatrix(R00,-R02,R01,R10,-R12,R11,R20,-R22,R21,$(qw:g) $(qx:g) $(qy:g) $(qz:g)) $(tx:g) $(ty:g) $(tz:g) $(cameraIndex+1) $(imageName)$(imageExt)$[b]$[n]
$ExportTiePoints(“”,0,999999,
$[a]$(xscale+width0.5) $(yscale+height0.5) $(pointIndex+1) $[b]
)$Strip(1)
$[n]
))
My replacement :
$WriteFile(“Images.txt”,
$[a]# Image list with one line of data per image:
IMAGE_ID, QW, QX, QY, QZ, TX, TY, TZ, CAMERA_ID, NAME
Number of images: $(cameraCount)
$[b]
$ExportCameras(
$[a]$(index+1) $QuaternionFromMatrix(R00,-R02,R01,R10,-R12,R11,R20,-R22,R21,$(qw:g) $(qx:g) $(qy:g) $(qz:g)) $(tx:g) $(ty:g) $(tz:g) $(cameraIndex+1) $(imageName)$(imageExt)$[b]$[n]
$[n]
))
images.txt now has the revised header and blank lines where the tie point data used to be.
Thanks for your help.