• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Cant add gltf file

Messages
28
Country
germany
Hello,
in the last days i build a scenery. Therefore i build objects in sketchup, saved them as .dae and import them in ModelconverterX. There i edit the textures and save them as .png and export the object to .gltf.
So i can add the objects to my scenery with SDK in MSFS. All worked fine...

Today i build a another object and try to add it with these steps. But today i find the .gltf in the objects and add it, but i only can see this dice with the three axis. I can move it, lift it from ground, rotate and scale it, but cant see the object itself.

Then i try to compile again a object that i successfully compiled and placed the days before. And i has the same problem: the object which works fine for some days is after recompiling it invisible.
Is it possible that i have changed some settings in modelconverterx unintentionally?

Thanks
Luki
 
Still struggling with this problem. Can anybody help me please?
I have packed all files to a .rar and attached it. Can anybody try to add it to a scenery via SDK and/or can say me whats wrong? It's a simple cube with a texture.

Thanks
Luki
 

Attachments

Your archive contains a Collada file which does not belong. The included gltf file is incomplete without the XML component.
 
The .dae file is the model before compiling it with modelconverterx into gltf. Just in case someone need it to search the error. I know that it isn`t needed for the SDK. And sorry for the missing .xml file. Here are the complete files:
 

Attachments

The dae model has some sort of weird normal-inverted cube, as well as the real cube... I deleted it. I also centered (transformed) the model. I also switched off the day-night option of the material.
 

Attachments

The dae model has some sort of weird normal-inverted cube, as well as the real cube... I deleted it. I also centered (transformed) the model. I also switched off the day-night option of the material.
I'm very grateful about your help!!!

But unfortunately i have the same problems with your fixed files (see picture). When your files work for you i fear it has something to do with my SDK?

And what do you mean with "has some sort of weird normal-inverted cube"? I exportes this. dae as ever from sketchup, and i can't detect an inverted cube...
 

Attachments

  • Unbenannt.PNG
    Unbenannt.PNG
    665.8 KB · Views: 253
i can't detect an inverted cube...
Actually, you can. In Sketchup, select View>Face Style>Monochrome. Now all you will see are uncolored faces. You want them to all be white, blue faces are considered "backside," by MSFS and you should reverse those. Don't forget about the texture, it will reverse with the face and you'll want to correct that. If, when you look at your model, all the faces are blue, that will create a "weird, inverted normal" cube, which I what I am suspecting has happened.
 
Actually, you can. In Sketchup, select View>Face Style>Monochrome. Now all you will see are uncolored faces. You want them to all be white, blue faces are considered "backside," by MSFS and you should reverse those. Don't forget about the texture, it will reverse with the face and you'll want to correct that. If, when you look at your model, all the faces are blue, that will create a "weird, inverted normal" cube, which I what I am suspecting has happened.
No, i dont think i have a problem with reversed faces. See the pictures: first one is with textures and the second one is in monochrome and the faces are white. And aside from that: Then why should work the files of @rhumbaflappy for him and not for me???

​

​

 
Then why should work the files of @rhumbaflappy for him and not for me???
The dae model has some sort of weird normal-inverted cube, as well as the real cube... I deleted it. I also centered (transformed) the model.
It did not work for DIck.
See the pictures: first one is with textures and the second one is in monochrome and the faces are white.
I see only one picture titled "Unbennant" and it has no textures.

Finally, I do see some very funky things going on. In your most recent, "updated" attachment, the Collada points to a .jpg, but you've only included .png's. If I import either uploaded sample into Sketchup, making allowances for the missing texture, the model looks as expected, with all faces oriented properly. The gltf model has an odd, extra texture that looks exactly like Sketchup backside polygon color. If I import either model into MCX, making allowances for the missing texture, they appear fine. However, if I export the MCX glTF to Collada and import that result into Sketchup, I get a very odd result.

Reversed.png


Please notice the name "<auto>1" and the fact that one texture icon in the Sketchup Materials window is outlined in blue, that the texture appears identical to the one called "roofing_tile_spanish.png" and that the blue colored cube is also outlined in blue. The outlines mean that I have selected the cube with the eyedropper tool to determine which texture is applied to the blue cube and the outlined texture icon, informs that we should be seeing a tile pattern. We are not, we are in fact seeing the uncolored backsides of polygons and if you allow me to zoom in so we can see both inside and outside the cube, I'll prove it.

Zoom monochrome.png


The view has been switched to monochrome. At the extreme left, the lighter gray is the box that had exterior tiled texture, displaying white as exterior. The MCX exported, reimported box is in the foreground, close enough that a triangle of interior surface is revealed to be white. The fact the the box is still highlighted and the italicised word "Default" has replaced <auto>1 in the Sketchup Material pane, proves the faces have been reversed.

This is not something about the SDK, this is a model straight out of Sketchup and into MCX. There is something about your procedure that is different, or amiss and the absence of properly formatted textures with their associated model files, tends to reinforce this assessment.
 
@rhumbaflappy posted new, fixed files: generator2fixed.zip
I think they work for him, but they dont work for me....

The .png i attached is the .jpg after compile it with modelconverterx in .png to use it in MSFS. The .jpg i used in Sketchup is not attached.
I already build many scenerys in exactly the same way and had never this problem.

What i noticed: When i add the "nonworking" objects they always appear rotated (see picture unbemannt above). When i add a working object it appears aligned.

Sorry i forgot the the two pictures: first one is with textures and the second one is the same in monochrome - all white, no reversed faces...
 

Attachments

  • Unbenannt.PNG
    Unbenannt.PNG
    66.6 KB · Views: 265
  • Unbenannt2.PNG
    Unbenannt2.PNG
    5.5 KB · Views: 258
To me, this is like guessing why Elon Musk's flamethrower does not work for barbeques while disavowing the obvious answer that it was not designed to work for barbeques. I cannot explain why some work and some do not. I can only observe oddities like misassigned textures in the hopes these observations will provide you information about your procedures. In that regard, I have one more observation to make, it relates to the mystery, "backside" colored texture that I encountered in the Sketchup re import.

MSFS does not allow untextured backside polygons. In practice, this is not an issue, because invariably, untextured polygons are meant to be invisible, so if MSFS refuses to load them, all the better. Regardless of this "workaround," Arno added a feature to MCX to automatically place polygon color on any front side faces. Usually, at least for Sketchup users, these untextured faces are unintentional, they are generated when 3d geometry forms an internal polygon, which Sketchup obligingly converts into a polygon and they can usually be deleted. Occasionally, for me at least, it is actually an external face that I left white, overlooked this fact and from that point on, I would have to keep it for that model.

In your case, the extra color that appears in the Sketchup Material pane, after re importing the model, is blue. This suggests the untextured, external faces were interpreted as "blue" and colored by MCX, when you, or I, processed the model into glTF. It is not much to go on, but it seems like some sort of clue.
 
Back
Top