Difference between revisions of "Reality Capture"
Jump to navigation
Jump to search
(→Process multiple scans) |
|||
Line 12: | Line 12: | ||
)) | )) | ||
− | // Create a second .bat to run Reality Capture | + | // Create a second .bat to run Reality Capture - take a look on their documentation |
+ | |||
+ | set RealityCaptureExe="C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe" | ||
+ | set ScriptFolder=%~dp0 | ||
+ | set SimplifySettings=%ScriptFolder%SimplifySettings25.xml | ||
+ | set ModelSettings=%ScriptFolder%ModelSettings.xml | ||
+ | set PtcSettings=%ScriptFolder%PtcSettings.xml | ||
+ | set RegSettings=%ScriptFolder%RegistrationSettings.xml | ||
+ | set projectRoot=%Images%\..\ | ||
+ | set outputDir=%projectRoot%\OUT\%assetName% | ||
+ | mkdir %outputDir% | ||
+ | set undistoDir=%outputDir%\undistos | ||
+ | mkdir %undistoDir% | ||
+ | set Model=%outputDir%\%assetName%.obj | ||
+ | set Project=%outputDir%\%assetname%.rcproj | ||
+ | set PTC=%outputDir%\%assetname%.xyzrgb | ||
+ | |||
+ | %RealityCaptureExe% -addFolder %Images% ^ | ||
+ | -selectAllImages ^ | ||
+ | -setPriorLensGroup 2 ^ | ||
+ | -align ^ | ||
+ | -selectMaximalComponent ^ | ||
+ | -setReconstructionRegionAuto ^ | ||
+ | -calculateNormalModel ^ | ||
+ | -simplify %SimplifyTo% %SimplifySettings% ^ | ||
+ | -selectMarginalTriangles ^ | ||
+ | -removeSelectedTriangles ^ | ||
+ | -selectLargeTrianglesRel 12 ^ | ||
+ | -removeSelectedTriangles ^ | ||
+ | -renameSelectedModel %assetName% ^ | ||
+ | -calculateTexture ^ | ||
+ | -save %Project% ^ | ||
+ | -exportModel %assetName% %Model% %ModelSettings% ^ | ||
+ | -exportRegistration %mayaScene% %newRegSettings%^ | ||
+ | -exportSparsePointCloud %PTC% %PtcSettings% ^ | ||
+ | -clearCache ^ | ||
+ | -quit | ||
</pre> | </pre> |
Revision as of 16:16, 12 September 2023
Reality Capture
Process multiple scans
// Create a first .bat with the list of the assets you want to process - One folder by asset, all in the same directory set list=asset_001 asset_002 asset_003 asset_004 asset_005 asset_006 asset_007 (for %%a in (%list%) do ( set assetName=%%a set Images=\\DISK\PATH\%%a call \\DISK\PATH\exec_RC.bat )) // Create a second .bat to run Reality Capture - take a look on their documentation set RealityCaptureExe="C:\Program Files\Capturing Reality\RealityCapture\RealityCapture.exe" set ScriptFolder=%~dp0 set SimplifySettings=%ScriptFolder%SimplifySettings25.xml set ModelSettings=%ScriptFolder%ModelSettings.xml set PtcSettings=%ScriptFolder%PtcSettings.xml set RegSettings=%ScriptFolder%RegistrationSettings.xml set projectRoot=%Images%\..\ set outputDir=%projectRoot%\OUT\%assetName% mkdir %outputDir% set undistoDir=%outputDir%\undistos mkdir %undistoDir% set Model=%outputDir%\%assetName%.obj set Project=%outputDir%\%assetname%.rcproj set PTC=%outputDir%\%assetname%.xyzrgb %RealityCaptureExe% -addFolder %Images% ^ -selectAllImages ^ -setPriorLensGroup 2 ^ -align ^ -selectMaximalComponent ^ -setReconstructionRegionAuto ^ -calculateNormalModel ^ -simplify %SimplifyTo% %SimplifySettings% ^ -selectMarginalTriangles ^ -removeSelectedTriangles ^ -selectLargeTrianglesRel 12 ^ -removeSelectedTriangles ^ -renameSelectedModel %assetName% ^ -calculateTexture ^ -save %Project% ^ -exportModel %assetName% %Model% %ModelSettings% ^ -exportRegistration %mayaScene% %newRegSettings%^ -exportSparsePointCloud %PTC% %PtcSettings% ^ -clearCache ^ -quit