Code:
https://www.reddit.com/r/opengl/comments/s6rjlm/assimp_file_loading_error_wierd_behavior/
Without the actual model, this is just a guessing game. Also, 3dMax or Blender are the preferred tools. If you use Sketchup, you will run across problems from time to time. If this is the only model example you have problems with, couldn't you just remake it, perhaps without textures, and see if you can reproduce the problem?
Again, give a link to the model if you want a fix. Consider learning Blender or $3dMax. And this thread should have been in a more appropriate forum. It isn't an airport design problem. It appears to be a 3d modeling problem.
I did not notice where this thread originated by the time I replied, but many thanks to Dick for moving it to Sketchup forum.
It is good to have a Sketchup forum, as
Sketchup is here to stay, and is preferred by many here for FS 3D content generation.
It is likely that this thread will involve at least some relatively (brief ?) Sketchup methodology discussion.
Then, IMHO, it will progress forward (...into the past ?) into a (another) discussion of MCX' continued use of ASSIMP library.
Even without seeing the 3D model (which I bet gouaill may be so kind as to allow examination of via a direct message ?), I'm going to "speculate" the cause may prove to be misinterpretation of 3D model geometry by MCX via ASSIMP DAE processing.
While it may be reasonable to infer that Sketchup's built-in Collada DAE Exporter processing of 3D model geometry during export 'sets the stage' for ASSIMP to make some incorrect ASS(u)MP-tions, after years of reports showing this type of bizarre geometry skewing in (certain) Collada DAE files exported by MCX, it would be reasonable to try and find out what scenarios of geometry cause this to occur, based on the ASS(u)MP-ion MCX is hell-bent-and-determined to continue using the ASSIMP library DLL to do its 'grunt' work.
IIRC, Arno's original MCX Collada DAE importer/exporter which AFAIK, he coded himself years ago, had no such errors occur.
IIUC, that was before he began implementing use of ASSIMP library.
But, that said, I am not aware of any other reports of skewed geometry derived from use of ASSIMP with
non-Collada DAE files.
While it may be tempting to draw A SIMPle conclusion the original 'guilty party' is Sketchup's default exporter, I say
PROVE IT.
Samuel Tallet's Sketchup plugin Ruby script (Extension)
Universal Importer v1.2.6
https://sketchucation.com/pluginstore?pln=universal_importer
...successfully uses that same ASSIMP library for import of IIRC, 50+ 3D model file formats
without deriving incorrect geometry.
Not only that, but IIRC, it can decimate , it also offers Axis orientation change and assignment of scalar units ...all on the fly.
But... it only works during
import to Sketchup.
Hey, wait... IIUC, might 'import' with ASSIMP be when the incorrect inference may occur in MCX ?
Uhm, well... nope, it displays OK in MCX 3D preview; anything that "goes wrong" happens during export of (certain) 3D models.
So the bottom line inference to be drawn, IMHO, is something 'goes wrong' when MCX processes (certain) Collada DAE's.
If a 3D model displays properly immediately after import into MCX, what else may cause MCX distorted glTF geometry export ?
We have been here before; I do not have 'some' URLs available, but I can find threads
if FSDEV threads are not "re-addressed".
We have seen rare occurrences of this type of MCX geometry export distortion previously with Sketchup Collada DAEs.
IIRC, we also saw- and cited- some evidence that ASSIMP itself had intermittent bugs over time which AFAIK, were all fixed.
Code:
https://www.reddit.com/r/opengl/comments/s6rjlm/assimp_file_loading_error_wierd_behavior/
We may point a finger of accusation at Collada DAE processing by
both Sketchup's default exporter, and MCX' use of ASSIMP.
I have no Export problem in Sketchup as I use other 3D file exporters / formats; if I want a Collada DAE, I export a Google KMZ.
MCX imports / processes Google KMZ files and exports without distortion (IIRC, this excellent importer was written by Arno).
So, I recommend not using Sketchup's default Collada DAE exporter with 3D models that incur distorted geometry via MCX.
And as for "Exporters" that impose / incur rare and unwanted results, Sketchup, Blender, MSFS all have a lot to answer for.
Notice that Asobo maintains the Blender MSFS exporter at an arm's length, and makes extensive use of input by 3rd parties ?
Might Asobo "officially" take credit for a mature / 'trouble-free' MSFS exporter
after more sins are expiated ...at a safe distance ?
GaryGB