Agisoft Metashape

Agisoft Metashape => Bug Reports => Topic started by: jackiehumzad on January 31, 2019, 01:57:21 PM

Title: FBX export ultra slow on Windows !!
Post by: jackiehumzad on January 31, 2019, 01:57:21 PM
I am exporting a 134 million faces mesh with vertex colors as FBX on Windows and after 3 hours the mesh export is still not complete. I exported smaller meshes with the Windows version before and this was also extremely slow (not that slow though, but mesh was smaller). Comparatively I have been using PhotoScan on a Mac and even though i didn't export such large meshes (can't because not enough RAM), comparatively to the Windows version it seemed to me the export on Mac was way faster. PhotoScan Standard 1.4.1, 64GB of RAM on Windows, 32GB ram on Mac.
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on January 31, 2019, 05:34:24 PM
Hello jackiehumzad,

Can you consider using different export formats, like Alembic, for such large mesh export? I also suggest to try version 1.4.5 or 1.5.0.
Title: Re: FBX export ultra slow on Windows !!
Post by: bestable on February 24, 2020, 03:44:49 PM
Old post revival, but this is still happening with latest version.

FBX 1Mil export takes too long.

(https://i.imgur.com/rsVT2kg.png)
Title: Re: FBX export ultra slow on Windows !!
Post by: Exorbitart on February 25, 2020, 12:44:23 PM
 just my experiences.:
I export 130mio fbx with current version in ca 1h but this is nearly the limit. obj support better export within 300-400mio polygons but in this ranges it need always 1-2h+ to export (I have 128gb ram).

A automatic tiled mesh via metashape would a big step for users in future!  ;)

To generate a 300mio mesh is not that big challange throught depthmaps.. but the export and further handling in one file is.
Title: Re: FBX export ultra slow on Windows !!
Post by: Exorbitart on February 25, 2020, 02:40:23 PM
I tried alembic export it works mutch faster. just few minutes to export a 300mio model
Title: Re: FBX export ultra slow on Windows !!
Post by: bestable on February 28, 2020, 05:25:14 PM
Alembic is faster, right, but Substance Designer does not accept abc files. What do You use to convert abc to Substance Designer compatible mesh ?
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on December 08, 2022, 12:39:24 PM
I keep having the same difficulties.
.fbx exports always take infinite amount of time even when we speak about models with 20mln triangles. It gets stuck at 50%.
I'm not sure what causes this.
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on December 09, 2022, 03:10:33 PM
Hello ilia,

Can you please provide the screenshot of Export Model dialog with the parameters used and also specify the number of vertices/faces in the model and the size of the texture atlas, if you are also saving the texture.

Also please specify, if the project is stored on local/network/external drive and whether the model is exported to local (SSD or HDD), network or external drive?
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on December 09, 2022, 06:37:36 PM
Hi Alexey,
Actually when I recently was working on .fbx export I have it done in a reasonable time.
But yesterday my 10mln export went quite well in .fbx format. It got stuck at 50% progress as usual, but when I've got back to machine I saw it was done and it didn't take more than 20 mins I think.
Before I had issues export in .fbx models with 100mln triangles. I have a couple models under hand and I will try to play with it a bit and .fbx exports.
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on December 09, 2022, 07:03:49 PM
Hello ilia,

Let me know, if you observe considerable difference for the same model export to FBX with and without vertex colors information (for example, for models with more than 40-50 faces).
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on January 16, 2024, 03:40:14 AM
Dear Alexey,

I again experienced the situation when exporting .fbx (no embedded textures) takes like 15 mins against approx. 1 min. .glb export. Should I try to upload the model somewhere?
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on January 16, 2024, 12:35:25 PM
Hello ilia,

Do you use binary or text export option? Also please specify the number of polygons in the model and, if the texture export is enabled, number and size of texture atlas pages, we will try to reproduce it on similar models first.

Additionally, please specify, if the export is done on local, external or network drive and what are the sizes of exported FBX and .glb files.
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on January 16, 2024, 06:41:26 PM
Binary option was used,
It took 15 mins for the model with 24mln to get exported in .fbx. I would say it is like 10 times slower (if not more) than using .glb.
Settings are attached to this message.

One of the problems here is that progress bar quickly reaches 50% and gets stuck there. And as a user I don't have any visual feedback from the progress at all. For large models it is quite hard to understand if anything is happening.

Also as I see it fully loads a single CPU core after it reaches its 50%.
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on January 18, 2024, 02:17:06 PM
Hello ilia,

Thank you for additional information. We will try to improve FBX export speed in the 2.1.1 update.
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on January 23, 2024, 04:46:23 PM
Thank you Alexey!
Title: Re: FBX export ultra slow on Windows !!
Post by: Alexey Pasumansky on February 12, 2024, 11:43:27 AM
Hello ilia,

Can you please check version 2.1.1 pre-release, if the FBX export time is reasonable now:
https://s3-eu-west-1.amazonaws.com/download.agisoft.com/metashape-pro_2_1_1_x64.msi
https://s3-eu-west-1.amazonaws.com/download.agisoft.com/metashape-pro_2_1_1_amd64.tar.gz
https://s3-eu-west-1.amazonaws.com/download.agisoft.com/metashape-pro_2_1_1.dmg
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on February 12, 2024, 05:16:09 PM
Hi Alexey,

I just tested it on one of models I have next to me. For 31 mln. faces model it took:
a) 23 mins on 2.0.3 version
b) 2.3 mins on 2.1.1 version you just provided.

Seems like 10 times speed up on my machine. Nice work! Thank you!
Title: Re: FBX export ultra slow on Windows !!
Post by: ilia on February 12, 2024, 08:02:03 PM
Alexey,

A couple notes regarding 2.1.1 version you provided. Sorry to bring it less related to this thread. I tried 2.1.1 to also see if I can get any improvements for this problem:
https://www.agisoft.com/forum/index.php?topic=16226.0
 (https://www.agisoft.com/forum/index.php?topic=16226.0)

And I've noticed one regression related to multirig setup.

1. I can't activate just a single slave camera from a rig and use it like that for texturing. Metashape now says "No cameras".
2. If I using Python API unselect "master" camera from a rig it by cam.enabled = False used for master camera cam it automatically disables all slave cameras also. Which didn't happen in 2.0.3 I used before.