FBX2glTF icon indicating copy to clipboard operation
FBX2glTF copied to clipboard

Max input file size

Open ggriffon opened this issue 5 years ago • 6 comments

Hi,

I am trying to convert a fbx file which size is 2.1GB.

Console returns: FBX Model: File does not exist:

ggriffon avatar Oct 21 '19 21:10 ggriffon

Yikes. Hmm. This might be operating system dependent. Is this on PC? I’ll admit I’ve never tested against such a large file. 2 GB is a common limit (2^31). There are various reasons 32-bit limitations in glTF as well, though it seems clear this error happens before we get that far.

zellski avatar Oct 26 '19 17:10 zellski

Yikes. Hmm. This might be operating system dependent. Is this on PC? I’ll admit I’ve never tested against such a large file. 2 GB is a common limit (2^31). There are various reasons 32-bit limitations in glTF as well, though it seems clear this error happens before we get that far.

yes it's on Win 10 x64

ggriffon avatar Oct 28 '19 15:10 ggriffon

OK, I'll try to give this a whirl when I can. Meanwhile could you work around it by exporting without embedding media? I assume it's largely textures that's taking up so much space.

zellski avatar Oct 28 '19 19:10 zellski

OK, I'll try to give this a whirl when I can. Meanwhile could you work around it by exporting without embedding media? I assume it's largely textures that's taking up so much space.

Thank you, there is actually no texture it's a huge model of a building.

ggriffon avatar Oct 28 '19 23:10 ggriffon

I have the same issue, on wsl it worked. Any update on this?

VincentSchmid avatar Oct 09 '20 15:10 VincentSchmid

I was able to get the file processed after updating a few lines to use boost to do the file exists check. In CLI11.cpp line 1159:

struct ExistingFileValidator : public Validator {
    ExistingFileValidator() {
        tname = "FILE";
        func = [](const std::string &filename) {
            if (!boost::filesystem::exists(filename)) {
                return "File does not exist: " + filename;
            } else if (boost::filesystem::is_directory(filename)) {
                return "File is actually a directory: " + filename;
            }
            return std::string();
        };
    }
};

ggriffon avatar Dec 16 '20 22:12 ggriffon