Texture Export Failure (RC CLI) - No PNGs - Need Help

Hello,

I’m having trouble exporting textures from RealityCapture (last version). I’m processing large datasets of detailed scenes, and I’m trying to create a textured OBJ model. The alignment and mesh generation seem to be working, but I’m not getting any PNG texture files.

I’ve tried many things including increasing texturingMaxTexturesCount, different texelSize values and I am using exportTexture=true and exportVertexColors=false.

Here is my current CLI code:

command = [
rc_path,
“-addFolder”, folder_path,
“-align”,
“-set”, “preselectorFeatures=80000”,
“-set”, “detectorSensitivity=high”,
“-set”, “imageOverlap=high”,
“-set”, “maxFeaturesPerImage=0”,
“-set”, “alignmentMethod=gpsPrior”,
“-set”, “gpsAccuracy=1.0”,
“-set”, “maxImageProjectionOverlap=1.0”,
“-calculateNormalModel”,
“-set”, “minDistance=0.001”,
“-set”, “closeHoles=true”,
“-set”, “holeSizeThreshold=50”,
“-set”, “closeHolesAdaptive=true”,
“-simplify”,
“-set”, “targetTriangleCount=30000000”,
“-set”, “maxEdgeLength=-1”,
“-unwrap”,
“-set”, “unwrappingStyle=fixedTexelSize”,
“-set”, “texelSize=0.01”,
“-set”, “exportTexture=true”,
“-set”, “texturingMaxResolution=8192”,
“-set”, “texturingMaxTexturesCount=10000”,
“-set”, “textureFileType=png”,
“-set”, “textureQuality=100”,
“-set”, “exportTextureColorsFileType=png”,
“-set”, “exportTextureColorsQuality=100”,
“-calculateTexture”,
“-exportModel”, “Model 1”, obj_path,
“-quit”,
“-clearCache”
]

Am I missing a setting that is preventing the PNG texture files from being exported alongside the OBJ model? Is there a setting that might be blocking texture export? I would expect to see .obj, .mtl, and .png files.
Any help would be appreciated.
Thanks,

Hello @Darknath78
There are some strange things in your script.
First of all, you should use -set commands before the action command, not after that (as it won’t be applied then).
Secondly, don’t use Max features per image set to 0, try to use the pre-defined values as those are optimal for 24 Mpix images. If your image is bigger, set it accordingly.
Also, you can use XML files and not set commands, as you have quite a lot of them in your script. And as I am checking the set commands, they seem to be different to the actual one (RealityCapture Help). What is your source for the set commands?