If you create a model in blocks in the CLI, the file size gets smaller and smaller as the blocks progress.

When the CLI is used to divide the model into blocks and apply processing, the file size of the resulting model decreases as the blocks progress.
(The resulting model becomes increasingly coarse and dirty)
This did not happen in previous versions, but with the latest version, this symptom occurs.
The same result occurs when processing on other PCs.
Also, if I process only a part of the file without separating the blocks in the CLI, the data size will be large and clean, and only continuous processing with separate blocks will cause this symptom.
Also, it is the same in both Windows 10 and 11.
How can I solve this and get the same quality results with all blocks?

The CLI description is as follows

::CapturingReality

@ echo off

:: Call a batch file where variables for RealityCaptyre .exe file and root folder are stored.
call SetVariables.bat

:: Here we check how many rows and columns were used when divided, from the file table.txt.
(
set /p totalRows=
set /p totalColumns=
)<table.txt

:: Below here place any commands you would like to do before cycling through the reconstruction regions (such as selecting a model to work with).
%RealityCaptureExe% -delegateTo *

:: Set variables which help recognizing when processing has finished a column or a row by comparing these values to the totalRows and totalColumns values.
set /a columnNum=1
set /a rowNum=1

:actionLoop
:: Here we cycle through the import of the reconstruction region.
%RealityCaptureExe% -delegateTo * -setReconstructionRegion “%RootFolder%reconRegions\row%rowNum%column%columnNum%.rcbox”

:: Below here place any commands you would like to do with every reconstruction region (remove pause if you don’t need to work in the GUI).

%RealityCaptureExe% -delegateTo * -calculateHighlModel -smooth -cleanModel -closeHoles -simplify 20000000 -unwrap -calculateTexture -calculateVertexColors -simplify 2000000

:: Import the next reconstruction region in the column or go to the next row.
if %rowNum% == %totalColumns% goto nextRow
set /a rowNum+=1
goto actionLoop

:: Import the reconstruction region from the first column in the next row.
:nextRow
if %columnNum% == %totalRows% goto end
set /a rowNum=1
set /a columnNum+=1
goto actionLoop

:: Finish processing.
:end


Hi nii21nii21,
this seem very similar to our divider script (Divider Script | Tutorial). Have you tried also that script? If so, is it also happening there?

1 Like

Thanks for replying.
Yes, I am very interested in the idea. I am also trying the divider script.
But as the model progresses in the same way.
The size will get smaller and smaller.
My PC specs are Windows 11 and I have 128g of memory.
I can’t imagine that there is not enough memory.
I have had no problems with previous versions of Realitycapture.
Is there any change in the behavior with the CLI in the new version?

Hi nii21nii21,
would it be possible to achieve this error on smaller dataset for you? If so, can you create a project from it and then contact our support? We will need to check your data, if it is happening on our site too to create a bug (but until now we are not able to reproduce it).
We will need to check your data, project and whole CLI script.
Also, can you paste here the screen shot of first and last box with model?
This shouldn’t be connected to the memory.

It seems like I was able to reproduce this (or something very similar) and I created a bug for it. Can you try to use Version 1 in Depth map algorithm version under Advanced reconstruction settings, if it will be the same for you?