This may not be a reality capture issue, but my team is having issues with our scripts using reality capture CLI. We’ve been encountering issues where we export our model from Reality Capture and it exports the OBJ fine, but there’s a 5% chance that the FBX we export fails. I don’t think I’ve ever had an issue when exporting an FBX from the GUI.
The next command is to close Reality Capture, and that shouldn’t be happening until RC exports that FBX.
Any ideas?
Hello Ryan,
which version of RealityCapture are you using? How does your script look? Do you have stable repro steps for such error? Is there some error shown during export or the model is not exported at all? What will happen, when you don’t use the close command in your script?
Sorry for the late response @OndrejTrhan We’re using RC 1.5.0.118050.
We run rc with our scripts in the background, so for all I know there is no physical error that pops up, and it does not export the fbx.
I’m not entirely sure what you mean by
stable repro steps for such error?
We are able to reproject fine. I haven’t checked the OBJ file for any reprojection errors, but I suppose if it fails again I can check the OBJ.
We’ll have to check if the ‘close’ step is causing it later, since this issue is random and we’re doing active testing for other issues, we’ll do it overnight for a bunch of scans to test.
I’ll need permission to share our script publicly on the forums.
Hi Ryan,
as you wrote that this error is random, I suppose there are no stable steps to achieve it.
It will be helpful if you share the script, data and settings with us. To do so I can create an internal Box folder, which will be used only for our investigation.
That sounds good. By ‘Box’ do you mean a private folder I can upload to so I don’t have to share it through the forums?
Here at least are the arguments we are running. [REDACTED] for private info.
Running main pass...
/cygdrive/c/Program Files/Capturing Reality/RealityCapture/RealityCapture.exe
-writeProgress
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\rc_progress_pipe
1
-set
appAutoClearCache=true
-load
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-selectMaximalComponent
-setReconstructionRegion
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\generated_region.rcbox
-set
mvsNormalDownscaleFactor=4
-calculateNormalModel
-renameSelectedModel
original_solve
-save
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-renameSelectedModel
triangles_outside_reconstruction_region_removed
-renameSelectedModel
all_but_largest_component_triangles_removed
-renameSelectedModel
marginal_triangles_removed
-selectLargestModelComponent
-invertTrianglesSelection
-removeSelectedTriangles
-renameSelectedModel
all_but_largest_component_triangles_removed_again
-selectLargeTrianglesAbs
0.025
-removeSelectedTriangles
-renameSelectedModel
triangles_larger_than_2.500cm_removed
-cleanModel
-renameSelectedModel
cleaned_and_closed
-simplify
750000
-renameSelectedModel
quick_model_nextmed_nextmed25_day_3_bv267ec836ce0a67b4f46c843c3_5_11_0000001_750K
-set
unwrapStyle=MaxTexturesCount
-set
unwrapMaximalTexCount=1
-set
unwrapMaxTexResolution=8192
-set
txtImageDownscaleTexture=1
-calculateTexture
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\texture_settings_params.xml
-save
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-exportModel
quick_model_nextmed_nextmed25_day_3_bv267ec836ce0a67b4f46c843c3_5_11_0000001_750K
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\3d\quick_model_nextmed_nextmed25_day_3_bv267ec836ce0a67b4f46c843c3_5_11_0000001_750K.obj
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\export_quick_model_params.xml
-save
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-exportModel
quick_model_nextmed_nextmed25_day_3_bv267ec836ce0a67b4f46c843c3_5_11_0000001_750K
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\3d\quick_model_nextmed_nextmed25_day_3_bv267ec836ce0a67b4f46c843c3_5_11_0000001_750K.fbx
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\export_cameras_model_params.xml
-save
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-exportUndistortedImages
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\undistorted_images
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\export_undistorted_images_params.xml
-save
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\proj\last_proj_rc_v1.5.0.118050.rcproj
-exportReport
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\report.txt
C:\Users\[REDACTED]\AppData\Local\Temp\solver_assets\take_dir-dev\meta\report_template.xml
-quit
Second pass completed with return code: 0
Yes, I meant the private folder. I’ve created one for you where you can upload the data.
Are the other commands after FBX export applied?
When it happens, it gets all the way to the fbx export, and everything after does not come through, and reality capture stops.
It makes it all the way to the exporting step, and then nothing else runs after that (if the fbx doesn’t export).
It’s not like reality capture crashes, we don’t get any notification that it has crashed, it just closes.
I did see the box invite, and I will hold onto that, unfortunately we are not ready to share just yet. A little busy at the moment and we may pick this up next week. I can respond to this thread when we’re ready to share.
Thank you for your patience,
Ryan
Hello Ryan,
just one more thing. How big is the FBX model which isn’t possible to export? There is a size restriction for the FBX (FBX Export File Size), so it could be relates, as it mostly works for you.